summaryrefslogtreecommitdiff
path: root/stage3/paging.asm
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2024-01-09 20:56:07 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2024-01-09 21:00:24 +0100
commit59f22bc7ce5bbadf62722f3db5c93b45e86e4cca (patch)
treec5771b21f6c12f3e58cbb6c6dda8df3bc4b23798 /stage3/paging.asm
parent33bb4187103c49c81fbf7c6f18ebcfd4c4d66fd2 (diff)
downloadcuddles-59f22bc7ce5bbadf62722f3db5c93b45e86e4cca.tar.xz
use ELF for kernel
Diffstat (limited to 'stage3/paging.asm')
-rw-r--r--stage3/paging.asm15
1 files changed, 12 insertions, 3 deletions
diff --git a/stage3/paging.asm b/stage3/paging.asm
index 783649e..f58bb98 100644
--- a/stage3/paging.asm
+++ b/stage3/paging.asm
@@ -1,15 +1,24 @@
global page_region
-section .text
+%define PAGEBUFSIZE 0x10 * 0x1000
+
+section .bss
+
+ALIGN(4096)
+pagebuf_data: resb PAGEBUFSIZE
+
+section .data
pagebuf_init:
- .start: dq 0x5000
- .size: dq 0x2000
+ .start: dq pagebuf_data
+ .size: dq PAGEBUFSIZE
.used: dq 0
pagebuf: dq pagebuf_init
next_page: dq 0
+section .text
+
; allocate new page table buffer
alloc:
; rsi = buffer (result)