| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: xcall.9,v 1.14 2019/10/06 17:14:18 uwe Exp $ | | 1 | .\" $NetBSD: xcall.9,v 1.15 2019/10/06 17:21:28 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2010 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2010 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Andrew Doran. | | 7 | .\" by Andrew Doran. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -84,27 +84,27 @@ Keep in mind that unless disabled, it ma | | | @@ -84,27 +84,27 @@ Keep in mind that unless disabled, it ma |
84 | .Pp | | 84 | .Pp |
85 | .Nm | | 85 | .Nm |
86 | also provides a mechanism for making | | 86 | also provides a mechanism for making |
87 | .Dq "high priority" | | 87 | .Dq "high priority" |
88 | cross calls. | | 88 | cross calls. |
89 | The function to be executed runs on the remote CPU within a | | 89 | The function to be executed runs on the remote CPU within a |
90 | software interrupt context, possibly interrupting other lower-priority | | 90 | software interrupt context, possibly interrupting other lower-priority |
91 | code running on the CPU. | | 91 | code running on the CPU. |
92 | .Sh NOTES | | 92 | .Sh NOTES |
93 | Functions being called should be relatively lightweight. | | 93 | Functions being called should be relatively lightweight. |
94 | They may block on locks, but carefully and minimally, to not interfere | | 94 | They may block on locks, but carefully and minimally, to not interfere |
95 | with other cross calls in the system. | | 95 | with other cross calls in the system. |
96 | .Sh FUNCTIONS | | 96 | .Sh FUNCTIONS |
97 | .Bl -tag -width compact | | 97 | .Bl -tag -width Fn |
98 | .It Fn xc_broadcast "flags" "func" "arg1" "arg2" | | 98 | .It Fn xc_broadcast "flags" "func" "arg1" "arg2" |
99 | Call | | 99 | Call |
100 | .Pf (* Fa func\| ) Ns Fo "" | | 100 | .Pf (* Fa func\| ) Ns Fo "" |
101 | .Fa "arg1" | | 101 | .Fa "arg1" |
102 | .Fa "arg2" | | 102 | .Fa "arg2" |
103 | .Fc | | 103 | .Fc |
104 | on all CPUs in the system. | | 104 | on all CPUs in the system. |
105 | Return a | | 105 | Return a |
106 | .Vt uint64_t | | 106 | .Vt uint64_t |
107 | .Dq ticket | | 107 | .Dq ticket |
108 | to | | 108 | to |
109 | .Fn xc_wait | | 109 | .Fn xc_wait |
110 | on for the cross-call to complete. | | 110 | on for the cross-call to complete. |