shithub: nix

Download patch

ref: 99b31aa3dc62b0b18c276b34c31fefe897258644
parent: a92365254c0fe8056d347b92be353c83908657b5
author: glenda <glenda@cirno>
date: Sun May 5 14:19:57 EDT 2024

squidboy builds

--- a/sys/src/nix/pc64/squidboy.c
+++ b/sys/src/nix/pc64/squidboy.c
@@ -8,9 +8,15 @@
 
 #include "mp.h"
 
+#define DBG print
+
 static void
 squidboy(Apic* apic)
 {
+	void acmmuswitch(void);
+	void acinit(void);
+	void acsched(void);
+
 	machinit();
 	mmuinit();
 	cpuidentify();
@@ -25,7 +31,7 @@
 	timersinit();
 	m->nixtype = NIXTC; // NIXAC;
 
-	DBG("Hello Squidboy %d %d\n", apicno, m->machno);
+	DBG("Hello Squidboy %d %d\n", m->apicno, m->machno);
 
 	switch(m->nixtype){
 	case NIXAC:
@@ -40,7 +46,7 @@
 		schedinit();
 		break;
 	}
-	panic("squidboy returns (type %d)", m->nixtype)
+	panic("squidboy returns (type %d)", m->nixtype);
 }
 
 void