git: 9front

Download patch

ref: cb0a62fe37e20ef724530d07d08413b7dde6d7a3
parent: 93e963ea4fe27abb41a1c890163bdb52fcb6a726
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Mar 6 09:31:51 EST 2015

zynq: do mpinit() early so cpu1 debug prints do not intermix

--- a/sys/src/9/zynq/main.c
+++ b/sys/src/9/zynq/main.c
@@ -349,7 +349,7 @@
 void
 cpuidprint(void)
 {
-	print("\ncpu%d: %dMHz ARM Cortex-A9\n", m->machno, m->cpumhz);
+	print("cpu%d: %dMHz ARM Cortex-A9\n", m->machno, m->cpumhz);
 }
 
 void
@@ -394,6 +394,7 @@
 {
 	active.machs |= (1 << m->machno);
 	if(m->machno != 0){
+		uartputs("\n", 1);
 		mmuinit();
 		intrinit();
 		timerinit();
@@ -416,6 +417,7 @@
 	quotefmtinstall();
 	cpuidprint();
 	sanity();
+	mpinit();
 	todinit();
 	timersinit();
 	procinit0();
@@ -430,6 +432,5 @@
 	swapinit();
 	screeninit();
 	userinit();
-	mpinit();
 	schedinit();
 }
--