Merge pull request #1524 from danielboulby-arm/db/ReclaimInit
rockchip: Add plat_is_my_cpu_primary function
This commit is contained in:
commit
4c0b164e64
|
@ -18,7 +18,7 @@
|
||||||
.globl platform_cpu_warmboot
|
.globl platform_cpu_warmboot
|
||||||
.globl plat_secondary_cold_boot_setup
|
.globl plat_secondary_cold_boot_setup
|
||||||
.globl plat_report_exception
|
.globl plat_report_exception
|
||||||
.globl platform_is_primary_cpu
|
.globl plat_is_my_cpu_primary
|
||||||
.globl plat_my_core_pos
|
.globl plat_my_core_pos
|
||||||
.globl plat_reset_handler
|
.globl plat_reset_handler
|
||||||
.globl plat_panic_handler
|
.globl plat_panic_handler
|
||||||
|
@ -73,12 +73,13 @@ cb_panic:
|
||||||
b cb_panic
|
b cb_panic
|
||||||
endfunc plat_secondary_cold_boot_setup
|
endfunc plat_secondary_cold_boot_setup
|
||||||
|
|
||||||
func platform_is_primary_cpu
|
func plat_is_my_cpu_primary
|
||||||
|
mrs x0, mpidr_el1
|
||||||
and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
|
and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
|
||||||
cmp x0, #PLAT_RK_PRIMARY_CPU
|
cmp x0, #PLAT_RK_PRIMARY_CPU
|
||||||
cset x0, eq
|
cset x0, eq
|
||||||
ret
|
ret
|
||||||
endfunc platform_is_primary_cpu
|
endfunc plat_is_my_cpu_primary
|
||||||
|
|
||||||
/* --------------------------------------------------------------------
|
/* --------------------------------------------------------------------
|
||||||
* void plat_panic_handler(void)
|
* void plat_panic_handler(void)
|
||||||
|
|
Loading…
Reference in New Issue