arch: arc: secure stat should also be reset correctly
secure status should aslo be set correctly Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
849f76e793
commit
8cbcdd71ec
1 changed files with 5 additions and 2 deletions
|
@ -50,6 +50,11 @@ SECTION_FUNC(TEXT,__start)
|
|||
*/
|
||||
mov r0, 0
|
||||
kflag r0
|
||||
|
||||
#ifdef CONFIG_ARC_SECURE_FIRMWARE
|
||||
sflag r0
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOOT_TIME_MEASUREMENT) && defined(CONFIG_ARCV2_TIMER)
|
||||
/*
|
||||
* ARCV2 timer (timer0) is a free run timer, let it start to count
|
||||
|
@ -68,8 +73,6 @@ SECTION_FUNC(TEXT,__start)
|
|||
#endif
|
||||
sr r0, [_ARC_V2_AUX_IRQ_HINT]
|
||||
|
||||
/* \todo: MPU init, gp for small data? */
|
||||
|
||||
/* set the vector table base early,
|
||||
* so that exception vectors can be handled.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue