| 97 | } |
| 98 | |
| 99 | void |
| 100 | syscall_thread_exit(struct thread *td, struct sysent *se) |
| 101 | { |
| 102 | u_int32_t cnt, oldcnt; |
| 103 | |
| 104 | KASSERT((se->sy_thrcnt & SY_THR_STATIC) == 0, |
| 105 | ("%s: not a static syscall", __func__)); |
| 106 | |
| 107 | do { |
| 108 | oldcnt = se->sy_thrcnt; |
| 109 | cnt = oldcnt - SY_THR_INCR; |
| 110 | } while (atomic_cmpset_rel_32(&se->sy_thrcnt, oldcnt, cnt) == 0); |
| 111 | } |
| 112 | |
| 113 | int |
| 114 | kern_syscall_register(struct sysent *sysents, int *offset, |
no test coverage detected