]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Correct the generation of the `cd 03` instruction
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 6 Mar 2016 21:19:05 +0000 (21:19 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 6 Mar 2016 21:20:05 +0000 (21:20 +0000)
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 <andrew.cooper3@citrix.com>
tests/swint-emulation/lowlevel.S

index 5b3b204cf0a76c48ee5b9a50403f6f6c3d77ab39..413a09d93cf19767114c13601b13546a08a4c12f 100644 (file)
@@ -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