diff options
| author | Alexey Gavrilov <rebovas@yahoo.com> | 2025-05-10 16:04:55 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <rebovas@yahoo.com> | 2025-05-10 16:04:55 +0700 |
| commit | 5d3179d0e2c3915af65dedef0952672220ac4714 (patch) | |
| tree | d871c0041066c910aac06a6a58e7c0cc6cf81d66 /kernel/boot.s | |
| parent | 3003b42fb06a707484bd7d7902057c9d65d4c0df (diff) | |
Kheap section + metadata
Diffstat (limited to 'kernel/boot.s')
| -rw-r--r-- | kernel/boot.s | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/kernel/boot.s b/kernel/boot.s index 798e7e3..534beb6 100644 --- a/kernel/boot.s +++ b/kernel/boot.s @@ -2,17 +2,19 @@ MBFLAGS equ 0 MAGIC equ 0x1BADB002 CHECKSUM equ -(MAGIC + MBFLAGS) -section .multiboot + section .multiboot align 4 dd MAGIC dd MBFLAGS dd CHECKSUM section .bss +resb 512 align 16 -resb 160 +; align 16 bytes according to the System V ABI standard +; Stack space stack_bottom: -resb 16384 +resb 16384 ; 16KiB stack_top: section .text @@ -25,3 +27,10 @@ _start: .hang: hlt jmp .hang .end: + +section .kheap +kheap_top: +; Kernel heap space +; Change this value together Kheap::size varibale (mem/Kheap.h file) +resb 4096 +kheap_bottom: |
