blob: f221c1f52e3029d611c722b73553e430edfa3184 [file]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ZIRCON_KERNEL_INCLUDE_SYSCALLS_SYSCALLS_H_
#define ZIRCON_KERNEL_INCLUDE_SYSCALLS_SYSCALLS_H_
#include <sys/types.h>
#include <zircon/compiler.h>
__BEGIN_CDECLS
struct syscall_result {
// The assembler relies on the fact that the ABI will return this in
// x0,x1 (arm) or rax,rdx (x86) so we use plain types here to ensure this.
uint64_t status;
// Non-zero if thread was signaled.
uint64_t is_signaled;
};
struct syscall_result unknown_syscall(uint64_t syscall_num, uint64_t ip);
__END_CDECLS
#endif // ZIRCON_KERNEL_INCLUDE_SYSCALLS_SYSCALLS_H_