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.
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.
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]
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
36 typedef uintptr_t xc_arg_t
;
37 typedef int (*xc_func_t
)(xc_arg_t
, xc_arg_t
, xc_arg_t
);
40 * One of these is stored in each CPU's machcpu data, plus one extra for
41 * priority (ie panic) messages
43 typedef struct xc_data
{
51 * This is kept as small as possible, since for N CPUs we need N * N of them.
53 typedef struct xc_msg
{
62 struct xc_msg
*xc_next
;
66 * Cross-call routines.
70 extern void xc_init_cpu(struct cpu
*);
71 extern void xc_fini_cpu(struct cpu
*);
72 extern int xc_flush_cpu(struct cpu
*);
73 extern uint_t
xc_serv(caddr_t
, caddr_t
);
75 #define CPUSET2BV(set) ((ulong_t *)(void *)&(set))
76 extern void xc_call(xc_arg_t
, xc_arg_t
, xc_arg_t
, ulong_t
*, xc_func_t
);
77 extern void xc_call_nowait(xc_arg_t
, xc_arg_t
, xc_arg_t
, ulong_t
*,
79 extern void xc_sync(xc_arg_t
, xc_arg_t
, xc_arg_t
, ulong_t
*, xc_func_t
);
80 extern void xc_priority(xc_arg_t
, xc_arg_t
, xc_arg_t
, ulong_t
*, xc_func_t
);
90 #endif /* _SYS_X_CALL_H */