Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化代码可读性
Browse files Browse the repository at this point in the history
heyuanjie87 authored Jan 7, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 50e8c4d commit 57b0439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bsp/qemu-virt64-riscv/driver/board.h
Original file line number Diff line number Diff line change
@@ -20,10 +20,12 @@ extern unsigned int __bss_end;
#define KERNEL_VADDR_START 0x0
#endif

#define VIRT64_SBI_MEMSZ (0x200000)

#define RT_HW_HEAP_BEGIN ((void *)&__bss_end)
#define RT_HW_HEAP_END ((void *)(RT_HW_HEAP_BEGIN + 64 * 1024 * 1024))
#define RT_HW_PAGE_START RT_HW_HEAP_END
#define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + (256 * 1024 * 1024 - 0x200000)))
#define RT_HW_PAGE_END ((void *)(KERNEL_VADDR_START + (256 * 1024 * 1024 - VIRT64_SBI_MEMSZ)))

void rt_hw_board_init(void);
void rt_init_user_mem(struct rt_thread *thread, const char *name,

0 comments on commit 57b0439

Please sign in to comment.