Espresso 0.0.2a
This commit is contained in:
@ -21,7 +21,7 @@ forced to be within the first 8 KiB of the kernel file.
|
||||
/*
|
||||
The multiboot standard does not define the value of the stack pointer register
|
||||
(esp) and it is up to the kernel to provide a stack. This allocates room for a
|
||||
small stack by creating a symbol at the bottom of it, then allocating 16384
|
||||
small stack by creating a symbol at the bottom of it, then allocating 65536
|
||||
bytes for it, and finally creating a symbol at the top. The stack grows
|
||||
downwards on x86. The stack is in its own section so it can be marked nobits,
|
||||
which means the kernel file is smaller because it does not contain an
|
||||
@ -30,10 +30,10 @@ System V ABI standard and de-facto extensions. The compiler will assume the
|
||||
stack is properly aligned and failure to align the stack will result in
|
||||
undefined behavior.
|
||||
*/
|
||||
.section .bss
|
||||
.section .stack
|
||||
.align 16
|
||||
stack_bottom:
|
||||
.skip 16384 # 16 KiB
|
||||
.skip 65536 # 64 KiB
|
||||
stack_top:
|
||||
|
||||
/*
|
||||
@ -183,7 +183,6 @@ _start:
|
||||
|
||||
/*
|
||||
Call _kernel_early, early low-level initialization will happen there.
|
||||
NOTE: I don't use 'jmp' because it doesn't work. Nice try.
|
||||
*/
|
||||
call _kernel_early
|
||||
|
||||
|
||||
Reference in New Issue
Block a user