PERFORCE change 54243 for review

Juli Mallett jmallett at FreeBSD.org
Sun Jun 6 00:08:39 GMT 2004


http://perforce.freebsd.org/chv.cgi?CH=54243

Change 54243 by jmallett at jmallett_oingo on 2004/06/06 00:08:18

	Remove kend calculation...at least until mips64emul can grow
	LoadedProgram stuff...

Affected files ...

.. //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#28 edit

Differences ...

==== //depot/projects/mips/sys/mips/sgimips/machdep_sgimips.c#28 (text+ko) ====

@@ -86,9 +86,6 @@
 	struct machine_type *mtp;
 	const char *cpufreq;
 	int first, i, j, last, size;
-	vm_offset_t kend;
-
-	kend = 0;
 
 	/*
 	 * Initialise the ARCS stuff.
@@ -137,18 +134,6 @@
 			arcsmem += btoc(size);
 			break;
 		case ARCS_Mem_Type_LoadedProgram:
-			/* XXX does not allow for kernels loaded
-			 * at the very end of the available space.
-			 * XXX assumes sorted memory, but it is?
-			 */
-			/*
-			 * If this kend is higher than the
-			 * current kend, and we have memory
-			 * before it, then mark the end of
-			 * kernel memory.
-			 */
-			if (j > 0 && phys_avail[j - 1] >= kend)
-				kend = MIPS_PHYS_TO_KSEG1(last);
 			lpmem += btoc(size);
 			break;
 		case ARCS_Mem_Type_FreeContiguous:
@@ -165,8 +150,6 @@
 		}
 		physsz += size;
 	}
-	if (kend == 0)
-		panic("End of kernel should not be 0");
 
 	init_param2(btoc(physsz));
 	mips_init();


More information about the p4-projects mailing list