mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-22 16:16:16 +04:00
Create and load a stack
This commit is contained in:
parent
5ebdd89ffb
commit
9819e17a28
@ -3,6 +3,8 @@ global start
|
|||||||
section .text
|
section .text
|
||||||
bits 32
|
bits 32
|
||||||
start:
|
start:
|
||||||
|
mov esp, stack_top
|
||||||
|
|
||||||
; print `OK` to screen
|
; print `OK` to screen
|
||||||
mov dword [0xb8000], 0x2f4b2f4f
|
mov dword [0xb8000], 0x2f4b2f4f
|
||||||
hlt
|
hlt
|
||||||
@ -15,3 +17,8 @@ error:
|
|||||||
mov dword [0xb8008], 0x4f204f20
|
mov dword [0xb8008], 0x4f204f20
|
||||||
mov byte [0xb800a], al
|
mov byte [0xb800a], al
|
||||||
hlt
|
hlt
|
||||||
|
|
||||||
|
section .bss
|
||||||
|
stack_bottom:
|
||||||
|
resb 64
|
||||||
|
stack_top:
|
||||||
|
Loading…
Reference in New Issue
Block a user