Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 first steps towards fujitsu SPARC64...
details: https://anonhg.NetBSD.org/src/rev/8af60246216d
branches: trunk
changeset: 764927:8af60246216d
user: mrg <mrg%NetBSD.org@localhost>
date: Thu May 12 05:44:09 2011 +0000
description:
first steps towards fujitsu SPARC64 support:
- use cputyp when writing the kernel core
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (42 lines):
diff -r 24c4c1884086 -r 8af60246216d sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Thu May 12 05:43:54 2011 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Thu May 12 05:44:09 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.270 2011/02/24 08:42:30 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.271 2011/05/12 05:44:09 mrg Exp $ */
/*
*
* Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.270 2011/02/24 08:42:30 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.271 2011/05/12 05:44:09 mrg Exp $");
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
@@ -2334,7 +2334,7 @@
/* Fill in MD segment header (interpreted by MD part of libkvm) */
kcpu = (cpu_kcore_hdr_t *)((long)bp + ALIGN(sizeof(kcore_seg_t)));
- kcpu->cputype = CPU_SUN4U;
+ kcpu->cputype = cputyp;
kcpu->kernbase = (uint64_t)KERNBASE;
kcpu->cpubase = (uint64_t)CPUINFO_VA;
@@ -3346,6 +3346,14 @@
vaddr_t va;
int rv;
+#if 0
+ /*
+ * Why is this?
+ */
+ if (CPU_ISSUN4US || CPU_ISSUN4V)
+ return;
+#endif
+
KASSERT(mutex_owned(&pmap_lock));
DPRINTF(PDB_ENTER, ("pmap_page_uncache(%llx)\n",
Home |
Main Index |
Thread Index |
Old Index