sos-os / kernel

The Stupid Operating System
Apache License 2.0
264 stars 16 forks source link

Rewrite interrupts to use x86-interrupt ABI #98

Closed hawkw closed 7 years ago

hawkw commented 7 years ago

Now that the Rust compiler understands extern "x86-interrupt" as a calling convention, we don't need to use naked functions (and the ugly macro) to write interrupts on x86. This allows more of our interrupt-handling code to be cross-platform between 32- and 64-bit x86 systems, which is nice. This CC may also be slightly faster than naked functions in some cases.

This PR also includes some minor refactoring to the IDT type and other parts of the interrupt handling subsystem.

Closes #78.

hawkw commented 7 years ago

now that i've fixed the CI build (which I should have probably done in another branch but I am lazy and stupid) this can be merged.