4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2015, Joyent, Inc. All rights reserved.
25 */
26
27 #include <sys/asm_linkage.h>
28
29 #if defined(__lint)
30
31 char stubs_base[1], stubs_end[1];
32
33 #else /* __lint */
34
35 #include "assym.h"
36
37 /*
38 * !!!!!!!! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! !!!!!!!!
39 *
40 * For functions which are either STUBs or WSTUBs the actual function
41 * need to be called using 'call' instruction because of preamble and
42 * postamble (i.e mod_hold_stub and mod_release_stub) around the
43 * function call. Due to this we need to copy arguments for the
44 * real function. On Intel we can't tell how many arguments are there
515 WSTUB(ipsecah, sadb_insertassoc, nomod_zero);
516 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero);
517 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero);
518 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero);
519 END_MODULE(ipsecah);
520 #endif
521
522 #ifndef IPSECESP_MODULE
523 MODULE(ipsecesp,drv);
524 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero);
525 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero);
526 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero);
527 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero);
528 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero);
529 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero);
530 END_MODULE(ipsecesp);
531 #endif
532
533 #ifndef KEYSOCK_MODULE
534 MODULE(keysock, drv);
535 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero);
536 WSTUB(keysock, keysock_extended_reg, nomod_zero);
537 WSTUB(keysock, keysock_next_seq, nomod_zero);
538 END_MODULE(keysock);
539 #endif
540
541 #ifndef SPDSOCK_MODULE
542 MODULE(spdsock,drv);
543 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero);
544 END_MODULE(spdsock);
545 #endif
546
547 /*
548 * Stubs for nfs common code.
549 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c
550 */
551 #ifndef NFS_MODULE
552 MODULE(nfs,fs);
553 WSTUB(nfs, nfs_getvnodeops, nomod_zero);
554 WSTUB(nfs, nfs_perror, nomod_zero);
|
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2017, Joyent, Inc. All rights reserved.
25 */
26
27 #include <sys/asm_linkage.h>
28
29 #if defined(__lint)
30
31 char stubs_base[1], stubs_end[1];
32
33 #else /* __lint */
34
35 #include "assym.h"
36
37 /*
38 * !!!!!!!! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! !!!!!!!!
39 *
40 * For functions which are either STUBs or WSTUBs the actual function
41 * need to be called using 'call' instruction because of preamble and
42 * postamble (i.e mod_hold_stub and mod_release_stub) around the
43 * function call. Due to this we need to copy arguments for the
44 * real function. On Intel we can't tell how many arguments are there
515 WSTUB(ipsecah, sadb_insertassoc, nomod_zero);
516 WSTUB(ipsecah, ipsecah_in_assocfailure, nomod_zero);
517 WSTUB(ipsecah, sadb_set_lpkt, nomod_zero);
518 WSTUB(ipsecah, ipsecah_icmp_error, nomod_zero);
519 END_MODULE(ipsecah);
520 #endif
521
522 #ifndef IPSECESP_MODULE
523 MODULE(ipsecesp,drv);
524 WSTUB(ipsecesp, ipsecesp_fill_defs, nomod_zero);
525 WSTUB(ipsecesp, ipsecesp_algs_changed, nomod_zero);
526 WSTUB(ipsecesp, ipsecesp_in_assocfailure, nomod_zero);
527 WSTUB(ipsecesp, ipsecesp_init_funcs, nomod_zero);
528 WSTUB(ipsecesp, ipsecesp_icmp_error, nomod_zero);
529 WSTUB(ipsecesp, ipsecesp_send_keepalive, nomod_zero);
530 END_MODULE(ipsecesp);
531 #endif
532
533 #ifndef KEYSOCK_MODULE
534 MODULE(keysock, drv);
535 WSTUB(keysock, keysock_spdsock_wput_iocdata, nomod_void);
536 WSTUB(keysock, keysock_plumb_ipsec, nomod_zero);
537 WSTUB(keysock, keysock_extended_reg, nomod_zero);
538 WSTUB(keysock, keysock_next_seq, nomod_zero);
539 END_MODULE(keysock);
540 #endif
541
542 #ifndef SPDSOCK_MODULE
543 MODULE(spdsock,drv);
544 WSTUB(spdsock, spdsock_update_pending_algs, nomod_zero);
545 END_MODULE(spdsock);
546 #endif
547
548 /*
549 * Stubs for nfs common code.
550 * XXX nfs_getvnodeops should go away with removal of kludge in vnode.c
551 */
552 #ifndef NFS_MODULE
553 MODULE(nfs,fs);
554 WSTUB(nfs, nfs_getvnodeops, nomod_zero);
555 WSTUB(nfs, nfs_perror, nomod_zero);
|