11.2Smsaitoh/*	$NetBSD: netbsd32_syscall.c,v 1.2 2024/02/07 04:20:26 msaitoh Exp $	*/
21.1Sryo
31.1Sryo/*
41.2Smsaitoh * Copyright (c) 2018 Ryo Shimizu
51.1Sryo * All rights reserved.
61.1Sryo *
71.1Sryo * Redistribution and use in source and binary forms, with or without
81.1Sryo * modification, are permitted provided that the following conditions
91.1Sryo * are met:
101.1Sryo * 1. Redistributions of source code must retain the above copyright
111.1Sryo *    notice, this list of conditions and the following disclaimer.
121.1Sryo * 2. Redistributions in binary form must reproduce the above copyright
131.1Sryo *    notice, this list of conditions and the following disclaimer in the
141.1Sryo *    documentation and/or other materials provided with the distribution.
151.1Sryo *
161.1Sryo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
171.1Sryo * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
181.1Sryo * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
191.1Sryo * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
201.1Sryo * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
211.1Sryo * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
221.1Sryo * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
231.1Sryo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
241.1Sryo * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
251.1Sryo * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261.1Sryo * POSSIBILITY OF SUCH DAMAGE.
271.1Sryo */
281.1Sryo
291.1Sryo#include <sys/cdefs.h>
301.2Smsaitoh__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscall.c,v 1.2 2024/02/07 04:20:26 msaitoh Exp $");
311.1Sryo
321.1Sryo#include "opt_compat_netbsd32.h"
331.1Sryo
341.1Sryo#include <compat/netbsd32/netbsd32_syscall.h>
351.1Sryo
361.1Sryo#define EMULNAME(x)		__CONCAT(netbsd32_,x)
371.1Sryo#define EMULNAMEU(x)		__CONCAT(NETBSD32_,x)
381.1Sryo
391.1Sryo#include "aarch32_syscall.c"
40