Module Name:    src
Committed By:   mrg
Date:           Thu May 12 05:44:09 UTC 2011

Modified Files:
        src/sys/arch/sparc64/sparc64: pmap.c

Log Message:
first steps towards fujitsu SPARC64 support:

- use cputyp when writing the kernel core


To generate a diff of this commit:
cvs rdiff -u -r1.270 -r1.271 src/sys/arch/sparc64/sparc64/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/pmap.c
diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.270 src/sys/arch/sparc64/sparc64/pmap.c:1.271
--- src/sys/arch/sparc64/sparc64/pmap.c:1.270	Thu Feb 24 08:42:30 2011
+++ src/sys/arch/sparc64/sparc64/pmap.c	Thu May 12 05:44:09 2011
@@ -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",

Reply via email to