mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
Child needs rewound function stack in order to reach registers r9-r12 that have original userspace values. But we jump to return_from_syscall without rewinding the stack. Therefore to ease context restore, we save r9-r12 on the stack as well upon syscall entry.