aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/config.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 14:53:44 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-12-20 14:53:44 +0200
commit6f8e5772d17d277842be3f6162ddd665a17e5be9 (patch)
tree45f5a2b9df6b6c2f3c369cf5b7e5b46c9acbccdd /arch/riscv/config.h
parent6b2465318b2dc922de282deea96c1621f7f41039 (diff)
downloadkmi-6f8e5772d17d277842be3f6162ddd665a17e5be9.tar.gz
kmi-6f8e5772d17d277842be3f6162ddd665a17e5be9.zip
More sensible init
+ Who knew some reservations were a good thing? (at least relativelyy speaking)
Diffstat (limited to 'arch/riscv/config.h')
-rw-r--r--arch/riscv/config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/riscv/config.h b/arch/riscv/config.h
index fa3c178..35e0b6e 100644
--- a/arch/riscv/config.h
+++ b/arch/riscv/config.h
@@ -2,14 +2,16 @@
/* --- START ARCH USER CONFIG VALUES --- */
/* physical address to which the kernel will be loaded */
-#define PM_KERN 0x83800000
+#define RAM_BASE 0x80000000
+#define PM_KERN (RAM_BASE + SZ_512K)
/* --- END ARCH USER CONFIG VALUES --- */
/* don't touch >:( */
#define PM_STACK_BASE (PM_KERN + SZ_2M)
#define PM_STACK_TOP (PM_STACK_BASE + SZ_2M - 2)
-#define VM_KERN (-SZ_1G)
+#define VM_DMAP (-SZ_256G) /* testing for now */
+#define VM_KERN (VM_DMAP + SZ_256K)
#define TMP_PTE (-SZ_2G)
#define ROOT_PTE (0)
#define ROOT_REGION (SZ_4K)