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:
Wayne Ren 2019-08-13 17:16:55 +08:00 committed by Ioannis Glaropoulos
commit 8cbcdd71ec

View file

@ -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.
*/