diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:00:43 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:00:43 +0300 |
| commit | 122374c362ba8bb9082385da3c82e264ab594f15 (patch) | |
| tree | 0123fad5464aaf64f522d48f5069b35b90207aae /arch/riscv64/config.h | |
| parent | 03e12129927b0deba537a11bb5575bef93c57d0f (diff) | |
| download | kmi-122374c362ba8bb9082385da3c82e264ab594f15.tar.gz kmi-122374c362ba8bb9082385da3c82e264ab594f15.zip | |
smp now seems to work
+ Had some minor issues with a wraparound of size_t that effectively
meant that some regions were allocated twice. Also, booting should be
a bit more reliable now, turned out that the previous iteration of the
booting was just accidentally working due to the kernel being placed
'close enough' in RAM to where it was linked to. Fixed by allocating a
vmem of O1 that maps the kernel to a 2MiB boundary at boot, pretty
nifty.
Diffstat (limited to 'arch/riscv64/config.h')
| -rw-r--r-- | arch/riscv64/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h index 2c513a5..952c0ca 100644 --- a/arch/riscv64/config.h +++ b/arch/riscv64/config.h @@ -32,6 +32,12 @@ /** Direct map offset. */ #define VM_DMAP (0xffffffc000000000) /* testing for now */ +/** Page reserved for kernel mapping in O1 */ +#define KERNEL_PAGE 510UL + +/** Kernel virtual address */ +#define VM_KERNEL (0xffffffff80000000) + /** Page reserved for kernel I/O. */ #define IO_PAGE 511UL |
