patch-2.3.16 linux/arch/ppc/kernel/prep_setup.c
Next file: linux/arch/ppc/kernel/prep_time.c
Previous file: linux/arch/ppc/kernel/prep_pci.c
Back to the patch index
Back to the overall index
- Lines: 120
- Date:
Tue Aug 31 11:36:43 1999
- Orig file:
v2.3.15/linux/arch/ppc/kernel/prep_setup.c
- Orig date:
Tue Jul 13 02:29:35 1999
diff -u --recursive --new-file v2.3.15/linux/arch/ppc/kernel/prep_setup.c linux/arch/ppc/kernel/prep_setup.c
@@ -35,6 +35,7 @@
#include <linux/openpic.h>
#include <linux/ide.h>
+#include <asm/init.h>
#include <asm/mmu.h>
#include <asm/processor.h>
#include <asm/residual.h>
@@ -211,8 +212,8 @@
return len;
}
-__initfunc(void
-prep_setup_arch(unsigned long * memory_start_p, unsigned long * memory_end_p))
+void __init
+prep_setup_arch(unsigned long * memory_start_p, unsigned long * memory_end_p)
{
extern char cmd_line[];
unsigned char reg;
@@ -365,7 +366,7 @@
* This allows for a faster boot as we do not need to calibrate the
* decrementer against another clock. This is important for embedded systems.
*/
-__initfunc(void prep_res_calibrate_decr(void))
+void __init prep_res_calibrate_decr(void)
{
int freq, divisor;
@@ -386,10 +387,10 @@
int calibrate_done = 0;
volatile int *done_ptr = &calibrate_done;
-__initfunc(void
+void __init
prep_calibrate_decr_handler(int irq,
void *dev,
- struct pt_regs *regs))
+ struct pt_regs *regs)
{
unsigned long freq, divisor;
static unsigned long t1 = 0, t2 = 0;
@@ -412,7 +413,7 @@
}
}
-__initfunc(void prep_calibrate_decr(void))
+void __init prep_calibrate_decr(void)
{
unsigned long flags;
@@ -437,7 +438,7 @@
/* We use the NVRAM RTC to time a second to calibrate the decrementer. */
-__initfunc(void mk48t59_calibrate_decr(void))
+void __init mk48t59_calibrate_decr(void)
{
unsigned long freq, divisor;
unsigned long t1, t2;
@@ -491,7 +492,7 @@
unsigned long i = 10000;
- _disable_interrupts();
+ __cli();
/* set exception prefix high - to the prom */
_nmask_and_or_msr(0, MSR_IP);
@@ -518,7 +519,7 @@
* This will ALWAYS work regardless of port 92
* functionality
*/
- _disable_interrupts();
+ __cli();
__asm__ __volatile__("\n\
mtspr 26, %1 /* SRR0 */
@@ -535,7 +536,7 @@
prep_halt(void)
{
unsigned long flags;
- _disable_interrupts();
+ __cli();
/* set exception prefix high - to the prom */
save_flags( flags );
restore_flags( flags|MSR_IP );
@@ -603,8 +604,8 @@
ppc_irq_dispatch_handler( regs, irq );
}
-__initfunc(void
-prep_init_IRQ(void))
+void __init
+prep_init_IRQ(void)
{
int i;
@@ -691,8 +692,8 @@
{
}
-__initfunc(void
-prep_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port, ide_ioreg_t ctrl_port, int *irq))
+void __init
+prep_ide_init_hwif_ports (hw_regs_t *hw, ide_ioreg_t data_port, ide_ioreg_t ctrl_port, int *irq)
{
ide_ioreg_t reg = data_port;
int i;
@@ -711,9 +712,9 @@
}
#endif
-__initfunc(void
+void __init
prep_init(unsigned long r3, unsigned long r4, unsigned long r5,
- unsigned long r6, unsigned long r7))
+ unsigned long r6, unsigned long r7)
{
/* make a copy of residual data */
if ( r3 )
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)