mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00
Merge "fix(cpus): assert invalid cpu_ops obtained" into integration
This commit is contained in:
commit
74e3959ea3
1 changed files with 9 additions and 0 deletions
|
@ -33,6 +33,15 @@ func reset_handler
|
|||
/* Get the matching cpu_ops pointer */
|
||||
bl get_cpu_ops_ptr
|
||||
|
||||
#if ENABLE_ASSERTIONS
|
||||
/*
|
||||
* Assert if invalid cpu_ops obtained. If this is not valid, it may
|
||||
* suggest that the proper CPU file hasn't been included.
|
||||
*/
|
||||
cmp x0, #0
|
||||
ASM_ASSERT(ne)
|
||||
#endif
|
||||
|
||||
/* Get the cpu_ops reset handler */
|
||||
ldr x2, [x0, #CPU_RESET_FUNC]
|
||||
mov x30, x19
|
||||
|
|
Loading…
Add table
Reference in a new issue