Load limine module + alloc user stack

This commit is contained in:
2026-04-01 15:51:04 +02:00
parent d644126901
commit 11a9dd4adb
10 changed files with 61 additions and 3 deletions
+4
View File
@@ -40,6 +40,10 @@
#define KERNEL_STACK_SIZE 65536
#define KERNEL_IDT_ENTRIES 33
/* user */
#define USER_STACK_TOP 0x80000000
#define USER_STACK_PAGES 16 // 16*4096 = 64kb
/* paging */
#define PAGING_MAX_PHYS 0x200000000
+1
View File
@@ -54,6 +54,7 @@ struct boot_context {
struct limine_hhdm_response* hhdm;
struct limine_kernel_address_response* kaddr;
struct limine_boot_time_response* bootdate;
struct limine_module_response* module;
};
// Are these modules initialized yet?
+1
View File
@@ -24,6 +24,7 @@ struct process {
status_t status;
struct cpu_status* context;
void* root_page_table; // Process PML4 (should contain kernel PML4 in higher half [256-511]
void* kernel_stack; // Used for interrupts (syscall: int 0x80), defines the TSS RSP0
struct process* next;
};