logoalt Hacker News

rtkweyesterday at 7:28 PM1 replyview on HN

Similar but traps are triggered automatically on attempts to execute a protected instruction.

https://www.geeksforgeeks.org/operating-systems/traps-and-sy...


Replies

dullcrispyesterday at 8:38 PM

Why/when are traps used rather than explicit system calls? Is it just historical coevolution? Or is the idea that the user mode program doesn’t need to know that it’s unprivileged? Or is it just repurposing the error handler path to perform privileged operations?

show 5 replies