diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-10-01 20:36:15 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2021-10-01 20:36:15 +0300 |
| commit | b30ee14270a44e48167934b9b3923b4280bdc855 (patch) | |
| tree | fe900fd442e834f857927e9094ce7cbdda59b9fd /arch/riscv/config.h | |
| parent | 2d173beb3392aff35c8a33f4ac001bf63bb9adc6 (diff) | |
| download | kmi-b30ee14270a44e48167934b9b3923b4280bdc855.tar.gz kmi-b30ee14270a44e48167934b9b3923b4280bdc855.zip | |
First jump to virtual memory!
+ Lots of bughunting to do, probably lots of off-by-one and so on
errors, and I make a lot of naive and possibly dangerous assumptions.
But cool start nonetheless. Should also come up with some method of
exchanging data between the init and actual kernel, probably some struct
of some sort. TODO
Diffstat (limited to 'arch/riscv/config.h')
| -rw-r--r-- | arch/riscv/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/config.h b/arch/riscv/config.h index 9db8d8f..13e166b 100644 --- a/arch/riscv/config.h +++ b/arch/riscv/config.h @@ -2,7 +2,7 @@ #define PM_KERN 0x83800000 #define PM_STACK_BASE (PM_KERN + SZ_2M) #define PM_STACK_TOP (PM_STACK_BASE + SZ_2M - 2) -#define VM_KERN ((-1) - SZ_1G) +#define VM_KERN ((-1) - SZ_1G + 1) #define MAX_ORDER 3 #define PAGE_SHIFT 12 |
