summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-07-28 19:05:28 +0000
committerjhb <jhb@FreeBSD.org>2006-07-28 19:05:28 +0000
commitc62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010 (patch)
treecc5695072b3b30d9c9cd45487beb493d692b8a26 /sys/arm
parent6a211b6d81725475d5c4891b35cbbe3fe7397102 (diff)
downloadFreeBSD-src-c62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010.zip
FreeBSD-src-c62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010.tar.gz
Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to
mark system calls as being MPSAFE: - Stop conditionally acquiring Giant around system call invocations. - Remove all of the 'M' prefixes from the master system call files. - Remove support for the 'M' prefix from the script that generates the syscall-related files from the master system call files. - Don't explicitly set SYF_MPSAFE when registering nfssvc.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/trap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/arm/arm/trap.c b/sys/arm/arm/trap.c
index 1cb53db..8e0bef6 100644
--- a/sys/arm/arm/trap.c
+++ b/sys/arm/arm/trap.c
@@ -878,7 +878,6 @@ syscall(struct thread *td, trapframe_t *frame, u_int32_t insn)
u_int nap, nargs;
register_t *ap, *args, copyargs[MAXARGS];
struct sysent *callp;
- int locked = 0;
PCPU_LAZY_INC(cnt.v_syscall);
td->td_pticks = 0;
@@ -928,9 +927,6 @@ syscall(struct thread *td, trapframe_t *frame, u_int32_t insn)
CTR4(KTR_SYSC, "syscall enter thread %p pid %d proc %s code %d", td,
td->td_proc->p_pid, td->td_proc->p_comm, code);
- if ((callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_lock(&Giant);
- locked = 1;
if (error == 0) {
td->td_retval[0] = 0;
td->td_retval[1] = 0;
@@ -978,8 +974,6 @@ bad:
frame->tf_spsr |= PSR_C_bit; /* carry bit */
break;
}
- if (locked && (callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_unlock(&Giant);
WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
(code >= 0 && code < SYS_MAXSYSCALL) ? syscallnames[code] : "???");
OpenPOWER on IntegriCloud