1 // Copyright 2017 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 #include <sys/types.h> 8 9 struct syscall_result { 10 // The assembler relies on the fact that the ABI will return this in 11 // x0,x1 (arm) or rax,rdx (x86) so we use plain types here to ensure this. 12 uint64_t status; 13 // Non-zero if thread was signaled. 14 uint64_t is_signaled; 15 }; 16 17 struct syscall_result unknown_syscall(uint64_t syscall_num, uint64_t ip); 18