-
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 #27 from kushagra765/0.06
Fixed VGA and Keyboard Driver
- Loading branch information
Showing
8 changed files
with
227 additions
and
158 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
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
[BITS 32] | ||
|
||
global start | ||
start: | ||
mov esp, sys_stack | ||
jmp stublet | ||
|
||
ALIGN 4 | ||
multiboot: | ||
|
||
PAGE_ALIGN equ 1<<0 | ||
MEMORY_INFO equ 1<<0 | ||
KLUDGE_AOUT equ 1<<16 | ||
MAGIC equ 0x1BADB002 | ||
FLAGS equ PAGE_ALIGN | MEMORY_INFO | KLUDGE_AOUT | ||
CHECKSUM equ -(MAGIC + FLAGS) | ||
|
||
EXTERN code, bss, end | ||
dd MAGIC | ||
dd FLAGS | ||
dd CHECKSUM | ||
dd multiboot | ||
dd code | ||
dd bss | ||
dd end | ||
dd start | ||
|
||
stublet: | ||
extern kernel_main | ||
call kernel_main | ||
jmp $ | ||
|
||
SECTION .bss | ||
resb 8192 | ||
sys_stack: |
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,32 +1,30 @@ | ||
ENTRY(_start) | ||
ENTRY(start) | ||
|
||
memory_address = 0x00100000; | ||
|
||
SECTIONS | ||
{ | ||
. = 1M; | ||
|
||
.text BLOCK(4K) : ALIGN(4K) | ||
{ | ||
*(.multiboot) | ||
*(.text) | ||
} | ||
|
||
|
||
.rodata BLOCK(4K) : ALIGN(4K) | ||
{ | ||
*(.rodata) | ||
} | ||
|
||
|
||
.data BLOCK(4K) : ALIGN(4K) | ||
{ | ||
*(.data) | ||
} | ||
|
||
.text memory_address : AT(memory_address) { | ||
code = .; | ||
*(.text) | ||
*(.rodata) | ||
. = ALIGN(4096); | ||
} | ||
|
||
.data : AT(memory_address + (data - code)) | ||
{ | ||
data = .; | ||
*(.data) | ||
. = ALIGN(4096); | ||
} | ||
|
||
.bss : AT(memory_address + (bss - code)) | ||
{ | ||
bss = .; | ||
*(.bss) | ||
. = ALIGN(4096); | ||
} | ||
|
||
end = .; | ||
|
||
.bss BLOCK(4K) : ALIGN(4K) | ||
{ | ||
*(COMMON) | ||
*(.bss) | ||
} | ||
|
||
} |
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.