axle OS
x86_32 UNIX-like hobby OS
int32.h
1 #ifndef INT32_H
2 #define INT32_h
3 
4 typedef struct __attribute__((packed)) {
5  unsigned short di, si, bp, sp, bx, dx, cx, ax;
6  unsigned short gs, fs, es, ds, eflags;
7 } regs16_t;
8 
9 //defined in int32.s
10 //NOTE: Paging must be disabled before calling this function
11 void int32(unsigned char intnum, regs16_t* regs);
12 
13 //automatically disables paging and calls int32
14 void int32_p(unsigned char intnum, regs16_t* regs);
15 
16 #endif
Definition: elf.h:10