summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/x86/syscall_nt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/x86/syscall_nt.c')
-rw-r--r--tools/testing/selftests/x86/syscall_nt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/x86/syscall_nt.c b/tools/testing/selftests/x86/syscall_nt.c
index f060534b66a0..5fc82b9cebed 100644
--- a/tools/testing/selftests/x86/syscall_nt.c
+++ b/tools/testing/selftests/x86/syscall_nt.c
@@ -59,6 +59,7 @@ static void do_it(unsigned long extraflags)
set_eflags(get_eflags() | extraflags);
syscall(SYS_getpid);
flags = get_eflags();
+ set_eflags(X86_EFLAGS_IF | X86_EFLAGS_FIXED);
if ((flags & extraflags) == extraflags) {
printf("[OK]\tThe syscall worked and flags are still set\n");
} else {