From owner-freebsd-smp Sun Feb 9 7:24:16 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41D3337B401 for ; Sun, 9 Feb 2003 07:24:15 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1D1643F3F for ; Sun, 9 Feb 2003 07:24:14 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h19FOEoH002373 for ; Sun, 9 Feb 2003 07:24:14 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h19FOESY002372 for smp@FreeBSD.ORG; Sun, 9 Feb 2003 07:24:14 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Sun, 9 Feb 2003 07:24:14 -0800 From: David Schultz To: smp@FreeBSD.ORG Subject: machine/critical.h and !__GNUC__, interrupt nesting level, etc. Message-ID: <20030209152414.GA1390@HAL9000.homeunix.com> Mail-Followup-To: smp@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It seems that each src/sys/$arch/$arch/critical.h contains the following: #else /* !__GNUC__ */ void cpu_critical_enter(void) void cpu_critical_exit(void) #endif /* __GNUC__ */ Am I losing my mind or will that cause a compile-time error without semicolons at the ends of the lines? There doesn't even seem to be a !__GNUC__ implementation at all, or any irreparable gccisms in the normal version for that matter. Another random question that came up while I was browsing the source entirely too late at night: Why isn't td_intr_nesting_level bounded? Isn't there a danger of overflowing the kernel stack? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message