summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2007-07-10 15:16:12 -0600
committerJordan Crouse <jordan.crouse@amd.com>2007-07-10 15:16:41 -0600
commit08c26f1bda66b8ffd91e345cdd2cb29171b615b3 (patch)
tree718cedd6eb882cdca05d4aafeb440a7495f21d78
parent9f8ea76662733cec5ee6289727c143bf057aee57 (diff)
Fix "old-school" MSR accesses
This fixes the "old" way of reading MSRs (through virtual registers) - we had swapped arguments in one of the macros, which does very bad things to the poor systems it was running on.
-rw-r--r--src/amd_lx_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c
index 8a19cde..7efda1f 100644
--- a/src/amd_lx_driver.c
+++ b/src/amd_lx_driver.c
@@ -351,7 +351,7 @@ LXSaveScreen(ScreenPtr pScrn, int mode)
: "=a" (lo), "=d" (hi) \
: "c" (adr))
-#define LX_MSR_WRITE(adr,high,low) \
+#define LX_MSR_WRITE(adr,low,high) \
{ int d0, d1, d2, d3, d4; \
__asm__ __volatile__( \
" push %%ebx\n" \