Redesign userspace memory management
All checks were successful
Build documentation / build-and-deploy (push) Successful in 44s

This commit is contained in:
2026-01-27 17:04:08 +01:00
parent 600886a7ee
commit b388b30b24
23 changed files with 195 additions and 484 deletions

View File

@@ -4,15 +4,16 @@
#include <amd64/intr.h>
#include <libk/std.h>
/// Top of userspace process' stack
/* Top of userspace process' stack */
#define PROC_USTACK_TOP 0x00007FFFFFFFF000ULL
/// Size of userspace process' stack
/* Size of userspace process' stack */
#define USTACK_SIZE (256 * PAGE_SIZE)
/* proc_map () base address */
#define PROC_MAP_BASE 0x0000700000000000
/// Platform-dependent process data
/* Platform-dependent process data */
struct proc_platformdata {
struct saved_regs regs;
uintptr_t user_stack;
uintptr_t kernel_stack;
uint64_t gs_base;
};