Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 2.1.132 doesn't compile?
@ 1998-12-24  7:19 Tom Holroyd
  1998-12-24 14:49 ` Peter Petrakis
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Holroyd @ 1998-12-24  7:19 UTC (permalink / raw)
  To: axp-list

egcs-1.1.1, AlphaPC164LX

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8   -DEXPORT_SYMTAB -c
ksyms.c
/usr/src/linux/include/asm/softirq.h: In function `init_bh':
In file included from /usr/src/linux/include/linux/interrupt.h:51,
                 from ksyms.c:21:
/usr/src/linux/include/asm/softirq.h:30: incompatible types in assignment
/usr/src/linux/include/asm/softirq.h: In function `disable_bh':
/usr/src/linux/include/asm/softirq.h:119: wrong type argument to increment
/usr/src/linux/include/asm/softirq.h: In function `enable_bh':
/usr/src/linux/include/asm/softirq.h:124: wrong type argument to decrement

Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
	-- The Scarecrow


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.1.132 doesn't compile?
@ 1998-12-24 14:22 Michael Wm. Gilbert
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Wm. Gilbert @ 1998-12-24 14:22 UTC (permalink / raw)
  To: axp-list

>2.1.132 doesn't compile?
>egcs-1.1.1, AlphaPC164LX
>error in ksyms.c

Fixed in 2.1.132ac2;
see: http://news.freshmeat.net/readmore?f=linux-2.1.132ac2

MICHAEL Wm. GILBERT  mgilbert@oit.umass.edu
Technology Development and Special Projects
Office of Information Technology (OIT)
University of Massachusetts at Amherst
Voice: 413-545-3124   Fax: 413-545-3203
A115 Lederle Graduate Research Center
UMASS Amherst, MA 01003 USA


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.1.132 doesn't compile?
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Petrakis @ 1998-12-24 14:49 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Body --]
[-- Type: text/plain, Size: 1292 bytes --]

It doesn't appear you're usign egcs. You have to edit the Makefile in 
two places. First where it says CC and farther down where it says 
CFLAGS. Replace "gcc" with egcs and be dure to commment out the SMP=1 
line at the top of the file. Hope that helps.

Alpha Powered,
Peter Petrakis

> egcs-1.1.1, AlphaPC164LX
> 
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes 
-O2
> -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8   -DEXPORT_SYMTAB 
-c
> ksyms.c
> /usr/src/linux/include/asm/softirq.h: In function `init_bh':
> In file included from /usr/src/linux/include/linux/interrupt.h:51,
>                  from ksyms.c:21:
> /usr/src/linux/include/asm/softirq.h:30: incompatible types in 
assignment
> /usr/src/linux/include/asm/softirq.h: In function `disable_bh':
> /usr/src/linux/include/asm/softirq.h:119: wrong type argument to 
increment
> /usr/src/linux/include/asm/softirq.h: In function `enable_bh':
> /usr/src/linux/include/asm/softirq.h:124: wrong type argument to 
decrement
> 
> Dr. Tom Holroyd
> I would dance and be merry,
> Life would be a ding-a-derry,
> If I only had a brain.
>     -- The Scarecrow
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.1.132 doesn't compile?
  1998-12-24 14:49 ` Peter Petrakis
@ 1998-12-25  1:42   ` Tom Holroyd
  1998-12-26  1:52   ` Peter Rye
  1 sibling, 0 replies; 5+ messages in thread
From: Tom Holroyd @ 1998-12-25  1:42 UTC (permalink / raw)
  To: axp-list

On Thu, 24 Dec 1998, Peter Petrakis wrote:

>It doesn't appear you're usign egcs.

% gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)

>You have to edit the Makefile in 
>two places. First where it says CC and farther down where it says 
>CFLAGS. Replace "gcc" with egcs and be dure to commment out the SMP=1 
>line at the top of the file. Hope that helps.

2.1.132 no longer requires the SMP hack.  It's a real config option now.

Dr. Tom Holroyd
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
	-- The Scarecrow


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: 2.1.132 doesn't compile?
  1998-12-24 14:49 ` Peter Petrakis
  1998-12-25  1:42   ` Tom Holroyd
@ 1998-12-26  1:52   ` Peter Rye
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Rye @ 1998-12-26  1:52 UTC (permalink / raw)
  To: axp-list

>>>>> "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;
 }


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-12-26 20:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
1998-12-24 14:22 Michael Wm. Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox