diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2013-02-14 10:34:36 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-02-15 22:52:18 -0500 |
commit | 0f5628d1645a49c12284a2744ac99bfc86c1f0b0 (patch) | |
tree | 795ca2e257403712aaa0fbb3e9537be78bbdb3c2 /vgasrc | |
parent | 42f33ffd9a7441c0cb1d33f4f4ed2390430a8e3e (diff) | |
download | qemu-seabios-0f5628d1645a49c12284a2744ac99bfc86c1f0b0.tar.gz |
geodevga: add debug to msr functions
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'vgasrc')
-rw-r--r-- | vgasrc/geodevga.c | 7 |
1 files changed, 7 insertions, 0 deletions
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" |