diff options
| author | zms123456 <[email protected]> | 2024-07-16 17:04:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-16 17:04:55 +0800 |
| commit | 23fc7bfa4d992a105d72f114f0a712b3f61cbd65 (patch) | |
| tree | 3f95815ac70d01e08622688fdb50cf01b4170423 /libcpu | |
| parent | 1b581d0755450788b161f05486ecd97ee4f88ff3 (diff) | |
[libcpu][setup]fix fdt_ptr error (#9138)
fix fdt_ptr error
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/common/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/aarch64/common/setup.c b/libcpu/aarch64/common/setup.c index b38398ed9d..dd30b1d673 100644 --- a/libcpu/aarch64/common/setup.c +++ b/libcpu/aarch64/common/setup.c @@ -235,7 +235,7 @@ void rt_hw_common_setup(void) rt_memblock_reserve_memory("fdt", fdt_start, fdt_end, MEMBLOCK_NONE); rt_memmove((void *)(fdt_start - PV_OFFSET), (void *)(fdt_ptr - PV_OFFSET), fdt_size); - fdt_ptr = (void *)fdt_start; + fdt_ptr = (void *)fdt_start - PV_OFFSET; rt_system_heap_init((void *)(heap_start - PV_OFFSET), (void *)(heap_end - PV_OFFSET)); |
