forked from pepper-org/pepperOS
Load limine module + alloc user stack
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user