-
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.
- Loading branch information
1 parent
3523ebe
commit 3784206
Showing
4 changed files
with
27 additions
and
23 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 |
---|---|---|
|
@@ -19,8 +19,5 @@ pm_init: | |
mov fs, ax | ||
mov gs, ax | ||
|
||
mov ebp, 0x9000 | ||
mov esp, ebp | ||
|
||
call pm_begin | ||
|
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,31 +1,30 @@ | ||
ENTRY(_start) | ||
ENTRY(start) | ||
_start_ = 0x1000; | ||
|
||
SECTIONS | ||
{ | ||
. = 0x1000; | ||
|
||
.text BLOCK(1K) : ALIGN(1K) | ||
.text _start_ : | ||
{ | ||
_code_ = .; | ||
*(.text) | ||
} | ||
|
||
/* Read-only data. */ | ||
.rodata BLOCK(1K) : ALIGN(1K) | ||
{ | ||
*(.rodata) | ||
. = ALIGN(4K); | ||
} | ||
|
||
/* Read-write data (initialized) */ | ||
.data BLOCK(1K) : ALIGN(1K) | ||
.data : | ||
{ | ||
_data_ = .; | ||
*(.data) | ||
. = ALIGN(4K); | ||
} | ||
|
||
/* Read-write data (uninitialized) and stack */ | ||
.bss BLOCK(1K) : ALIGN(1K) | ||
.bss : | ||
{ | ||
*(COMMON) | ||
_bss_ = .; | ||
*(.bss) | ||
. = ALIGN(8K); | ||
} | ||
|
||
_end_ = .; | ||
} | ||
|