shithub: riscv

Download patch

ref: fadbb92afaa7530121a13306aad4224692f1d6ee
parent: aade4d9d8ae9bc60b628f73573399c763888f189
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();
 }