-
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.
Merge pull request #20 from pbrucla/pic
Pic
- Loading branch information
Showing
15 changed files
with
902 additions
and
62 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -84,7 +84,7 @@ disk_load: | |
jnz .stop | ||
inc esi | ||
loop .loop | ||
.stop | ||
.stop: | ||
ret | ||
|
||
|
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
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 |
---|---|---|
|
@@ -36,3 +36,4 @@ typedef struct { | |
} registers_t; | ||
|
||
void init_idt(void); | ||
uint32_t get_hits(void); |
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,32 @@ | ||
%ifndef STUB_FRAME_PUSH | ||
%macro STUB_FRAME_PUSH 0 | ||
pusha ; Pushes edi,esi,ebp,esp,ebx,edx,ecx,eax | ||
|
||
mov ax, ds ; Lower 16-bits of eax = ds. | ||
push eax ; save the data segment descriptor | ||
|
||
mov ax, 0x10 ; load the kernel data segment descriptor | ||
mov ds, ax | ||
mov es, ax | ||
mov fs, ax | ||
mov gs, ax | ||
push esp | ||
%endmacro | ||
%endif | ||
|
||
%ifndef STUB_FRAME_POP | ||
%macro STUB_FRAME_POP 0 | ||
pop eax | ||
|
||
pop eax ; reload the original data segment descriptor | ||
mov ds, ax | ||
mov es, ax | ||
mov fs, ax | ||
mov gs, ax | ||
|
||
popa ; Pops edi,esi,ebp... | ||
add esp, 8 ; Cleans up the pushed error code and pushed ISR number | ||
sti | ||
iret ; pops 5 things at once: CS, EIP, EFLAGS, SS, and ESP | ||
%endmacro | ||
%endif |
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
Oops, something went wrong.