Simple Operating System
interrupts.h File Reference

Setting system interruptions, see interrupts.asm. More...

#include "types.h"
Include dependency graph for interrupts.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

Macro Definition Documentation

◆ EOI

#define EOI ( )    asm("out 0x20, al"::"a"(0x20));

Typedef Documentation

◆ interruptFrame

frame for interruption, required by gcc for __int

Todo:
IDK how to use them, they are required by GCC to use __int, see todo in interrupts.asm

Function Documentation

◆ setInterrupts()

int setInterrupts ( void  )

Set system interruptions.

set syscall and errors handles

Definition at line 32 of file interrupts-asm.c.