File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
tools/testing/selftests/x86 Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,30 @@ int main(void)
73
73
printf ("[RUN]\tSet NT and issue a syscall\n" );
74
74
do_it (X86_EFLAGS_NT );
75
75
76
+ printf ("[RUN]\tSet AC and issue a syscall\n" );
77
+ do_it (X86_EFLAGS_AC );
78
+
79
+ printf ("[RUN]\tSet NT|AC and issue a syscall\n" );
80
+ do_it (X86_EFLAGS_NT | X86_EFLAGS_AC );
81
+
76
82
/*
77
83
* Now try it again with TF set -- TF forces returns via IRET in all
78
84
* cases except non-ptregs-using 64-bit full fast path syscalls.
79
85
*/
80
86
81
87
sethandler (SIGTRAP , sigtrap , 0 );
82
88
89
+ printf ("[RUN]\tSet TF and issue a syscall\n" );
90
+ do_it (X86_EFLAGS_TF );
91
+
83
92
printf ("[RUN]\tSet NT|TF and issue a syscall\n" );
84
93
do_it (X86_EFLAGS_NT | X86_EFLAGS_TF );
85
94
95
+ printf ("[RUN]\tSet AC|TF and issue a syscall\n" );
96
+ do_it (X86_EFLAGS_AC | X86_EFLAGS_TF );
97
+
98
+ printf ("[RUN]\tSet NT|AC|TF and issue a syscall\n" );
99
+ do_it (X86_EFLAGS_NT | X86_EFLAGS_AC | X86_EFLAGS_TF );
100
+
86
101
return nerrs == 0 ? 0 : 1 ;
87
102
}
You can’t perform that action at this time.
0 commit comments