diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
commit | 4e00bfe9e4fce563a74dcd487149539b6bc02ba9 (patch) | |
tree | a134970c4687287588758bb78c439e9cde819bb9 /sys/arch/amd64 | |
parent | 16017b33d1fad6b6fd295f39b365b33719b42ae9 (diff) |
Remove unnecessary lockmgr() archaism that was costing too much in terms
of panics and bugfixes. Access curproc directly, do not expect a process
pointer as an argument. Should fix many "process context required" bugs.
Incentive and okay millert@, okay marc@. Various testing, thanks.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/gdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/gdt.c b/sys/arch/amd64/amd64/gdt.c index 73a267ca697..9a72648bfec 100644 --- a/sys/arch/amd64/amd64/gdt.c +++ b/sys/arch/amd64/amd64/gdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt.c,v 1.6 2005/09/25 20:48:18 miod Exp $ */ +/* $OpenBSD: gdt.c,v 1.7 2005/11/19 02:18:00 pedro Exp $ */ /* $NetBSD: gdt.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /*- @@ -82,14 +82,14 @@ static __inline void gdt_lock() { if (curproc != NULL) /* XXX - ugh. needed for startup */ - (void) lockmgr(&gdt_lock_store, LK_EXCLUSIVE, NULL, curproc); + (void) lockmgr(&gdt_lock_store, LK_EXCLUSIVE, NULL); } static __inline void gdt_unlock() { if (curproc != NULL) - (void) lockmgr(&gdt_lock_store, LK_RELEASE, NULL, curproc); + (void) lockmgr(&gdt_lock_store, LK_RELEASE, NULL); } void |