Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use USPACE_ALIGN for an alignment argument on alloc...
details: https://anonhg.NetBSD.org/src/rev/c4a0b3bb073d
branches: trunk
changeset: 500404:c4a0b3bb073d
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Dec 11 15:35:42 2000 +0000
description:
Use USPACE_ALIGN for an alignment argument on allocating U-area.
The default value is 0, and could be overridden by machine/vmparam.h.
diffstat:
sys/kern/kern_fork.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r c4c52839f8f3 -r c4a0b3bb073d sys/kern/kern_fork.c
--- a/sys/kern/kern_fork.c Mon Dec 11 15:35:09 2000 +0000
+++ b/sys/kern/kern_fork.c Mon Dec 11 15:35:42 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_fork.c,v 1.79 2000/12/11 05:29:02 mycroft Exp $ */
+/* $NetBSD: kern_fork.c,v 1.80 2000/12/11 15:35:42 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -145,7 +145,12 @@
* kernel virtual address space. The actual U-area pages will
* be allocated and wired in vm_fork().
*/
- uaddr = uvm_km_valloc_align(kernel_map, USPACE, USPACE);
+
+#ifndef USPACE_ALIGN
+#define USPACE_ALIGN 0
+#endif
+
+ uaddr = uvm_km_valloc_align(kernel_map, USPACE, USPACE_ALIGN);
if (__predict_false(uaddr == 0)) {
(void)chgproccnt(uid, -1);
nprocs--;
Home |
Main Index |
Thread Index |
Old Index