1147b9d04SAndrew Turner /*- 2147b9d04SAndrew Turner * Copyright (c) 1993 The Regents of the University of California. 3147b9d04SAndrew Turner * All rights reserved. 4147b9d04SAndrew Turner * 5147b9d04SAndrew Turner * Redistribution and use in source and binary forms, with or without 6147b9d04SAndrew Turner * modification, are permitted provided that the following conditions 7147b9d04SAndrew Turner * are met: 8147b9d04SAndrew Turner * 1. Redistributions of source code must retain the above copyright 9147b9d04SAndrew Turner * notice, this list of conditions and the following disclaimer. 10147b9d04SAndrew Turner * 2. Redistributions in binary form must reproduce the above copyright 11147b9d04SAndrew Turner * notice, this list of conditions and the following disclaimer in the 12147b9d04SAndrew Turner * documentation and/or other materials provided with the distribution. 13147b9d04SAndrew Turner * 3. Neither the name of the University nor the names of its contributors 14147b9d04SAndrew Turner * may be used to endorse or promote products derived from this software 15147b9d04SAndrew Turner * without specific prior written permission. 16147b9d04SAndrew Turner * 17147b9d04SAndrew Turner * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18147b9d04SAndrew Turner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19147b9d04SAndrew Turner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20147b9d04SAndrew Turner * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21147b9d04SAndrew Turner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22147b9d04SAndrew Turner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23147b9d04SAndrew Turner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24147b9d04SAndrew Turner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25147b9d04SAndrew Turner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26147b9d04SAndrew Turner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27147b9d04SAndrew Turner * SUCH DAMAGE. 28147b9d04SAndrew Turner * 29147b9d04SAndrew Turner * from: FreeBSD: src/sys/i386/include/sysarch.h,v 1.14 2000/09/21 30147b9d04SAndrew Turner */ 31147b9d04SAndrew Turner 32d5d97bedSMike Karels #ifdef __arm__ 33d5d97bedSMike Karels #include <arm/sysarch.h> 34d5d97bedSMike Karels #else /* !__arm__ */ 35d5d97bedSMike Karels 36147b9d04SAndrew Turner /* 37147b9d04SAndrew Turner * Architecture specific syscalls (arm64) 38147b9d04SAndrew Turner */ 39147b9d04SAndrew Turner #ifndef _MACHINE_SYSARCH_H_ 40147b9d04SAndrew Turner #define _MACHINE_SYSARCH_H_ 41147b9d04SAndrew Turner 42*c4e4a759SAndrew Turner #define ARM64_GUARD_PAGE 0x100 43*c4e4a759SAndrew Turner 44*c4e4a759SAndrew Turner struct arm64_guard_page_args { 45*c4e4a759SAndrew Turner __uintptr_t addr; 46*c4e4a759SAndrew Turner __size_t len; 47*c4e4a759SAndrew Turner }; 48*c4e4a759SAndrew Turner 49147b9d04SAndrew Turner #ifndef _KERNEL 50147b9d04SAndrew Turner 51147b9d04SAndrew Turner __BEGIN_DECLS 52147b9d04SAndrew Turner int sysarch(int _number, void *_args); 53147b9d04SAndrew Turner __END_DECLS 54147b9d04SAndrew Turner 55147b9d04SAndrew Turner #endif 56147b9d04SAndrew Turner 57147b9d04SAndrew Turner #endif /* !_MACHINE_SYSARCH_H_ */ 58d5d97bedSMike Karels 59d5d97bedSMike Karels #endif /* !__arm__ */ 60