]> xenbits.xensource.com Git - seabios.git/commitdiff
geodevga: add debug to msr functions
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Thu, 14 Feb 2013 09:34:36 +0000 (10:34 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 16 Feb 2013 03:52:18 +0000 (22:52 -0500)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
vgasrc/geodevga.c

index 50216b6332e7f15c856a5d05b150a0bb4dcb5450..42e2eebbc82c52f68163ea4fcfab7a81a3a5f3d4 100644 (file)
@@ -33,6 +33,9 @@ static u64 geode_msr_read(u32 msrAddr)
         : "c"(msrAddr)
         : "cc"
     );
+
+    dprintf(4, "%s(0x%08x) = 0x%08x-0x%08x\n"
+            , __func__, msrAddr, val.hi, val.lo);
     return val.val;
 }
 
@@ -41,6 +44,10 @@ static void geode_msr_mask(u32 msrAddr, u64 off, u64 on)
     union u64_u32_u uand, uor;
     uand.val = ~off;
     uor.val = on;
+
+    dprintf(4, "%s(0x%08x, 0x%016llx, 0x%016llx)\n"
+            , __func__, msrAddr, off, on);
+
     asm __volatile__ (
         "push   %%eax                   \n"
         "movw   $0x0AC1C, %%dx          \n"