|
Simple Operating System
|
Setting system interruptions, see interrupts.asm. More...
#include "types.h"

Go to the source code of this file.
Classes | |
| struct | interruptFrame |
| frame for interruption, required by gcc for __int More... | |
Macros | |
| #define | __int __attribute__((interrupt)) |
| #define | IF 1<<9 |
| Interruption flag. | |
| #define | EOI() asm("out 0x20, al"::"a"(0x20)); |
| End of interruption. More... | |
| #define | REBOOT() asm("out 0x64, al"::"a"(0xfE)); |
Typedefs | |
| typedef struct interruptFrame | interruptFrame |
| frame for interruption, required by gcc for __int More... | |
Functions | |
| int | setInterrupts () |
| Set system interruptions. More... | |
| int | addInterrupt (int number, int function) |
Setting system interruptions, see interrupts.asm.
See more: https://grandidierite.github.io/bios-interrupts/
https://en.wikipedia.org/wiki/INT_16H
https://en.wikipedia.org/wiki/INT_10H
https://en.wikipedia.org/wiki/INT_13H
http://www.brackeen.com/vga/basics.html#3
https://www.ctyme.com/rbrown.htm
https://wiki.osdev.org/Interrupt_Vector_Table
https://wiki.osdev.org/Interrupt_Service_Routines
Definition in file interrupts.h.
| #define EOI | ( | ) | asm("out 0x20, al"::"a"(0x20)); |
End of interruption.
See https://wiki.osdev.org/PIC#End_of_Interrupt
P0020003F RBIL ports.a
https://www.geeksforgeeks.org/operating-modes-of-8259-pic/
https://wiki.osdev.org/8259_PIC
Definition at line 51 of file interrupts.h.
| typedef struct interruptFrame interruptFrame |
frame for interruption, required by gcc for __int
| int setInterrupts | ( | void | ) |
Set system interruptions.
set syscall and errors handles
Definition at line 32 of file interrupts-asm.c.