diff options
| author | fangjianzhou <[email protected]> | 2023-11-28 14:20:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-28 14:20:11 +0800 |
| commit | 249871cbbcdc14f1c16a2d502639780ebc6ae078 (patch) | |
| tree | 95b9bd49d440bd9e18c0614e33451a59ea410445 /libcpu/aarch64/cortex-a | |
| parent | c06f4e98fce6c86ef412aa70c1f31c971a9d61a9 (diff) | |
[libcpu][aarch64] 使用设备树对CPU进行初始化 (#8221)
Diffstat (limited to 'libcpu/aarch64/cortex-a')
| -rw-r--r-- | libcpu/aarch64/cortex-a/entry_point.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcpu/aarch64/cortex-a/entry_point.S b/libcpu/aarch64/cortex-a/entry_point.S index 53c2920355..08e4b03768 100644 --- a/libcpu/aarch64/cortex-a/entry_point.S +++ b/libcpu/aarch64/cortex-a/entry_point.S @@ -209,6 +209,11 @@ after_mmu_enable: adr x1, .el_stack_top mov sp, x1 /* sp_el1 set to _start */ +#ifdef RT_USING_OFW + /* Save devicetree info */ + mov x0, dtb_paddr + bl rt_hw_fdt_install_early +#endif b rtthread_startup #ifdef RT_USING_SMP |
