MyOS Kernel
isr.h
Go to the documentation of this file.
1
5
#ifndef ISR_H
6
#define ISR_H
7
8
#include <stdint.h>
9
13
typedef
struct
{
14
uint32_t ds;
15
uint32_t edi;
16
uint32_t esi;
17
uint32_t ebp;
18
uint32_t esp;
19
uint32_t ebx;
20
uint32_t edx;
21
uint32_t ecx;
22
uint32_t eax;
23
uint32_t int_no;
24
uint32_t err_code;
25
uint32_t eip;
26
uint32_t cs;
27
uint32_t eflags;
28
uint32_t useresp;
29
uint32_t ss;
30
}
registers_t
;
31
32
typedef
void (*
isr_t
)(
registers_t
*);
33
37
void
isr_install
();
38
44
void
isr_register_handler
(
int
n,
isr_t
handler);
45
46
#endif
isr_register_handler
void isr_register_handler(int n, isr_t handler)
Definition:
isr.c:279
isr_install
void isr_install()
Definition:
isr.c:25
registers_t
Definition:
isr.h:13
isr_t
void(* isr_t)(registers_t *)
Type of an ISR handler function pointer.
Definition:
isr.h:32
kernel
cpu
isr.h
Generated by
1.8.18