From d9d029006cc40b22c1555bade4d4048749537c21 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 19:57:39 +0200 Subject: x86-asm: Add [sl][ig]dtq opcodes GAS has alias lgdtq for lgdt (similar for saves and GDT). It doesn't have the same for LDT. --- tests/asmtest.S | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'tests') 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 -- cgit v1.3.1