zlacker

[return to "OpenBSD: Removing syscall(2) from libc and kernel"]
1. saagar+Ss[view] [source] 2023-10-27 17:37:12
>>eclipt+(OP)
Why not remove syscall instructions altogether? When libc wants to do something, it traps on an undefined instruction and then the kernel looks at the program counter to see what it should do. Seems like this would be the ultimate application of this line of thought…
◧◩
2. jcranm+hA[view] [source] 2023-10-27 18:13:39
>>saagar+Ss
My understanding is this was done by one system, which then made the architecture's life hard because now they lost half their opcode encoding space due to it being used as pseudo-syscalls by their largest customer.
[go to top]