From: Andrew Cooper Date: Sun, 6 Mar 2016 21:19:05 +0000 (+0000) Subject: Correct the generation of the `cd 03` instruction X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4294681d8abd3cd5932352948a62aa5b8dcb8f72;p=people%2Froyger%2Fxen-test-framework.git Correct the generation of the `cd 03` instruction Some assemblers "helpfully" turn the two-byte `int $3` into its one-byte form `int3`. This defeats the purpose of the test case, so hand-roll the instrucion. Signed-off-by: Andrew Cooper --- diff --git a/tests/swint-emulation/lowlevel.S b/tests/swint-emulation/lowlevel.S index 5b3b204..413a09d 100644 --- a/tests/swint-emulation/lowlevel.S +++ b/tests/swint-emulation/lowlevel.S @@ -42,7 +42,7 @@ GLOBAL(label_\insn\()_\type\()_fault) .if \insn == int3 int3 .elseif \insn == int_0x3 - int $0x3 + .byte 0xcd, 0x03 /* Some assembers turn `int $3` into `int3`. */ .elseif \insn == icebp .byte 0xf1 .elseif \insn == int_0x1