From 74fed89a88ba8c043cfc47f22a377a63435495ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Apr 2007 13:11:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20d=C3=A9claration=20de=20fonctions=20aya?= =?UTF-8?q?nt=20rapport=20avec=20la=20gestion=20des=20IRQ=20et=20interrupt?= =?UTF-8?q?ions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/irq.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/irq.h diff --git a/include/irq.h b/include/irq.h new file mode 100644 index 0000000..c11ba7a --- /dev/null +++ b/include/irq.h @@ -0,0 +1,19 @@ +#define INTGATE 0x8E00 /* utilise pour gerer les interruptions */ +#define TRAPGATE 0x8F00 /* utilise pour faire des appels systemes */ +#define TASKGATE 0x8500 /* utilise pour commuter des taches */ +#define CALLGATE 0x8C00 /* utilise pour appeler du code */ +#define LDTDES 0x8200 /* utilise pour pointer une LDT */ + +/* descripteur de segment */ +typedef struct idtdesc { + u16 offset0_15; + u16 select; + u16 type; + u16 offset16_31; +} idtdesc __attribute__ ((packed)); + +/* registre IDTR */ +struct idtr { + u16 limite; + u32 base; +} __attribute__ ((packed));