Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern PAGE_SIZE is apparently not a constant on the sparc...
details: https://anonhg.NetBSD.org/src/rev/65ea6aa4c378
branches: trunk
changeset: 567304:65ea6aa4c378
user: he <he%NetBSD.org@localhost>
date: Tue Jun 08 19:35:30 2004 +0000
description:
PAGE_SIZE is apparently not a constant on the sparc port, so don't
use it in a static initializer. Instead, initialize in signal_init().
diffstat:
sys/kern/kern_sig.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 94e05f7b3879 -r 65ea6aa4c378 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c Tue Jun 08 19:31:56 2004 +0000
+++ b/sys/kern/kern_sig.c Tue Jun 08 19:35:30 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.196 2004/06/04 12:23:50 skrll Exp $ */
+/* $NetBSD: kern_sig.c,v 1.197 2004/06/08 19:35:30 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.196 2004/06/04 12:23:50 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.197 2004/06/08 19:35:30 he Exp $");
#include "opt_ktrace.h"
#include "opt_compat_sunos.h"
@@ -112,7 +112,7 @@
}
static struct pool_allocator sigactspool_allocator = {
- sigacts_poolpage_alloc, sigacts_poolpage_free, (PAGE_SIZE)*2,
+ sigacts_poolpage_alloc, sigacts_poolpage_free,
};
POOL_INIT(siginfo_pool, sizeof(siginfo_t), 0, 0, 0, "siginfo",
@@ -230,6 +230,8 @@
signal_init(void)
{
+ sigactspool_allocator.pa_pagesz = (PAGE_SIZE)*2;
+
pool_init(&sigacts_pool, sizeof(struct sigacts), 0, 0, 0, "sigapl",
sizeof(struct sigacts) > PAGE_SIZE ?
&sigactspool_allocator : &pool_allocator_nointr);
Home |
Main Index |
Thread Index |
Old Index