From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4719 invoked from network); 26 Dec 1998 20:14:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Dec 1998 20:14:32 -0000 Received: from picu-sgh.demon.co.uk (qmailr@picu-sgh.demon.co.uk [194.222.182.163]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id PAA22043 for ; Sat, 26 Dec 1998 15:00:22 -0500 Received: (qmail 990 invoked by uid 500); 26 Dec 1998 01:52:43 -0000 Date: 26 Dec 1998 01:52:43 -0000 Message-ID: <19981226015243.989.qmail@picu-sgh.demon.co.uk> From: Peter Rye To: axp-list@redhat.com In-reply-to: <199812241449.JAA02674@alphagen.wn.net> (message from Peter Petrakis on Thu, 24 Dec 1998 09:49:05 -0500) Subject: Re: 2.1.132 doesn't compile? References: <199812241449.JAA02674@alphagen.wn.net> >>>>> "Peter" == Peter Petrakis writes: Peter> It doesn't appear you're usign egcs. You have to edit the Peter> Makefile in two places. First where it says CC and farther down Peter> where it says CFLAGS. Replace "gcc" with egcs and be dure to Peter> commment out the SMP=1 line at the top of the file. Hope that Peter> helps. 2.1.132 doesn't have the SMP line in the Makefile. That's now been moved to a configuration option. The problem appears to be in some changes which didn't make it into the asm-alpha/softirq.h file. This patch works here. It just transfers the i386 changes to the alpha routines. --- include/asm-alpha/softirq.h.orig Sat Dec 26 00:51:33 1998 +++ include/asm-alpha/softirq.h Sat Dec 26 00:55:03 1998 @@ -27,7 +27,8 @@ extern inline void init_bh(int nr, void (*routine)(void)) { bh_base[nr] = routine; - bh_mask_count[nr] = 0; + /* bh_mask_count[nr] = 0; */ + atomic_set(&bh_mask_count[nr], 0); bh_mask |= 1 << nr; } @@ -116,12 +117,14 @@ extern inline void disable_bh(int nr) { bh_mask &= ~(1 << nr); - bh_mask_count[nr]++; + /* bh_mask_count[nr]++; */ + atomic_inc(&bh_mask_count[nr]); } extern inline void enable_bh(int nr) { - if (!--bh_mask_count[nr]) + /* if (!--bh_mask_count[nr]) */ + if (atomic_dec_and_test(&bh_mask_count[nr])) bh_mask |= 1 << nr; }