All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: Re: Current BK kernel error
Date: Wed, 12 Jan 2005 06:30:19 +0000	[thread overview]
Message-ID: <41E4C3FB.8070806@mc.net> (raw)
In-Reply-To: <20050111143605.GC4514@artsapartment.org>

William Lee Irwin III wrote:
> 
> Ship me what you've got and I'll test it on sun4c and BTFIXUP-ize it.
> 

Ok, how about this patch to start from?


diff -urp linux-2.6.10-bk8-clean/include/asm-sparc/pgtable.h linux-2.6.10-bk8/include/asm-sparc/pgtable.h
--- linux-2.6.10-bk8-clean/include/asm-sparc/pgtable.h	2005-01-12 00:16:39.000000000 -0600
+++ linux-2.6.10-bk8/include/asm-sparc/pgtable.h	2005-01-12 00:15:21.000000000 -0600
@@ -186,10 +186,21 @@ BTFIXUPDEF_CALL(void, pgd_clear, pgd_t *
   * The following only work if pte_present() is true.
   * Undefined behaviour if not..
   */
+//BITFIXUPDEF_????(pte_readi)
  BTFIXUPDEF_HALF(pte_writei)
  BTFIXUPDEF_HALF(pte_dirtyi)
  BTFIXUPDEF_HALF(pte_youngi)

+extern int pte_read(pte_t pte) __attribute_const__;
+extern __inline__ int pte_read(pte_t pte)
+{
+#if 0 // SUN4/SUN4C
+	return pte_val(pte) & _SUN4C_PAGE_READ;
+#else // SUN4M
+	return !(pte_val(pte) & SRMMU_NOREAD);
+#endif
+}
+
  extern int pte_write(pte_t pte) __attribute_const__;
  extern __inline__ int pte_write(pte_t pte)
  {
diff -urp linux-2.6.10-bk8-clean/include/asm-sparc/pgtsrmmu.h linux-2.6.10-bk8/include/asm-sparc/pgtsrmmu.h
--- linux-2.6.10-bk8-clean/include/asm-sparc/pgtsrmmu.h	2004-10-18 16:53:46.000000000 -0500
+++ linux-2.6.10-bk8/include/asm-sparc/pgtsrmmu.h	2005-01-12 00:09:44.000000000 -0600
@@ -73,6 +73,7 @@
  #define SRMMU_CACHE        0x80
  #define SRMMU_DIRTY        0x40
  #define SRMMU_REF          0x20
+#define SRMMU_NOREAD       0x10
  #define SRMMU_EXEC         0x08
  #define SRMMU_WRITE        0x04
  #define SRMMU_VALID        0x02 /* SRMMU_ET_PTE */

  parent reply	other threads:[~2005-01-12  6:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-11 14:36 Current BK kernel error Art Haas
2005-01-11 18:49 ` William Lee Irwin III
2005-01-12  3:56 ` Bob Breuer
2005-01-12  5:38 ` William Lee Irwin III
2005-01-12  6:24 ` William Lee Irwin III
2005-01-12  6:30 ` Bob Breuer [this message]
2005-01-21 23:05 ` Art Haas
2005-01-21 23:09 ` William Lee Irwin III

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41E4C3FB.8070806@mc.net \
    --to=breuerr@mc.net \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.