interrupt: remove global IDTR/GDTR
LIDT/LGDT is now called with addresses in stack
This commit is contained in:
parent
7f7a985ed6
commit
3b9fc2f4d0
@ -6,7 +6,6 @@
|
||||
#include "../runtime/panic_assert.h"
|
||||
#include "testcode.h"
|
||||
|
||||
interrupt_DescriptorTableReference *interrupt_IDTR, *interrupt_GDTR;
|
||||
bool interrupt_Enabled;
|
||||
|
||||
|
||||
|
@ -33,8 +33,7 @@ typedef struct {
|
||||
uint16_t length;
|
||||
void * base;
|
||||
} 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
|
||||
extern bool interrupt_Enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user