-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
8 changed files
with
113 additions
and
90 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 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,27 @@ | ||
;******************************************************************************* | ||
;* DEFINES * | ||
;******************************************************************************* | ||
|
||
STACK_SIZE equ 0x4000 | ||
KERNEL_STACK_MARKER equ 0x4B52304E ; "KRONOST" (KRONOS STACK) - Marker for stack initialization | ||
|
||
;******************************************************************************* | ||
;* STACK INITIALIZER * | ||
;******************************************************************************* | ||
|
||
section .bss | ||
align 32 | ||
stack: | ||
resb STACK_SIZE | ||
|
||
section .text | ||
global initialize_stack | ||
extern stack | ||
|
||
initialize_stack: | ||
; Initialize stack with marker | ||
mov ecx, STACK_SIZE / 4 ; Number of 32-bit words in stack | ||
mov edi, stack ; Destination address | ||
mov eax, KERNEL_STACK_MARKER ; Marker value | ||
rep stosd ; Initialize stack with marker | ||
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
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