Kernel: Define constant USERSPACE_END

This should be used for userspace generic allocations. Currently I used
KERNEL_OFFSET, but I want to limit userspace to the actual lower half of
the address space
This commit is contained in:
2025-04-15 23:07:22 +03:00
parent 36baf7b0af
commit a933fabb86
3 changed files with 7 additions and 5 deletions

View File

@@ -4,8 +4,10 @@
#if ARCH(x86_64)
#define KERNEL_OFFSET 0xFFFFFFFF80000000
#define USERSPACE_END 0xFFFF800000000000
#elif ARCH(i686)
#define KERNEL_OFFSET 0xC0000000
#define USERSPACE_END 0xC0000000
#else
#error
#endif