-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zeyu
committed
Apr 22, 2021
1 parent
fa84b54
commit 69db9cf
Showing
7 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* EXTERN is defined as extern except in global.c */ | ||
#ifdef GLOBAL_VARIABLES_HERE | ||
#undef EXTERN | ||
#define EXTERN | ||
#else | ||
#define EXTERN extern | ||
#endif | ||
|
||
EXTERN int disp_pos; | ||
EXTERN unsigned char gdt_ptr[6]; /* 0~15:Limit 16~47:Base */ | ||
EXTERN DESCRIPTOR gdt[GDT_SIZE]; | ||
EXTERN unsigned char idt_ptr[6]; /* 0~15:Limit 16~47:Base */ | ||
EXTERN GATE idt[IDT_SIZE]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#define GLOBAL_VARIABLES_HERE | ||
#include "protect.h" | ||
#include "global.h" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include "protect.h" | ||
#include "functions.h" | ||
#include "global.h" | ||
#include "i8259.h" | ||
|
||
void init_protect_mode() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters