pass &u to syscall routines (eventually to become a syscontext)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 5 Jul 1989 01:01:43 +0000 (17:01 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 5 Jul 1989 01:01:43 +0000 (17:01 -0800)
SCCS-vsn: sys/tahoe/tahoe/trap.c 7.4
SCCS-vsn: sys/vax/vax/trap.c 7.4

usr/src/sys/tahoe/tahoe/trap.c
usr/src/sys/vax/vax/trap.c

index 460428c..b8dc1c7 100644 (file)
@@ -3,12 +3,11 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)trap.c      7.3 (Berkeley) %G%
+ *     @(#)trap.c      7.4 (Berkeley) %G%
  */
 
 #include "param.h"
 #include "systm.h"
  */
 
 #include "param.h"
 #include "systm.h"
-#include "dir.h"
 #include "user.h"
 #include "proc.h"
 #include "seg.h"
 #include "user.h"
 #include "proc.h"
 #include "seg.h"
@@ -266,7 +265,7 @@ syscall(sp, type, hfs, accmst, acclst, dbl, code, pc, psl)
                if (KTRPOINT(p, KTR_SYSCALL))
                        ktrsyscall(p->p_tracep, code, callp->sy_narg);
 #endif
                if (KTRPOINT(p, KTR_SYSCALL))
                        ktrsyscall(p->p_tracep, code, callp->sy_narg);
 #endif
-               (*callp->sy_call)();
+               (*callp->sy_call)(&u);
        }
        if (u.u_eosys == NORMALRETURN) {
                if (u.u_error) {
        }
        if (u.u_eosys == NORMALRETURN) {
                if (u.u_error) {
index 52bf1f7..d937be9 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)trap.c      7.3 (Berkeley) %G%
+ *     @(#)trap.c      7.4 (Berkeley) %G%
  */
 
 #include "psl.h"
  */
 
 #include "psl.h"
@@ -12,7 +12,6 @@
 
 #include "param.h"
 #include "systm.h"
 
 #include "param.h"
 #include "systm.h"
-#include "dir.h"
 #include "user.h"
 #include "assym.s"
 #include "proc.h"
 #include "user.h"
 #include "assym.s"
 #include "proc.h"
@@ -253,7 +252,7 @@ syscall(sp, type, code, pc, psl)
                        putchar('\n', 0);
                }
 #endif
                        putchar('\n', 0);
                }
 #endif
-               (*(callp->sy_call))();
+               (*(callp->sy_call))(&u);
        }
        if (u.u_eosys == NORMALRETURN) {
                if (u.u_error) {
        }
        if (u.u_eosys == NORMALRETURN) {
                if (u.u_error) {