-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds comments for a lot of the asm files
- Loading branch information
1 parent
f557fc6
commit e7bd277
Showing
6 changed files
with
94 additions
and
106 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 |
---|---|---|
@@ -1,15 +1,22 @@ | ||
; The values of the decriptors from Basekernel (kernelcode.S) (https://github.com/dthain/basekernel) | ||
gdt: | ||
|
||
; in x86, first entry is null descriptor | ||
null_descriptor : dw 0, 0, 0, 0 | ||
|
||
; code and data segment of kernel | ||
kernel_code_descriptor : dw 0xffff, 0x0000, 9a00h, 0x00cf | ||
kernel_data_descriptor : dw 0xffff, 0x0000, 0x9200, 0x00cf | ||
|
||
; code and data segment of user application | ||
userspace_code_descriptor : dw 0xffff, 0x0000, 0xfa00, 0x00cf | ||
userspace_data_descriptor : dw 0xffff, 0x0000, 0xf200, 0x00cf | ||
; DON'T FORGET TO CHANGE THE SIZE OF THE GDT | ||
; TODO: I think the limit isn't correct | ||
tss_descriptor : dw tss + 3, tss, 0x8900, 0x0000 | ||
|
||
gdtr: | ||
; size: 6 entries, each 8 byte | ||
gdt_size_in_bytes : dw ( 6 * 8 ) ;= 28h | ||
gdt_base_address : dd gdt | ||
|
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
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