Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc When UPAGES > 1, both __HAVE_CPU_UA...
details: https://anonhg.NetBSD.org/src/rev/53549d89fdab
branches: trunk
changeset: 745023:53549d89fdab
user: rin <rin%NetBSD.org@localhost>
date: Fri Feb 21 13:38:05 2020 +0000
description:
When UPAGES > 1, both __HAVE_CPU_UAREA_ROUTINES and PMAP_MAP_POOLPAGE
must be defined in order to allocate physically contiguous memory for
u-area.
diffstat:
sys/arch/powerpc/powerpc/vm_machdep.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8c97ff6085db -r 53549d89fdab sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c Fri Feb 21 13:33:07 2020 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c Fri Feb 21 13:38:05 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.100 2015/07/06 05:25:29 matt Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.101 2020/02/21 13:38:05 rin Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.100 2015/07/06 05:25:29 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.101 2020/02/21 13:38:05 rin Exp $");
#include "opt_altivec.h"
#include "opt_multiprocessor.h"
@@ -310,6 +310,11 @@
bp->b_saveaddr = 0;
}
+#if UPAGES > 1 && \
+ (!defined(__HAVE_CPU_UAREA_ROUTINES) || !defined(PMAP_MAP_POOLPAGE))
+#error "We need physically contiguous pages for u-area."
+#endif
+
#ifdef __HAVE_CPU_UAREA_ROUTINES
void *
cpu_uarea_alloc(bool system)
Home |
Main Index |
Thread Index |
Old Index