diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 21:07:35 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-06 21:07:35 +0300 |
| commit | 70afa4184544d244d804713fdee5836f4f20a9fe (patch) | |
| tree | a7ca3f332d9bec3e1dc337c8c2d7515dfd0f4f14 /arch/riscv64/config.h | |
| parent | 9c0f26d26366ff7def20d5be6aff5e0f93976ad6 (diff) | |
| download | kmi-70afa4184544d244d804713fdee5836f4f20a9fe.tar.gz kmi-70afa4184544d244d804713fdee5836f4f20a9fe.zip | |
remove some unused macros
Diffstat (limited to 'arch/riscv64/config.h')
| -rw-r--r-- | arch/riscv64/config.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/riscv64/config.h b/arch/riscv64/config.h index aefcc8f..2c513a5 100644 --- a/arch/riscv64/config.h +++ b/arch/riscv64/config.h @@ -26,34 +26,12 @@ /* don't touch >:( */ -/** - * How much space to reserve for possible firmware region. - * Assumed to be at start of RAM. - */ -#define FW_MAX_SIZE (SZ_2M) - -/** Maximum size of the kernel proper. Largely arbitrary. */ -/** \todo UBSAN is getting pretty close to this limit, should it be raised? */ -#define PM_KERN_SIZE (SZ_256K) - -/** Virtual memory stack base. In this case, right after the kernel. */ -#define VM_STACK_BASE (VM_KERN + PM_KERN_SIZE) - -/** Size of virtual memory stack. */ -#define VM_STACK_SIZE (SZ_4K) - -/** Top of virtual memory stack. */ -#define VM_STACK_TOP (VM_STACK_BASE + VM_STACK_SIZE) - #if __riscv_xlen == 64 /* 64bit */ /** Direct map offset. */ #define VM_DMAP (0xffffffc000000000) /* testing for now */ -/** Virtual address of kernel proper inside direct mapping. */ -#define VM_KERN (VM_DMAP + FW_MAX_SIZE) - /** Page reserved for kernel I/O. */ #define IO_PAGE 511UL @@ -92,7 +70,6 @@ /** \todo figure this stuff out */ #define VM_DMAP 0x80000000 /* works on qemu at least */ -#define VM_KERN (VM_DMAP + FW_MAX_SIZE) #define IO_PAGE 1023UL #define KSTART_PAGE 512UL |
