[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvmloader: Fix e820 printing routine -- addresses are 64-bit



# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1289298883 0
# Node ID b1d61982112c690d5f483db251359d8f1a01ed18
# Parent  985f5fa8fc59f84c8577c482df6246258c785991
hvmloader: Fix e820 printing routine -- addresses are 64-bit

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 tools/firmware/hvmloader/hvmloader.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff -r 985f5fa8fc59 -r b1d61982112c tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c      Mon Nov 08 17:25:54 2010 +0000
+++ b/tools/firmware/hvmloader/hvmloader.c      Tue Nov 09 10:34:43 2010 +0000
@@ -580,22 +580,26 @@ static void dump_e820_table(void)
 {
     struct e820entry *e820 = E820;
     unsigned int nr = *E820_NR;
-    unsigned int last_end = 0;
+    uint64_t last_end = 0, start, end;
     int i;
 
     printf("E820 table:\n");
 
     for ( i = 0; i < nr; i++ )
     {
-        unsigned int start = e820[i].addr;
-        unsigned int end = e820[i].addr + e820[i].size;
+        start = e820[i].addr;
+        end = e820[i].addr + e820[i].size;
 
         if ( start < last_end )
             printf(" OVERLAP!!\n");
         else if ( start > last_end )
-            printf(" HOLE: %08x - %08x\n", last_end, start);
-
-        printf(" [%02d]: %08x - %08x: ", i, start, end);
+            printf(" HOLE: %08x:%08x - %08x:%08x\n",
+                   (uint32_t)(last_end >> 32), (uint32_t)last_end,
+                   (uint32_t)(start >> 32), (uint32_t)start);
+
+        printf(" [%02d]: %08x:%08x - %08x:%08x: ", i,
+               (uint32_t)(start >> 32), (uint32_t)start,
+               (uint32_t)(end >> 32), (uint32_t)end);
         switch ( e820[i].type )
         {
         case E820_RAM:

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.