From: Christian Gmeiner Date: Thu, 14 Feb 2013 09:34:36 +0000 (+0100) Subject: geodevga: add debug to msr functions X-Git-Tag: rel-1.7.3~86 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f5628d1645a49c12284a2744ac99bfc86c1f0b0;p=seabios.git geodevga: add debug to msr functions Signed-off-by: Christian Gmeiner --- diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c index 50216b6..42e2eeb 100644 --- a/vgasrc/geodevga.c +++ b/vgasrc/geodevga.c @@ -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"