diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-22 05:58:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-22 06:24:00 -0400 |
commit | 026e2c05ef58ef413e2d52696f125d5ea1aa8bce (patch) | |
tree | a9efc0fd19fe72e00d9bbd0b805c7c8dc7715653 /include/asm-x86/processor-cyrix.h | |
parent | 93ded9b8fd42abe2c3607097963d8de6ad9117eb (diff) |
x86, cyrix: debug
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/processor-cyrix.h')
-rw-r--r-- | include/asm-x86/processor-cyrix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-x86/processor-cyrix.h b/include/asm-x86/processor-cyrix.h index 97568ada1f97..1198f2a0e42c 100644 --- a/include/asm-x86/processor-cyrix.h +++ b/include/asm-x86/processor-cyrix.h | |||
@@ -28,3 +28,11 @@ static inline void setCx86(u8 reg, u8 data) | |||
28 | outb(reg, 0x22); | 28 | outb(reg, 0x22); |
29 | outb(data, 0x23); | 29 | outb(data, 0x23); |
30 | } | 30 | } |
31 | |||
32 | #define getCx86_old(reg) ({ outb((reg), 0x22); inb(0x23); }) | ||
33 | |||
34 | #define setCx86_old(reg, data) do { \ | ||
35 | outb((reg), 0x22); \ | ||
36 | outb((data), 0x23); \ | ||
37 | } while (0) | ||
38 | |||