]> rtime.felk.cvut.cz Git - hercules2020/jailhouse-build.git/blob - test/prem-test.c
d90c95cb91c0ab37025917bdd8e68ce7536567c4
[hercules2020/jailhouse-build.git] / test / prem-test.c
1 #include <stdio.h>
2 #include <stdint.h>
3 #define _GNU_SOURCE         /* See feature_test_macros(7) */
4 #include <unistd.h>
5 #include <sys/syscall.h>   /* For SYS_xxx definitions */
6
7 #ifndef SYS_prem_guard_set
8 #define SYS_prem_guard_set 792
9 #endif
10
11
12 unsigned long prem_guard_set(unsigned long arg1,
13                              unsigned long arg2,
14                              unsigned long arg3)
15 {
16         return syscall(SYS_prem_guard_set, arg1, arg2, arg3);
17 }
18
19 int main(int argc, char *argv[])
20 {
21         printf("hvc result: %lu\n", prem_guard_set(11, 22, 33));
22         return 0;
23 }