summaryrefslogtreecommitdiff
path: root/sys/kern/kern_malloc.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1994-12-17 04:04:42 +0000
committerDavid Greenman <dg@FreeBSD.org>1994-12-17 04:04:42 +0000
commit763424fcf0aab477fb4476b72f2f08d09cd2daba (patch)
treea7b73a36549245e3eb452eb4258a47d19b129bdd /sys/kern/kern_malloc.c
parent50da78da7cfe38a7011b735705e8234dd6bc9047 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r--sys/kern/kern_malloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c
index f70cbfb74158..86e35d7401da 100644
--- a/sys/kern/kern_malloc.c
+++ b/sys/kern/kern_malloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94
- * $Id: kern_malloc.c,v 1.4 1994/10/02 17:35:17 phk Exp $
+ * $Id: kern_malloc.c,v 1.5 1994/10/09 07:34:56 davidg Exp $
*/
#include <sys/param.h>
@@ -112,7 +112,7 @@ malloc(size, type, flags)
#endif
indx = BUCKETINDX(size);
kbp = &bucket[indx];
- s = splimp();
+ s = splhigh();
#ifdef KMEMSTATS
while (ksp->ks_memuse >= ksp->ks_limit) {
if (flags & M_NOWAIT) {
@@ -267,7 +267,7 @@ free(addr, type)
kup = btokup(addr);
size = 1 << kup->ku_indx;
kbp = &bucket[kup->ku_indx];
- s = splimp();
+ s = splhigh();
#ifdef DIAGNOSTIC
/*
* Check for returns of data that do not point to the