3 ms·
That sounds like a lot of overhead for a kernel. There is a reason it's normally written in a mix of C and ASM.
by hvidgaard 7y ago
That sounds like a lot of overhead for a kernel. There is a reason it's normally written in a mix of C and ASM.
- zaarn 7y agoIt wouldn't be that much overhead in reality, you can still write the kernel in a mix of C and ASM (or more modern; Rust and ASM). The kernel doesn't even need to know about these isolation mechanisms, since you run stuff in ring 0, you can hook the appropriate APIs and interfaces in a process. The kernel itself would be insanely small and thusly more easy to defend.