Alloc extra pages for raw binary

This commit is contained in:
2026-05-10 19:36:01 +02:00
parent 01911bdd32
commit 1142699c48
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -44,6 +44,8 @@
#define USER_STACK_TOP 0x80000000
#define USER_STACK_PAGES 16 // 16*4096 = 64kb
#define USER_CODE_START 0x400000 // like linux
#define USER_RAW_EXTRA_PAGES 8192 // Extra writable pages after raw image for .bss/heap
// TODO: throw this away and make an ELF loader instead bruh
/* paging */
#define PAGING_MAX_PHYS 0x200000000