[parisc-linux] Kernel compilation for J5600

Joel Soete jsoe0708@tiscali.be
Tue, 1 Jul 2003 16:03:27 +0200


Hi all,
 
> > drivers/ide/idedriver.o(.text.probe_hwif+0xfc): undefined reference to
> > `local_irq_set'

> This is 2.4.21-pa1?

Hmm not yet and my patch to Grant is definitely incomplete (Sorry, my bad).

In fact I am hesitate:

For many other paltform we can found:
(in system_irqsave.h)
[...]
/* For spinlocks etc */
#define local_irq_save(x)  __save_and_cli(x)
#define local_irq_set(x)   __save_and_sti(x)

#define local_irq_restore(x) __restore_flags(x)
#define local_irq_disable() __cli()
[...]

OTC for parisc:
[...]
#define local_irq_save(x) \
	__asm__ __volatile__("rsm %1,%0" : "=r" (x) :"i" (PSW_I) : "memory" )
#define local_irq_restore(x) \
	__asm__ __volatile__("mtsm %0" : : "r" (x) : "memory" )

[...]

So can we here simply add:
#define local_irq_set(x)   __save_and_sti(x)

Or do we actualy need a specific local_irq_set(x)?

Thanks in advance for advise,
    Joel


---------------------------------
Tiscali ADSL: 19,50 euros/mois...abonnez-vous sur www.tiscali.be