diff options
| author | Ben Gras <ben@minix3.org> | 2012-06-10 17:50:17 +0000 |
|---|---|---|
| committer | Ben Gras <ben@minix3.org> | 2012-09-24 15:53:43 +0200 |
| commit | 2d72cbec418fc500da13b6bbea46af899db2b73a (patch) | |
| tree | 4b1f3a7cd19076ca93fdd4896ccac38cdf7b5439 /lib/libc/arch?id=2d72cbec418fc500da13b6bbea46af899db2b73a | |
| parent | 629829e69c0797c3ad84e840716d1e67aab1862c (diff) | |
SYSENTER/SYSCALL support
. add cpufeature detection of both
. use it for both ipc and kernelcall traps, using a register
for call number
. SYSENTER/SYSCALL does not save any context, therefore userland
has to save it
. to accomodate multiple kernel entry/exit types, the entry
type is recorded in the process struct. hitherto all types
were interrupt (soft int, exception, hard int); now SYSENTER/SYSCALL
is new, with the difference that context is not fully restored
from proc struct when running the process again. this can't be
done as some information is missing.
. complication: cases in which the kernel has to fully change
process context (i.e. sigreturn). in that case the exit type
is changed from SYSENTER/SYSEXIT to soft-int (i.e. iret) and
context is fully restored from the proc struct. this does mean
the PC and SP must change, as the sysenter/sysexit userland code
will otherwise try to restore its own context. this is true in the
sigreturn case.
. override all usage by setting libc_ipc=1
Diffstat (limited to 'lib/libc/arch?id=2d72cbec418fc500da13b6bbea46af899db2b73a')
0 files changed, 0 insertions, 0 deletions
