patch-2.1.101 linux/arch/sparc/kernel/sun4d_irq.c
Next file: linux/arch/sparc/kernel/systbls.S
Previous file: linux/arch/sparc/kernel/head.S
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Fri May 8 00:11:28 1998
- Orig file:
v2.1.100/linux/arch/sparc/kernel/sun4d_irq.c
- Orig date:
Thu Apr 23 20:21:30 1998
diff -u --recursive --new-file v2.1.100/linux/arch/sparc/kernel/sun4d_irq.c linux/arch/sparc/kernel/sun4d_irq.c
@@ -1,4 +1,4 @@
-/* $Id: sun4d_irq.c,v 1.12 1998/03/19 15:36:36 jj Exp $
+/* $Id: sun4d_irq.c,v 1.13 1998/04/15 14:58:33 jj Exp $
* arch/sparc/kernel/sun4d_irq.c:
* SS1000/SC2000 interrupt handling.
*
@@ -495,7 +495,7 @@
#endif
}
-__initfunc(unsigned long sun4d_init_sbi_irq(unsigned long memory_start))
+__initfunc(void sun4d_init_sbi_irq(void))
{
struct linux_sbus *sbus;
unsigned mask;
@@ -503,9 +503,7 @@
nsbi = 0;
for_each_sbus(sbus)
nsbi++;
- memory_start = ((memory_start + 7) & ~7);
- sbus_actions = (struct sbus_action *)memory_start;
- memory_start += (nsbi * 8 * 4 * sizeof(struct sbus_action));
+ sbus_actions = (struct sbus_action *)kmalloc (nsbi * 8 * 4 * sizeof(struct sbus_action), GFP_ATOMIC);
memset (sbus_actions, 0, (nsbi * 8 * 4 * sizeof(struct sbus_action)));
for_each_sbus(sbus) {
#ifdef __SMP__
@@ -521,7 +519,6 @@
release_sbi(sbus->devid, mask);
}
}
- return memory_start;
}
__initfunc(void sun4d_init_IRQ(void))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov