On Sat, Mar 11, 2017 at 1:42 AM, Ingo Molnar [off-list ref] wrote:
Ugh, so you call an assembly function just to ... call another function.
The verify_pre_usermode_state function is the architecture independent
checker. By default it is added on each syscall handler so calling it
here save code size.
Plus why is it in assembly to begin with? Is this some older code that got
written when the x86 entry code was in assembly, and never properly
converted to C?
I wrote the assembly to make it faster and save a call on each syscall
return. I can just call verify_pre_usermode_state if you prefer.
--
Thomas