PERFORCE change 42085 for review

Peter Wemm peter at FreeBSD.org
Tue Nov 11 19:33:31 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=42085

Change 42085 by peter at peter_overcee on 2003/11/11 19:32:45

	sanity check for the outb shootdown for the atpic

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/machdep.c#65 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#65 (text+ko) ====

@@ -48,6 +48,7 @@
 #include "opt_ddb.h"
 #include "opt_inet.h"
 #include "opt_ipx.h"
+#include "opt_isa.h"
 #include "opt_kstack_pages.h"
 #include "opt_maxmem.h"
 #include "opt_msgbuf.h"
@@ -1122,9 +1123,13 @@
 	u_int64_t msr;
 	char *env;
 
+#ifdef DEV_ISA
 	/* Preemptively mask the atpics and leave them shut down */
 	outb(IO_ICU1 + ICU_IMR_OFFSET, 0xff);
 	outb(IO_ICU2 + ICU_IMR_OFFSET, 0xff);
+#else
+#error "have you forgotten the isa device?";
+#endif
 
 	/* Turn on PTE NX (no execute) bit */
 	msr = rdmsr(MSR_EFER) | EFER_NXE;


More information about the p4-projects mailing list