diff options
Diffstat (limited to 'el0/nonsecure')
-rw-r--r-- | el0/nonsecure/el0_nsec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/el0/nonsecure/el0_nsec.c b/el0/nonsecure/el0_nsec.c index 3ef4c69..d766a2f 100644 --- a/el0/nonsecure/el0_nsec.c +++ b/el0/nonsecure/el0_nsec.c @@ -1,8 +1,8 @@ #include "el0_common.h" #include "tztest.h" -const char *sec_state_str = "non-secure"; -const uint32_t secure_state = NONSECURE; +char *sec_state_str[] = {"secure", "nonsecure"}; +uint32_t secure_state = NONSECURE; const uint32_t exception_level = EL0; sys_control_t *syscntl = NULL; @@ -10,7 +10,7 @@ int main() { svc_op_desc_t desc; - printf("EL0 (%s) started...\n", sec_state_str); + printf("EL0 (%s) started...\n", sec_state_str[secure_state]); /* Fetch the system-wide control structure */ __svc(SVC_OP_GET_SYSCNTL, &desc); |