Date: Sun, 16 Nov 2003 13:37:40 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 42572 for review Message-ID: <200311162137.hAGLbe1w021561@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=42572 Change 42572 by peter@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311162137.hAGLbe1w021561>