linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Pantelis Antoniou <panto@intracom.gr>
To: Wolfgang Denk <wd@denx.de>
Cc: Linuxppc-Embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: [PATCH] fix TLB handling for 8xx on linuxppc-2.5
Date: Tue, 01 Jun 2004 10:04:26 +0300	[thread overview]
Message-ID: <40BC2A7A.2010801@intracom.gr> (raw)
In-Reply-To: <20040601070415.E13F6C109F@atlas.denx.de>


Wolfgang Denk wrote:

>In message <40BC1DBF.6050108@intracom.gr> you wrote:
>
>>Perusing the headers I came across a comment that said swap is
>>broken on 8xx. For some reason I need to fix it.
>>Where can I go about looking?
>>
>
>If a 2.4 kernel is good enough:
>
:)

Thanks

>
>Index: include/asm-ppc/pgtable.h
>===================================================================
>RCS file: /cvsroot/linuxppc_2_4_devel/include/asm-ppc/pgtable.h,v
>retrieving revision 1.6
>retrieving revision 1.7
>diff -u -r1.6 -r1.7
>--- include/asm-ppc/pgtable.h	11 Mar 2003 19:53:02 -0000	1.6
>+++ include/asm-ppc/pgtable.h	24 Aug 2003 13:58:59 -0000	1.7
>@@ -686,11 +686,11 @@
>  * must not include the _PAGE_PRESENT bit, or the _PAGE_HASHPTE bit
>  * (if used).  -- paulus
>  */
>-#define SWP_TYPE(entry)			((entry).val & 0x3f)
>-#define SWP_OFFSET(entry)		((entry).val >> 6)
>-#define SWP_ENTRY(type, offset)		((swp_entry_t) { (type) | ((offset) << 6) })
>-#define pte_to_swp_entry(pte)		((swp_entry_t) { pte_val(pte) >> 2 })
>-#define swp_entry_to_pte(x)		((pte_t) { (x).val << 2 })
>+#define SWP_TYPE(entry)			(((entry).val >> 1) & 0x3f)
>+#define SWP_OFFSET(entry)		((entry).val >> 8)
>+#define SWP_ENTRY(type, offset)		((swp_entry_t) { ((type) << 1) | ((offset) << 8) })
>+#define pte_to_swp_entry(pte)		((swp_entry_t) { pte_val(pte) & ~0x81 })
>+#define swp_entry_to_pte(x)		((pte_t) { (x).val })
>
> /* CONFIG_APUS */
> /* For virtual address to physical address conversion */
>
>Best regards,
>
>Wolfgang Denk
>
>
Regards

Pantelis


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

       reply	other threads:[~2004-06-01  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040601070415.E13F6C109F@atlas.denx.de>
2004-06-01  7:04 ` Pantelis Antoniou [this message]
2004-05-31 14:36 [PATCH] fix TLB handling for 8xx on linuxppc-2.5 Pantelis Antoniou
2004-05-31 22:00 ` Benjamin Herrenschmidt
2004-05-31 22:05   ` Benjamin Herrenschmidt
2004-06-01  6:10   ` Pantelis Antoniou
2004-06-02 15:13 ` Dan Malek

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=40BC2A7A.2010801@intracom.gr \
    --to=panto@intracom.gr \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=wd@denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).