PERFORCE change 42572 for review
Peter Wemm
peter at FreeBSD.org
Sun Nov 16 13:37:42 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=42572
Change 42572 by peter at peter_overcee on 2003/11/16 13:37:21
allow lapic_id() to be called before everything is up and running.
this is needed for the ktr hack
note to self: DO NOT COMMIT THIS!
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/local_apic.c#22 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/local_apic.c#22 (text+ko) ====
@@ -304,7 +304,12 @@
lapic_id(void)
{
+#if 0
KASSERT(lapic != NULL, ("local APIC is not mapped"));
+#else
+ if (lapic == 0)
+ return 0;
+#endif
return (lapic->id >> APIC_ID_SHIFT);
}
More information about the p4-projects
mailing list