Can somebody explain what de differences between an interrupt gate and a trag gate is? the manuals are not very clear about this, it seems that they behave identical.
regards
question regarding interrupt and trap gate?
The practical difference is that when you call an interrupt-gate, interrupts get disabled, and when you call a trap-gate, they don't. (edit: well... practical... checked the intel manual and it says there is no other difference whatsoever)
I can't think of a single reason you would "need" to use trap-gates for anything, but then again we've got lots of stuff in x86 you'll never need for anything anyway...
I can't think of a single reason you would "need" to use trap-gates for anything, but then again we've got lots of stuff in x86 you'll never need for anything anyway...
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.
Yeah, well, you can use trap-gates ofcourse, but there's nothing they allow you to do which isn't quite trivially done with interrupt gates...
Basicly, all you save is checking from the pushed flags if interrupts were enabled and enabling them back if this was the case...
Basicly, all you save is checking from the pushed flags if interrupts were enabled and enabling them back if this was the case...
The real problem with goto is not with the control transfer, but with environments. Properly tail-recursive closures get both right.