| plan 9 kernel history: overview | file list | diff list |
1992/0108/gnot/trap.c (diff list | history)
| 1991/1218/sys/src/9/gnot/trap.c:7,13 – 1992/0108/sys/src/9/gnot/trap.c:7,12 (short | long | prev | next) | ||
| 1990/03091 | #include "io.h" | |
| 1990/0513 | #include "errno.h" | |
| 1990/03091 |
| |
| 1991/0717 | void noted(Ureg*, ulong); | |
| 1991/0503 | void rfnote(Ureg*); | |
| 1990/03091 | ||
| 1991/1218/sys/src/9/gnot/trap.c:156,162 – 1992/0108/sys/src/9/gnot/trap.c:155,161 | ||
| 1990/03091 | /* * Call user, if necessary, with note */ | |
| 1992/0108 | int | |
| 1990/03091 | notify(Ureg *ur) { | |
| 1991/1218 | int l; | |
| 1991/1218/sys/src/9/gnot/trap.c:165,172 – 1992/0108/sys/src/9/gnot/trap.c:164,171 | ||
| 1990/03091 | ||
| 1991/1112 | if(u->p->procctl) procctl(u->p); | |
| 1990/03091 |
| |
| 1992/0108 | if(u->nnote == 0) return 0; | |
| 1991/1112 | ||
| 1991/1114 | s = spllo(); | |
| 1991/1216 | qlock(&u->p->debug); | |
| 1991/1218/sys/src/9/gnot/trap.c:218,223 – 1992/0108/sys/src/9/gnot/trap.c:217,223 | ||
| 1990/03091 | } | |
| 1991/1216 | qunlock(&u->p->debug); | |
| 1991/1114 | splx(s); | |
| 1992/0108 | return 1; | |
| 1990/03091 | } /* | |