-
Notifications
You must be signed in to change notification settings - Fork 0
/
idt.h
37 lines (29 loc) · 1.04 KB
/
idt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* ** por compatibilidad se omiten tildes **
================================================================================
TRABAJO PRACTICO 3 - System Programming - ORGANIZACION DE COMPUTADOR II - FCEN
================================================================================
definicion de las rutinas de atencion de interrupciones
*/
#ifndef __IDT_H__
#define __IDT_H__
/* Struct de descriptor de IDT */
typedef struct str_idt_descriptor {
unsigned short idt_length;
unsigned int idt_addr;
} __attribute__((__packed__)) idt_descriptor;
/* Struct de una entrada de la IDT */
typedef struct str_idt_entry_fld {
unsigned short offset_0_15;
unsigned short segsel;
unsigned short attr;
unsigned short offset_16_31;
} __attribute__((__packed__, aligned (8))) idt_entry;
extern idt_entry idt[];
extern idt_descriptor IDT_DESC;
extern char* interrupciones[];
extern char* int66;
extern char* syscall;
extern char* tiempo_excedido;
void idt_inicializar();
void interrupcion_teclado(char scancode);
#endif /* !__IDT_H__ */