| plan 9 kernel history: overview | file list | diff list |
1991/1112/gnot/clock.c (diff list | history)
| 1991/1108/sys/src/9/gnot/clock.c:22,28 – 1991/1112/sys/src/9/gnot/clock.c:22,33 (short | long | prev | next) | ||
| 1990/03091 | clock(Ureg *ur) { Proc *p; | |
| 1991/1112 | int user; | |
| 1990/03091 | ||
| 1991/1112 | user = (ur->sr&SUPER) == 0; if(user) u->dbgreg = ur; | |
| 1990/03091 | SYNCREG[1] = 0x5F; /* clear interrupt */ m->ticks++; p = m->proc; | |
| 1991/1108/sys/src/9/gnot/clock.c:43,54 – 1991/1112/sys/src/9/gnot/clock.c:48,56 | ||
| 1991/0614 | else sched(); } | |
| 1991/0710 |
| |
| 1991/1112 | if(user){ | |
| 1991/0710 | (*(ulong*)(USTKTOP-BY2WD)) += TK2MS(1); /* profiling clock */ | |
| 1991/1108 |
| |
| 1991/0710 |
| |
| 1991/1112 | notify(ur); | |
| 1991/0710 | } | |
| 1990/03091 | } } | |