From: Peter Rye <prye@picu-sgh.demon.co.uk>
To: axp-list@redhat.com
Subject: Re: 2.1.132 doesn't compile?
Date: 26 Dec 1998 01:52:43 -0000 [thread overview]
Message-ID: <19981226015243.989.qmail@picu-sgh.demon.co.uk> (raw)
In-Reply-To: <199812241449.JAA02674@alphagen.wn.net> (message from Peter Petrakis on Thu, 24 Dec 1998 09:49:05 -0500)
>>>>> "Peter" == Peter Petrakis <peterpan@wn.net> 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;
}
next prev parent reply other threads:[~1998-12-26 20:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-24 7:19 2.1.132 doesn't compile? Tom Holroyd
1998-12-24 14:49 ` Peter Petrakis
1998-12-25 1:42 ` Tom Holroyd
1998-12-26 1:52 ` Peter Rye [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-12-24 14:22 Michael Wm. Gilbert
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox