shithub: riscv

Download patch

ref: 6269cdd5f81371d04f7def12c764619c14c0d206
parent: e969575d2e55eec89d3a2765b974e023123d8fa5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jul 8 13:46:27 EDT 2023

pc: do trapinit() and mathinit() early

--- a/sys/src/9/pc/main.c
+++ b/sys/src/9/pc/main.c
@@ -40,11 +40,12 @@
 	ramdiskinit();
 	confinit();
 	xinit();
+	trapinit();
+	mathinit();
 	if(i8237alloc != nil)
 		i8237alloc();
 	pcicfginit();
 	bootscreeninit();
-	trapinit();
 	printinit();
 	cpuidprint();
 	mmuinit();
@@ -51,7 +52,6 @@
 	if(arch->intrinit)	/* launches other processors on an mp */
 		arch->intrinit();
 	timersinit();
-	mathinit();
 	if(arch->clockenable)
 		arch->clockenable();
 	procinit0();