summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-06-11 05:56:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-06-11 05:56:53 +0000
commit8bdc7fe1331e03fd5f3f5630ad8d0563acb92403 (patch)
tree75de3996ebbade7324a042816e9b1f9b1b35d929
parentc1ec42d4fc9e3a14b6c8e9981939244d85fe72ee (diff)
splvm, not splimp
-rw-r--r--sys/sys/malloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h
index 59440311c49..01ac98f121c 100644
--- a/sys/sys/malloc.h
+++ b/sys/sys/malloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.h,v 1.56 2002/03/14 01:27:14 millert Exp $ */
+/* $OpenBSD: malloc.h,v 1.57 2002/06/11 05:56:52 art Exp $ */
/* $NetBSD: malloc.h,v 1.39 1998/07/12 19:52:01 augustss Exp $ */
/*
@@ -372,7 +372,7 @@ struct kmembuckets {
#else /* do not collect statistics */
#define MALLOC(space, cast, size, type, flags) do { \
register struct kmembuckets *kbp = &bucket[BUCKETINDX(size)]; \
- long s = splimp(); \
+ long s = splvm(); \
if (kbp->kb_next == NULL) { \
(space) = (cast)malloc((u_long)(size), type, flags); \
} else { \
@@ -385,7 +385,7 @@ struct kmembuckets {
#define FREE(addr, type) do { \
register struct kmembuckets *kbp; \
register struct kmemusage *kup = btokup(addr); \
- long s = splimp(); \
+ long s = splvm(); \
if (1 << kup->ku_indx > MAXALLOCSAVE) { \
free((caddr_t)(addr), type); \
} else { \