Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jun 2004 00:08:38 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54243 for review
Message-ID:  <200406060008.i5608c8T056984@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54243

Change 54243 by jmallett@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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406060008.i5608c8T056984>