SCCS-vsn: sys/vax/vax/trap.c 4.16
-/* trap.c 4.15 82/07/24 */
+/* trap.c 4.16 82/09/04 */
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
register int *locr0 = ((int *)&psl)-PS;
register int i;
register struct proc *p;
register int *locr0 = ((int *)&psl)-PS;
register int i;
register struct proc *p;
- syst = u.u_vm.vm_stime;
if (USERMODE(locr0[PS])) {
type |= USER;
u.u_ar0 = locr0;
if (USERMODE(locr0[PS])) {
type |= USER;
u.u_ar0 = locr0;
- case ASTFLT + USER: /* Allow process switch */
- if ((u.u_procp->p_flag & SOWEUPC) && u.u_prof.pr_scale) {
- addupc(pc, &u.u_prof, 1);
- u.u_procp->p_flag &= ~SOWEUPC;
- }
goto out;
case ARITHTRAP + USER:
goto out;
case ARITHTRAP + USER:
*/
(void) spl6();
setrq(p);
*/
(void) spl6();
setrq(p);
- if (u.u_prof.pr_scale && (syst -= u.u_vm.vm_stime))
- addupc(locr0[PC], &u.u_prof, (int)-syst);
register int i; /* known to be r9 below */
register struct sysent *callp;
register struct proc *p;
register int i; /* known to be r9 below */
register struct sysent *callp;
register struct proc *p;
- syst = u.u_vm.vm_stime;
if (!USERMODE(locr0[PS]))
panic("syscall");
u.u_ar0 = locr0;
if (!USERMODE(locr0[PS]))
panic("syscall");
u.u_ar0 = locr0;
*/
(void) spl6();
setrq(p);
*/
(void) spl6();
setrq(p);
- if (u.u_prof.pr_scale && (syst -= u.u_vm.vm_stime))
- addupc(locr0[PC], &u.u_prof, (int)-syst);