diff options
Diffstat (limited to 'util/romcc/tests/simple_test19.c')
-rw-r--r-- | util/romcc/tests/simple_test19.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/util/romcc/tests/simple_test19.c b/util/romcc/tests/simple_test19.c deleted file mode 100644 index cb1f4940d7..0000000000 --- a/util/romcc/tests/simple_test19.c +++ /dev/null @@ -1,24 +0,0 @@ -static void hlt(void) -{ - __builtin_hlt(); -} - -typedef __builtin_msr_t msr_t; - -static msr_t rdmsr(unsigned long index) -{ - return __builtin_rdmsr(index); -} - -static void wrmsr(unsigned long index, msr_t msr) -{ - __builtin_wrmsr(index, msr.lo, msr.hi); -} - -static void main(void) -{ - msr_t msr; - msr = rdmsr(0x1234); - msr.lo &= ~(1<<5); - wrmsr(0x1234, msr); -} |