interrupt: remove global IDTR/GDTR
LIDT/LGDT is now called with addresses in stack
This commit is contained in:
parent
7f7a985ed6
commit
3b9fc2f4d0
@ -6,8 +6,7 @@
|
|||||||
#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;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user