Unverified Commit 0cbd3859 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!6802 x86,static_call: Fix __static_call_return0 for i386

parents 59902a3b e1432a52
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -12,10 +12,9 @@ enum insn_type {
};

/*
 * data16 data16 xorq %rax, %rax - a single 5 byte instruction that clears %rax
 * The REX.W cancels the effect of any data16.
 * cs cs cs xorl %eax, %eax - a single 5 byte instruction that clears %[er]ax
 */
static const u8 xor5rax[] = { 0x66, 0x66, 0x48, 0x31, 0xc0 };
static const u8 xor5rax[] = { 0x2e, 0x2e, 0x2e, 0x31, 0xc0 };

/*
 * ud1 %esp, %ecx - a 3 byte #UD that is unique to trampolines, chosen such