diff options
| author | Shell <[email protected]> | 2024-07-17 09:39:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-17 09:39:54 +0800 |
| commit | f6f570df742e8f03fb696ea036987b4d48a542c4 (patch) | |
| tree | d5e6c7a6c4d75b0fbb03f8ff4b3c02ccacddf5ec /libcpu/aarch64/common | |
| parent | 65ffe4e13ef52d007d83c93467871c529705b522 (diff) | |
| parent | 4ad194bb47101345ce3b3fa631ab2215a0c190c0 (diff) | |
Merge branch 'master' into shell/rv64-tick
Diffstat (limited to 'libcpu/aarch64/common')
| -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)); |
