Building an OS - 9 - Interrupt handling

How to implement interrupt handlers, and creating a dispatching interrupt mechanism. Links: Patreon:   / nanobyte   Discord channel:   / discord   Source code: https://github.com/nanobyte-dev/nanob... Documentation: Intel manuals: https://www.intel.com/content/www/us/... Interrupts: https://wiki.osdev.org/Interrupts IDT: https://wiki.osdev.org/IDT Exceptions: https://wiki.osdev.org/Exceptions Chapters: 0:00 Intro 2:00 Assembly ISR wrapper 7:11 C ISR handler 8:48 Generating assembly stubs with macros 10:10 Generating code with bash 13:15 Registering handlers in IDT 14:17 Generating C code with bash 15:55 Integrating into build 17:12 Putting it all together 18:23 Testing 23:32 Conclusion