3 ms·
Yeah... Part of the reason why existing functionality is limited and nobody uses them to implement custom instructions, is that trapping is actually quite expe
by phire 2y ago
Yeah...
Part of the reason why existing functionality is limited and nobody uses them to implement custom instructions, is that trapping is actually quite expensive.
The switch to kernel space and back is super expensive, but even if a CPU did implemente fast userspace trap handlers, it wouldn't be fast.