generalizing the 16bit interrupt hack to an arbitray int86() call
[bootcensus] / src / int86.h
1 #ifndef INT86_H_
2 #define INT86_H_
3
4 #include <inttypes.h>
5
6 struct int86regs {
7         uint32_t edi, esi, ebp, esp;
8         uint32_t ebx, edx, ecx, eax;
9         uint16_t flags;
10         uint16_t es, ds, fs, gs;
11 } __attribute__ ((packed));
12
13 void int86(int inum, struct int86regs *regs);
14
15 #endif  /* INT86_H_ */