shithub: riscv

Download patch

ref: a92749485e4341d094d91c83170d388f7bcae517
parent: b7b8be68311feb50d533a108793cae646281a411
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jun 16 22:49:59 EDT 2012

archacpi: boot processor comment

--- a/sys/src/9/pc/archacpi.c
+++ b/sys/src/9/pc/archacpi.c
@@ -375,7 +375,7 @@
 	amleval(amlwalk(amlroot, "_PIC"), "i", 1, nil);
 
 	if((t = findtable("APIC")) == nil)
-		panic("acpiinit: no APIC table found");
+		panic("acpiinit: no MADT table");
 
 	p = t->data;
 	e = p + tbldlen(t);
@@ -407,8 +407,8 @@
 				a->machno = machno++;
 
 				/*
-				 * how do we know if this is the
-				 * bootstrap processors apic?
+				 * platform firmware should list the boot processor
+				 * as the first processor entry in the MADT
 				 */
 				if(a->machno == 0)
 					a->flags |= PcmpBP;
--