mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-03 12:21:37 +00:00
Also, adapt the Makefiles to add the arch specific directory to the CFLAGS. The Linux-SGX sysdep-x86_64.h was identical and could therefore be removed.
9 lines
196 B
C
9 lines
196 B
C
#include <sys/syscall.h>
|
|
#include <sysdep-arch.h>
|
|
|
|
int main(int argc, char** argv) {
|
|
const char buf[] = "Hello world\n";
|
|
INLINE_SYSCALL(write, 3, 1, buf, sizeof(buf) - 1);
|
|
return 0;
|
|
}
|