aboutsummaryrefslogtreecommitdiff
path: root/aarch64/el0_ns/tztest.c
blob: 90044757967a958d2f4151c6187756dfeaeedbc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include "libcflat.h"
#include "arm_builtins.h"
#include "svc.h"

int y = 0;

int foo()
{
    printf("Hello from foo\n");

    return 4;
}

int main()
{
    int x = foo();

    y = x;

    __svc(SVC_EXIT);
    return y;
}