We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2322f01 commit 9ceb17fCopy full SHA for 9ceb17f
bsp/qemu-virt64-riscv/driver/board.h
@@ -20,10 +20,12 @@ extern unsigned int __bss_end;
20
#define KERNEL_VADDR_START 0x0
21
#endif
22
23
+#define VIRT64_SBI_MEMSZ (0x200000)
24
+
25
#define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
26
#define RT_HW_HEAP_END ((void *)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024))
27
#define RT_HW_PAGE_START RT_HW_HEAP_END
-#define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + 256 * 1024 * 1024))
28
+#define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + (256 * 1024 * 1024 - VIRT64_SBI_MEMSZ)))
29
30
void rt_hw_board_init(void);
31
void rt_init_user_mem(struct rt_thread *thread, const char *name,
0 commit comments