aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index aed99ed..c9c9a70 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -672,13 +672,19 @@ int $0x10
lgdt 0x1000
lidt 0x1000
lldt 0x1000
- lmsw 0x1000
- lsl 0x1000, %ecx
- ltr 0x1000
-
sgdt 0x1000
sidt 0x1000
sldt 0x1000
+#ifdef __x86_64__
+ lgdtq 0x1000
+ lidtq 0x1000
+ sgdtq 0x1000
+ sidtq 0x1000
+#endif
+
+ lmsw 0x1000
+ lsl 0x1000, %ecx
+ ltr 0x1000
smsw 0x1000
str 0x1000