All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Parish <srparish@us.ibm.com>
To: Gerd Knorr <kraxel@bytesex.org>
Cc: xen-devel@lists.xensource.com
Subject: Re: PAE xen + linux kernel boots ...
Date: Sat, 30 Apr 2005 08:40:40 +0000	[thread overview]
Message-ID: <20050430084040.GB16883@us.ibm.com> (raw)
In-Reply-To: <87ll74o29m.fsf@bytesex.org>

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

On Wed, Apr 27, 2005 at 02:03:17PM +0200, Gerd Knorr wrote:

>   * general: more testing, cleanups, drop debug code, review
>     all the FIXME's in the code ...

Here's one...

sRp

-- 
Scott Parish

[-- Attachment #2: show-page-walk.diff --]
[-- Type: text/plain, Size: 1560 bytes --]

diff -rN -u -p old-xen-unstable/xen/arch/x86/x86_32/traps.c new-xen-unstable/xen/arch/x86/x86_32/traps.c
--- old-xen-unstable/xen/arch/x86/x86_32/traps.c	2005-04-27 20:19:53.000000000 +0000
+++ new-xen-unstable/xen/arch/x86/x86_32/traps.c	2005-04-30 08:45:13.000000000 +0000
@@ -159,17 +159,32 @@ void show_registers(struct xen_regs *reg
 
 void show_page_walk(unsigned long addr)
 {
-#if defined(__i386__) && defined(CONFIG_X86_PAE)
-    printk("FIXME: PAE code needed here: %s:%d (%s)\n",
-	   __FILE__, __LINE__, __FUNCTION__);
-#else
-    unsigned long page;
-
     if ( addr < PAGE_OFFSET )
         return;
 
     printk("Pagetable walk from %08lx:\n", addr);
     
+#if defined(__i386__) && defined(CONFIG_X86_PAE)
+    l3_pgentry_t *pl3e;
+    l2_pgentry_t *pl2e;
+    l1_pgentry_t *pl1e;
+        
+    pl3e = &idle_pg_table[l3_table_offset(addr)];
+    printk(" L3 = 0x%016llx\n", l3e_get_value(*pl3e));
+
+    pl2e = l3e_to_l2e(*pl3e) + l2_table_offset(addr);
+
+    printk(" L2 = 0x%016llx %s\n", l2e_get_value(*pl2e),
+           (l2e_get_flags(*pl2e) & _PAGE_PSE) ? "(2MB)" : "");
+    if ( !(l2e_get_flags(*pl2e) & _PAGE_PRESENT) ||
+         (l2e_get_flags(*pl2e) & _PAGE_PSE) )
+        return;
+
+    pl1e = l2e_to_l1e(*pl2e) + l1_table_offset(addr);
+    printk(" L1 = 0x%016llx\n", l1e_get_value(*pl1e));
+#else
+    unsigned long page;
+    
     page = l2e_get_value(idle_pg_table[l2_table_offset(addr)]);
     printk(" L2 = %08lx %s\n", page, (page & _PAGE_PSE) ? "(4MB)" : "");
     if ( !(page & _PAGE_PRESENT) || (page & _PAGE_PSE) )

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2005-04-30  8:40 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 17:26 PAE xen + linux kernel boots Gerd Knorr
2005-04-27 12:03 ` Gerd Knorr
2005-04-28 18:41   ` Chris Wright
2005-04-29  8:01     ` Gerd Knorr
2005-04-30  8:40   ` Scott Parish [this message]
2005-04-30 22:55     ` Gerd Knorr
2005-04-30  9:01   ` Scott Parish
2005-04-30  9:51     ` Scott Parish
2005-04-30 10:54       ` Keir Fraser
2005-05-01  8:12         ` Scott Parish
2005-05-02 14:03           ` Gerd Knorr
2005-05-02 16:02             ` Scott Parish
2005-05-04  2:20             ` Scott Parish
2005-05-04  8:03               ` Gerd Knorr
2005-05-04 15:20                 ` Scott Parish
2005-05-04  2:28             ` Scott Parish
2005-05-04  3:22               ` Kip Macy
2005-05-04  3:23                 ` Scott Parish
2005-05-04  7:58                   ` Gerd Knorr
2005-04-30 23:15       ` Gerd Knorr
2005-04-30 23:01     ` Gerd Knorr
2005-04-30 22:57       ` Scott Parish

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=20050430084040.GB16883@us.ibm.com \
    --to=srparish@us.ibm.com \
    --cc=kraxel@bytesex.org \
    --cc=xen-devel@lists.xensource.com \
    /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.