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 disable the MULTIPROCE...
details: https://anonhg.NetBSD.org/src/rev/02476c79d9a5
branches: trunk
changeset: 318987:02476c79d9a5
user: macallan <macallan%NetBSD.org@localhost>
date: Fri May 11 22:23:33 2018 +0000
description:
disable the MULTIPROCESSOR case in pmap_syncicache() because:
- __syncicache() wants a virtual address, not a pa
- this crashes on G5 SMP
- the rest of the function does the same as __syncicache() except it turns
the MMU off first so physical addresses work
with this, my PCIe G5 boots SMP
diffstat:
sys/arch/powerpc/powerpc/pmap_subr.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 16283e755e62 -r 02476c79d9a5 sys/arch/powerpc/powerpc/pmap_subr.c
--- a/sys/arch/powerpc/powerpc/pmap_subr.c Fri May 11 20:19:25 2018 +0000
+++ b/sys/arch/powerpc/powerpc/pmap_subr.c Fri May 11 22:23:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_subr.c,v 1.27 2012/02/01 09:54:03 matt Exp $ */
+/* $NetBSD: pmap_subr.c,v 1.28 2018/05/11 22:23:33 macallan Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.27 2012/02/01 09:54:03 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.28 2018/05/11 22:23:33 macallan Exp $");
#include "opt_multiprocessor.h"
#include "opt_altivec.h"
@@ -425,7 +425,14 @@
void
pmap_syncicache(paddr_t pa, psize_t len)
{
-#ifdef MULTIPROCESSOR
+
+/*
+ * XXX
+ * disabling the MULTIPROCESSOR case because:
+ * - _syncicache() takes a virtual addresses
+ * - this causes crashes on G5
+ */
+#ifdef MULTIPROCESSOR__
__syncicache((void *)pa, len);
#else
const size_t linewidth = curcpu()->ci_ci.icache_line_size;
Home |
Main Index |
Thread Index |
Old Index