Module Name:    src
Committed By:   matt
Date:           Tue Dec 27 06:57:34 UTC 2011

Modified Files:
        src/sys/arch/mips/mips [matt-nb5-mips64]: mips_machdep.c

Log Message:
Since MIPS supports multiple page sizes now, add pg_size to cpu_kcore_hdr_t
as well members to decode ksegx addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.205.4.1.2.1.2.57 -r1.205.4.1.2.1.2.58 \
    src/sys/arch/mips/mips/mips_machdep.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/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.57 src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.58
--- src/sys/arch/mips/mips/mips_machdep.c:1.205.4.1.2.1.2.57	Fri Dec 23 23:12:08 2011
+++ src/sys/arch/mips/mips/mips_machdep.c	Tue Dec 27 06:57:34 2011
@@ -1840,6 +1840,14 @@ cpu_dump(void)
 	/*
 	 * Add the machine-dependent header info.
 	 */
+	cpuhdrp->pg_size = PAGE_SIZE;
+#ifdef ENABLE_MIPS_KSEGX
+	if (mips3_ksegx_start) {
+		cpuhdrp->ksegx_pfn = mips3_ksegx_start >> PAGE_SHIFT;
+		cpuhdrp->ksegx_va = VM_KSEGX_ADDRESS;
+		cpuhdrp->ksegx_size = VM_KSEGX_SIZE;
+	}
+#endif
 	if (MIPS_HAS_R4K_MMU) {
 		cpuhdrp->archlevel = 3;
 		cpuhdrp->pg_shift  = MIPS3_PG_SHIFT;

Reply via email to