interrupt: remove global IDTR/GDTR

LIDT/LGDT is now called with addresses in stack
This commit is contained in:
Edgaru089 2021-11-07 17:48:41 +08:00
parent 7f7a985ed6
commit 3b9fc2f4d0
2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,6 @@
#include "../runtime/panic_assert.h" #include "../runtime/panic_assert.h"
#include "testcode.h" #include "testcode.h"
interrupt_DescriptorTableReference *interrupt_IDTR, *interrupt_GDTR;
bool interrupt_Enabled; bool interrupt_Enabled;

View File

@ -33,8 +33,7 @@ typedef struct {
uint16_t length; uint16_t length;
void * base; void * base;
} PACKED interrupt_DescriptorTableReference; } PACKED interrupt_DescriptorTableReference;
// address of IDTR and GDTR, allocated by kMalloc() and is never freed
extern interrupt_DescriptorTableReference *interrupt_IDTR, *interrupt_GDTR;
// true if Init() has been called and interrupt handling is on // true if Init() has been called and interrupt handling is on
extern bool interrupt_Enabled; extern bool interrupt_Enabled;