2003-02-19 08:43:02

by Jan-Benedict Glaw

[permalink] [raw]
Subject: alpha: Hangcheck timer doesn't compile

Hi!

The hangcheck timer seems cannot be compiled on Alphas:

gcc -Wp,-MD,drivers/char/.hangcheck-timer.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mno-fp-regs -ffixed-8 -msmall-data -mcpu=ev4 -Wa,-mev6 -fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=hangcheck_timer -DKBUILD_MODNAME=hangcheck_timer -c -o drivers/char/hangcheck-timer.o drivers/char/hangcheck-timer.c
drivers/char/hangcheck-timer.c: In function `hangcheck_init':
drivers/char/hangcheck-timer.c:112: `current_cpu_data' undeclared (first use in this function)
drivers/char/hangcheck-timer.c:112: (Each undeclared identifier is reported only once
drivers/char/hangcheck-timer.c:112: for each function it appears in.)
make[3]: *** [drivers/char/hangcheck-timer.o] Error 1
make[2]: *** [drivers/char] Error 2
make[1]: *** [drivers] Error 2
make: *** [modules] Error 2

This is because current_cpu_data doesn't (currently) exist on alpha.

MfG, JBG

--
Jan-Benedict Glaw [email protected] . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur
fuer einen Freien Staat voll Freier B?rger" | im Internet!
Shell Script APT-Proxy: http://lug-owl.de/~jbglaw/software/ap2/


Attachments:
(No filename) (1.25 kB)
(No filename) (189.00 B)
Download all attachments

2003-02-23 02:17:33

by Richard Henderson

[permalink] [raw]
Subject: Re: alpha: Hangcheck timer doesn't compile

On Wed, Feb 19, 2003 at 09:53:03AM +0100, Jan-Benedict Glaw wrote:
> This is because current_cpu_data doesn't (currently) exist on alpha.

Indeed. Hangcheck is incorrectly assuming x86 datastructures.

Anyway, the driver as written isn't going to be useful on alpha
since the 32-bit TSC rolls over every 8 seconds.


r~