diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-11-07 17:52:06 -0800 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-11-07 17:52:06 -0800 |
| commit | 0d872150de5bcd8d9c037302629df30bba4efc80 (patch) | |
| tree | 165f2d593796b18be29be5cb105e253471cdb699 /executor | |
| parent | e85d2a6170932cb475cf91be848c7593598eb81c (diff) | |
sys: initial trusty support
Trusty is a set of software components supporting
a Trusted Execution Environment (TEE) on mobile devices.
https://source.android.com/security/trusty
Add syscall descriptions and some boilerplate.
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/defs.h | 15 | ||||
| -rw-r--r-- | executor/syscalls.h | 34 |
2 files changed, 49 insertions, 0 deletions
diff --git a/executor/defs.h b/executor/defs.h index d78d5a7d1..bd7a001cf 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -185,6 +185,21 @@ #endif +#if GOOS_trusty +#define GOOS "trusty" + +#if GOARCH_arm +#define GOARCH "arm" +#define SYZ_REVISION "e310afc1c6f271074c53522dc18d6a86e8f2553f" +#define SYZ_EXECUTOR_USES_FORK_SERVER 0 +#define SYZ_EXECUTOR_USES_SHMEM 0 +#define SYZ_PAGE_SIZE 4096 +#define SYZ_NUM_PAGES 4096 +#define SYZ_DATA_OFFSET 536870912 +#endif + +#endif + #if GOOS_windows #define GOOS "windows" diff --git a/executor/syscalls.h b/executor/syscalls.h index cd2c10d73..2b63527cb 100644 --- a/executor/syscalls.h +++ b/executor/syscalls.h @@ -13033,6 +13033,40 @@ const call_t syscalls[] = { #endif +#if GOOS_trusty + +#if GOARCH_arm +const call_t syscalls[] = { + {"accept", 18}, + {"brk", 2}, + {"close", 19}, + {"connect", 17}, + {"exit_etc", 3}, + {"finish_dma", 11}, + {"get_msg", 32}, + {"gettime", 7}, + {"handle_set_create", 21}, + {"handle_set_ctrl", 22}, + {"ioctl", 5}, + {"mmap", 8}, + {"munmap", 9}, + {"nanosleep", 6}, + {"port_create", 16}, + {"prepare_dma", 10}, + {"put_msg", 34}, + {"read", 4}, + {"read_msg", 33}, + {"send_msg", 35}, + {"set_cookie", 20}, + {"wait", 24}, + {"wait_any", 25}, + {"write", 1}, + +}; +#endif + +#endif + #if GOOS_windows #if GOARCH_amd64 |
