#
49608023 |
| 02-May-2018 |
Jérôme Duval <jerome.duval@gmail.com> |
kernel/x86_64: add ia32 syscall entry and commpage syscall code.
* only for Intel sysenter/sysexit. * the entry function processes stack arguments as follows: we look up the syscall in the table
kernel/x86_64: add ia32 syscall entry and commpage syscall code.
* only for Intel sysenter/sysexit. * the entry function processes stack arguments as follows: we look up the syscall in the table, find the number of arguments. reserve place on the stack for the arguments. copy arguments on the stack pop register arguments call the syscall function place the return value in ax and dx registers. * TODO: we need to store the arguments somewhere for the post-syscall tracing. * the thread exit stub is 32-bit, for the time being use hexadecimal instructions.
Change-Id: Ie5c502eb596d4fa7613d238de80643566bc19ed8
show more ...
|