xref: /freebsd/sys/amd64/linux/linux_dummy_machdep.c (revision 97add684f5306ebf93be238a0340597ba1898d0e)
1e9b13c66SConrad Meyer /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3e9b13c66SConrad Meyer  *
41ca6b15bSDmitry Chagin  * Copyright (c) 2013 Dmitry Chagin <dchagin@FreeBSD.org>
5e9b13c66SConrad Meyer  *
6e9b13c66SConrad Meyer  * Redistribution and use in source and binary forms, with or without
7e9b13c66SConrad Meyer  * modification, are permitted provided that the following conditions
8e9b13c66SConrad Meyer  * are met:
9e9b13c66SConrad Meyer  * 1. Redistributions of source code must retain the above copyright
10e9b13c66SConrad Meyer  *    notice, this list of conditions and the following disclaimer.
11e9b13c66SConrad Meyer  * 2. Redistributions in binary form must reproduce the above copyright
12e9b13c66SConrad Meyer  *    notice, this list of conditions and the following disclaimer in the
13e9b13c66SConrad Meyer  *    documentation and/or other materials provided with the distribution.
14e9b13c66SConrad Meyer  *
15e9b13c66SConrad Meyer  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16e9b13c66SConrad Meyer  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17e9b13c66SConrad Meyer  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18e9b13c66SConrad Meyer  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19e9b13c66SConrad Meyer  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20e9b13c66SConrad Meyer  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21e9b13c66SConrad Meyer  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22e9b13c66SConrad Meyer  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23e9b13c66SConrad Meyer  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24e9b13c66SConrad Meyer  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25e9b13c66SConrad Meyer  * SUCH DAMAGE.
26e9b13c66SConrad Meyer  */
27e9b13c66SConrad Meyer 
28e9b13c66SConrad Meyer #include <sys/param.h>
29e9b13c66SConrad Meyer #include <sys/kernel.h>
30e9b13c66SConrad Meyer #include <sys/proc.h>
312456a459SDmitry Chagin #include <sys/sdt.h>
32e9b13c66SConrad Meyer 
33e9b13c66SConrad Meyer #include <amd64/linux/linux.h>
34e9b13c66SConrad Meyer #include <amd64/linux/linux_proto.h>
35e9b13c66SConrad Meyer #include <compat/linux/linux_dtrace.h>
36e9b13c66SConrad Meyer #include <compat/linux/linux_util.h>
37e9b13c66SConrad Meyer 
38e9b13c66SConrad Meyer /* DTrace init */
39e9b13c66SConrad Meyer LIN_SDT_PROVIDER_DECLARE(LINUX_DTRACE);
40e9b13c66SConrad Meyer 
41e9b13c66SConrad Meyer /*
42e9b13c66SConrad Meyer  * Before adding new stubs to this file, please check if a stub can be added to
43e9b13c66SConrad Meyer  * the machine-independent code in sys/compat/linux/linux_dummy.c (or
44e9b13c66SConrad Meyer  * sys/x86/linux/linux_dummy_x86.c).
45e9b13c66SConrad Meyer  */
46e9b13c66SConrad Meyer 
47e9b13c66SConrad Meyer UNIMPLEMENTED(get_thread_area);
48e9b13c66SConrad Meyer UNIMPLEMENTED(set_thread_area);
49e9b13c66SConrad Meyer UNIMPLEMENTED(uselib);
50e9b13c66SConrad Meyer 
51e9b13c66SConrad Meyer DUMMY(modify_ldt);
52e9b13c66SConrad Meyer 
53e9b13c66SConrad Meyer DUMMY(ioperm);
54e9b13c66SConrad Meyer DUMMY(io_setup);
55e9b13c66SConrad Meyer DUMMY(io_destroy);
56e9b13c66SConrad Meyer DUMMY(io_getevents);
57e9b13c66SConrad Meyer DUMMY(io_submit);
58e9b13c66SConrad Meyer DUMMY(io_cancel);
59e9b13c66SConrad Meyer DUMMY(readahead);
60e9b13c66SConrad Meyer DUMMY(restart_syscall);
61e9b13c66SConrad Meyer /* Linux 3.15: */
62e9b13c66SConrad Meyer DUMMY(kexec_file_load);
63*0a16d3d1SDmitry Chagin /* Linux 6.6: */
64*0a16d3d1SDmitry Chagin DUMMY(map_shadow_stack);
65