diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-07-10 15:16:12 -0600 |
---|---|---|
committer | Jordan Crouse <jordan.crouse@amd.com> | 2007-07-10 15:16:41 -0600 |
commit | 08c26f1bda66b8ffd91e345cdd2cb29171b615b3 (patch) | |
tree | 718cedd6eb882cdca05d4aafeb440a7495f21d78 | |
parent | 9f8ea76662733cec5ee6289727c143bf057aee57 (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.c | 2 |
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" \ |