Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm Fix the argument to KERNEL_PROC_LOCK/KERNEL_PRO...



details:   https://anonhg.NetBSD.org/src/rev/2b261dd5e2f3
branches:  trunk
changeset: 570681:2b261dd5e2f3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 24 06:58:14 2004 +0000

description:
Fix the argument to KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK.

diffstat:

 sys/arch/arm/arm/syscall.c   |  16 ++++++++--------
 sys/arch/arm/arm/undefined.c |   8 ++++----
 sys/arch/arm/arm32/fault.c   |   8 ++++----
 3 files changed, 16 insertions(+), 16 deletions(-)

diffs (125 lines):

diff -r 4820b8b21ded -r 2b261dd5e2f3 sys/arch/arm/arm/syscall.c
--- a/sys/arch/arm/arm/syscall.c        Sun Oct 24 00:35:08 2004 +0000
+++ b/sys/arch/arm/arm/syscall.c        Sun Oct 24 06:58:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.25 2004/08/21 11:57:36 rearnsha Exp $    */
+/*     $NetBSD: syscall.c,v 1.26 2004/10/24 06:58:14 skrll Exp $       */
 
 /*-
  * Copyright (c) 2000, 2003 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.25 2004/08/21 11:57:36 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.26 2004/10/24 06:58:14 skrll Exp $");
 
 #include <sys/device.h>
 #include <sys/errno.h>
@@ -146,14 +146,14 @@
                ksi.ksi_signo = SIGILL;
                ksi.ksi_code = ILL_ILLOPC;
                ksi.ksi_addr = (u_int32_t *)(intptr_t) (frame->tf_pc-INSN_SIZE);
-               KERNEL_PROC_LOCK(l->l_proc);
+               KERNEL_PROC_LOCK(l);
 #if 0
                /* maybe one day we'll do emulations */
                (*l->l_proc->p_emul->e_trapsignal)(l, &ksi);
 #else
                trapsignal(l, &ksi);
 #endif
-               KERNEL_PROC_UNLOCK(l->l_proc);
+               KERNEL_PROC_UNLOCK(l);
                userret(l);
                return;
        }
@@ -243,7 +243,7 @@
        register_t *ap, *args, copyargs[MAXARGS], rval[2];
        ksiginfo_t ksi;
 
-       KERNEL_PROC_LOCK(p);
+       KERNEL_PROC_LOCK(l);
 
        switch (insn & SWI_OS_MASK) { /* Which OS is the SWI from? */
        case SWI_OS_ARM: /* ARM-defined SWIs */
@@ -389,7 +389,7 @@
        register_t *ap, *args, copyargs[MAXARGS], rval[2];
        ksiginfo_t ksi;
 
-       KERNEL_PROC_LOCK(p);
+       KERNEL_PROC_LOCK(l);
 
        switch (insn & SWI_OS_MASK) { /* Which OS is the SWI from? */
        case SWI_OS_ARM: /* ARM-defined SWIs */
@@ -550,9 +550,9 @@
        userret(l);
 #ifdef KTRACE
        if (KTRPOINT(p, KTR_SYSRET)) {
-               KERNEL_PROC_LOCK(p);
+               KERNEL_PROC_LOCK(l);
                ktrsysret(p, SYS_fork, 0, 0);
-               KERNEL_PROC_UNLOCK(p);
+               KERNEL_PROC_UNLOCK(l);
        }
 #endif
 }
diff -r 4820b8b21ded -r 2b261dd5e2f3 sys/arch/arm/arm/undefined.c
--- a/sys/arch/arm/arm/undefined.c      Sun Oct 24 00:35:08 2004 +0000
+++ b/sys/arch/arm/arm/undefined.c      Sun Oct 24 06:58:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: undefined.c,v 1.24 2004/08/21 12:03:16 rearnsha Exp $  */
+/*     $NetBSD: undefined.c,v 1.25 2004/10/24 06:58:14 skrll Exp $     */
 
 /*
  * Copyright (c) 2001 Ben Harris.
@@ -54,7 +54,7 @@
 #include <sys/kgdb.h>
 #endif
 
-__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.24 2004/08/21 12:03:16 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.25 2004/10/24 06:58:14 skrll Exp $");
 
 #include <sys/malloc.h>
 #include <sys/queue.h>
@@ -155,9 +155,9 @@
                                ksi.ksi_code = TRAP_BRKPT;
                                ksi.ksi_addr = (u_int32_t *)addr;
                                ksi.ksi_trap = 0;
-                               KERNEL_PROC_LOCK(l->l_proc);
+                               KERNEL_PROC_LOCK(l);
                                trapsignal(l, &ksi);
-                               KERNEL_PROC_UNLOCK(l->l_proc);
+                               KERNEL_PROC_UNLOCK(l);
                                return 0;
                        }
 #ifdef KGDB
diff -r 4820b8b21ded -r 2b261dd5e2f3 sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Sun Oct 24 00:35:08 2004 +0000
+++ b/sys/arch/arm/arm32/fault.c        Sun Oct 24 06:58:14 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.51 2004/08/21 12:04:17 rearnsha Exp $      */
+/*     $NetBSD: fault.c,v 1.52 2004/10/24 06:58:14 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -81,7 +81,7 @@
 #include "opt_kgdb.h"
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.51 2004/08/21 12:04:17 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.52 2004/10/24 06:58:14 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -174,9 +174,9 @@
 call_trapsignal(struct lwp *l, ksiginfo_t *ksi)
 {
 
-       KERNEL_PROC_LOCK(l->l_proc);
+       KERNEL_PROC_LOCK(l);
        TRAPSIGNAL(l, ksi);
-       KERNEL_PROC_UNLOCK(l->l_proc);
+       KERNEL_PROC_UNLOCK(l);
 }
 
 static __inline int



Home | Main Index | Thread Index | Old Index