diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-07-03 13:49:45 -0400 |
| commit | 026477c1141b67e98e3bd8bdedb7d4b88a3ecd09 (patch) | |
| tree | 2624a44924c625c367f3cebf937853b9da2de282 /arch/mips/kernel | |
| parent | 9f2fa466383ce100b90fe52cb4489d7a26bf72a9 (diff) | |
| parent | 29454dde27d8e340bb1987bad9aa504af7081eba (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Diffstat (limited to 'arch/mips/kernel')
40 files changed, 53 insertions, 74 deletions
diff --git a/arch/mips/kernel/apm.c b/arch/mips/kernel/apm.c index 15f46b4471fd..7bdbcd811b57 100644 --- a/arch/mips/kernel/apm.c +++ b/arch/mips/kernel/apm.c | |||
| @@ -260,7 +260,7 @@ static unsigned int apm_poll(struct file *fp, poll_table * wait) | |||
| 260 | * has acknowledge does the actual suspend happen. | 260 | * has acknowledge does the actual suspend happen. |
| 261 | */ | 261 | */ |
| 262 | static int | 262 | static int |
| 263 | apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg) | 263 | apm_ioctl(struct inode * inode, struct file *filp, unsigned int cmd, unsigned long arg) |
| 264 | { | 264 | { |
| 265 | struct apm_user *as = filp->private_data; | 265 | struct apm_user *as = filp->private_data; |
| 266 | unsigned long flags; | 266 | unsigned long flags; |
diff --git a/arch/mips/kernel/asm-offsets.c b/arch/mips/kernel/asm-offsets.c index f1bb6a2dc5fc..ec28077d5ee2 100644 --- a/arch/mips/kernel/asm-offsets.c +++ b/arch/mips/kernel/asm-offsets.c | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com | 8 | * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com |
| 9 | * Copyright (C) 2000 MIPS Technologies, Inc. | 9 | * Copyright (C) 2000 MIPS Technologies, Inc. |
| 10 | */ | 10 | */ |
| 11 | #include <linux/config.h> | ||
| 12 | #include <linux/compat.h> | 11 | #include <linux/compat.h> |
| 13 | #include <linux/types.h> | 12 | #include <linux/types.h> |
| 14 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index d268827c62bd..c09337b947b9 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | * as published by the Free Software Foundation; either version | 6 | * as published by the Free Software Foundation; either version |
| 7 | * 2 of the License, or (at your option) any later version. | 7 | * 2 of the License, or (at your option) any later version. |
| 8 | */ | 8 | */ |
| 9 | #include <linux/config.h> | ||
| 10 | #include <linux/init.h> | 9 | #include <linux/init.h> |
| 11 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
| 12 | #include <linux/ptrace.h> | 11 | #include <linux/ptrace.h> |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 8c2c359a05f4..ba08f055feb2 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | * as published by the Free Software Foundation; either version | 11 | * as published by the Free Software Foundation; either version |
| 12 | * 2 of the License, or (at your option) any later version. | 12 | * 2 of the License, or (at your option) any later version. |
| 13 | */ | 13 | */ |
| 14 | #include <linux/config.h> | ||
| 15 | #include <linux/init.h> | 14 | #include <linux/init.h> |
| 16 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
| 17 | #include <linux/ptrace.h> | 16 | #include <linux/ptrace.h> |
| @@ -597,8 +596,6 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c) | |||
| 597 | break; | 596 | break; |
| 598 | case PRID_IMP_25KF: | 597 | case PRID_IMP_25KF: |
| 599 | c->cputype = CPU_25KF; | 598 | c->cputype = CPU_25KF; |
| 600 | /* Probe for L2 cache */ | ||
| 601 | c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT; | ||
| 602 | break; | 599 | break; |
| 603 | case PRID_IMP_34K: | 600 | case PRID_IMP_34K: |
| 604 | c->cputype = CPU_34K; | 601 | c->cputype = CPU_34K; |
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index a9c6de1b9542..ecfd637d702a 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | 10 | ||
| 12 | #include <asm/asm.h> | 11 | #include <asm/asm.h> |
| 13 | #include <asm/asmmacro.h> | 12 | #include <asm/asmmacro.h> |
| @@ -87,7 +86,7 @@ FEXPORT(restore_all) # restore full frame | |||
| 87 | ori v1, v0, TCSTATUS_IXMT | 86 | ori v1, v0, TCSTATUS_IXMT |
| 88 | mtc0 v1, CP0_TCSTATUS | 87 | mtc0 v1, CP0_TCSTATUS |
| 89 | andi v0, TCSTATUS_IXMT | 88 | andi v0, TCSTATUS_IXMT |
| 90 | ehb | 89 | _ehb |
| 91 | mfc0 t0, CP0_TCCONTEXT | 90 | mfc0 t0, CP0_TCCONTEXT |
| 92 | DMT 9 # dmt t1 | 91 | DMT 9 # dmt t1 |
| 93 | jal mips_ihb | 92 | jal mips_ihb |
| @@ -95,7 +94,7 @@ FEXPORT(restore_all) # restore full frame | |||
| 95 | andi t3, t0, 0xff00 | 94 | andi t3, t0, 0xff00 |
| 96 | or t2, t2, t3 | 95 | or t2, t2, t3 |
| 97 | mtc0 t2, CP0_STATUS | 96 | mtc0 t2, CP0_STATUS |
| 98 | ehb | 97 | _ehb |
| 99 | andi t1, t1, VPECONTROL_TE | 98 | andi t1, t1, VPECONTROL_TE |
| 100 | beqz t1, 1f | 99 | beqz t1, 1f |
| 101 | EMT | 100 | EMT |
| @@ -105,7 +104,7 @@ FEXPORT(restore_all) # restore full frame | |||
| 105 | xori v1, v1, TCSTATUS_IXMT | 104 | xori v1, v1, TCSTATUS_IXMT |
| 106 | or v1, v0, v1 | 105 | or v1, v0, v1 |
| 107 | mtc0 v1, CP0_TCSTATUS | 106 | mtc0 v1, CP0_TCSTATUS |
| 108 | ehb | 107 | _ehb |
| 109 | xor t0, t0, t3 | 108 | xor t0, t0, t3 |
| 110 | mtc0 t0, CP0_TCCONTEXT | 109 | mtc0 t0, CP0_TCCONTEXT |
| 111 | #endif /* CONFIG_MIPS_MT_SMTC */ | 110 | #endif /* CONFIG_MIPS_MT_SMTC */ |
diff --git a/arch/mips/kernel/gdb-low.S b/arch/mips/kernel/gdb-low.S index 5fd7a8af0c62..666bc9014cbd 100644 --- a/arch/mips/kernel/gdb-low.S +++ b/arch/mips/kernel/gdb-low.S | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | * | 3 | * |
| 4 | * Copyright (C) 1995 Andreas Busse | 4 | * Copyright (C) 1995 Andreas Busse |
| 5 | */ | 5 | */ |
| 6 | #include <linux/config.h> | ||
| 7 | #include <linux/sys.h> | 6 | #include <linux/sys.h> |
| 8 | 7 | ||
| 9 | #include <asm/asm.h> | 8 | #include <asm/asm.h> |
| @@ -291,7 +290,7 @@ | |||
| 291 | ori t1, t2, TCSTATUS_IXMT | 290 | ori t1, t2, TCSTATUS_IXMT |
| 292 | mtc0 t1, CP0_TCSTATUS | 291 | mtc0 t1, CP0_TCSTATUS |
| 293 | andi t2, t2, TCSTATUS_IXMT | 292 | andi t2, t2, TCSTATUS_IXMT |
| 294 | ehb | 293 | _ehb |
| 295 | DMT 9 # dmt t1 | 294 | DMT 9 # dmt t1 |
| 296 | jal mips_ihb | 295 | jal mips_ihb |
| 297 | nop | 296 | nop |
| @@ -310,7 +309,7 @@ | |||
| 310 | xori t1, t1, TCSTATUS_IXMT | 309 | xori t1, t1, TCSTATUS_IXMT |
| 311 | or t1, t1, t2 | 310 | or t1, t1, t2 |
| 312 | mtc0 t1, CP0_TCSTATUS | 311 | mtc0 t1, CP0_TCSTATUS |
| 313 | ehb | 312 | _ehb |
| 314 | #endif /* CONFIG_MIPS_MT_SMTC */ | 313 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 315 | LONG_L v0, GDB_FR_STATUS(sp) | 314 | LONG_L v0, GDB_FR_STATUS(sp) |
| 316 | LONG_L v1, GDB_FR_EPC(sp) | 315 | LONG_L v1, GDB_FR_EPC(sp) |
diff --git a/arch/mips/kernel/gdb-stub.c b/arch/mips/kernel/gdb-stub.c index 6ecbdc1fefd1..719d26968cb2 100644 --- a/arch/mips/kernel/gdb-stub.c +++ b/arch/mips/kernel/gdb-stub.c | |||
| @@ -120,7 +120,6 @@ | |||
| 120 | * breakpoints, single stepping, | 120 | * breakpoints, single stepping, |
| 121 | * printing variables, etc. | 121 | * printing variables, etc. |
| 122 | */ | 122 | */ |
| 123 | #include <linux/config.h> | ||
| 124 | #include <linux/string.h> | 123 | #include <linux/string.h> |
| 125 | #include <linux/kernel.h> | 124 | #include <linux/kernel.h> |
| 126 | #include <linux/signal.h> | 125 | #include <linux/signal.h> |
diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S index ff7af369f286..5254a2222d2b 100644 --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 9 | * Copyright (C) 2002 Maciej W. Rozycki | 9 | * Copyright (C) 2002 Maciej W. Rozycki |
| 10 | */ | 10 | */ |
| 11 | #include <linux/config.h> | ||
| 12 | #include <linux/init.h> | 11 | #include <linux/init.h> |
| 13 | 12 | ||
| 14 | #include <asm/asm.h> | 13 | #include <asm/asm.h> |
| @@ -214,7 +213,7 @@ NESTED(except_vec_vi_handler, 0, sp) | |||
| 214 | mtc0 t0, CP0_TCCONTEXT | 213 | mtc0 t0, CP0_TCCONTEXT |
| 215 | xor t1, t1, t0 | 214 | xor t1, t1, t0 |
| 216 | mtc0 t1, CP0_STATUS | 215 | mtc0 t1, CP0_STATUS |
| 217 | ehb | 216 | _ehb |
| 218 | #endif /* CONFIG_MIPS_MT_SMTC */ | 217 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 219 | CLI | 218 | CLI |
| 220 | move a0, sp | 219 | move a0, sp |
diff --git a/arch/mips/kernel/head.S b/arch/mips/kernel/head.S index bdf6f6eff721..476c1eb33c94 100644 --- a/arch/mips/kernel/head.S +++ b/arch/mips/kernel/head.S | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com | 13 | * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com |
| 14 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. | 14 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. |
| 15 | */ | 15 | */ |
| 16 | #include <linux/config.h> | ||
| 17 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| 18 | #include <linux/threads.h> | 17 | #include <linux/threads.h> |
| 19 | 18 | ||
| @@ -96,7 +95,7 @@ | |||
| 96 | /* Clear TKSU, leave IXMT */ | 95 | /* Clear TKSU, leave IXMT */ |
| 97 | xori t0, 0x00001800 | 96 | xori t0, 0x00001800 |
| 98 | mtc0 t0, CP0_TCSTATUS | 97 | mtc0 t0, CP0_TCSTATUS |
| 99 | ehb | 98 | _ehb |
| 100 | /* We need to leave the global IE bit set, but clear EXL...*/ | 99 | /* We need to leave the global IE bit set, but clear EXL...*/ |
| 101 | mfc0 t0, CP0_STATUS | 100 | mfc0 t0, CP0_STATUS |
| 102 | or t0, ST0_CU0 | ST0_EXL | ST0_ERL | \set | \clr | 101 | or t0, ST0_CU0 | ST0_EXL | ST0_ERL | \set | \clr |
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 0cb8ed5662f3..91ffb1233cad 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
| @@ -120,7 +120,7 @@ int i8259A_irq_pending(unsigned int irq) | |||
| 120 | void make_8259A_irq(unsigned int irq) | 120 | void make_8259A_irq(unsigned int irq) |
| 121 | { | 121 | { |
| 122 | disable_irq_nosync(irq); | 122 | disable_irq_nosync(irq); |
| 123 | irq_desc[irq].handler = &i8259A_irq_type; | 123 | irq_desc[irq].chip = &i8259A_irq_type; |
| 124 | enable_irq(irq); | 124 | enable_irq(irq); |
| 125 | } | 125 | } |
| 126 | 126 | ||
| @@ -327,7 +327,7 @@ void __init init_i8259_irqs (void) | |||
| 327 | irq_desc[i].status = IRQ_DISABLED; | 327 | irq_desc[i].status = IRQ_DISABLED; |
| 328 | irq_desc[i].action = NULL; | 328 | irq_desc[i].action = NULL; |
| 329 | irq_desc[i].depth = 1; | 329 | irq_desc[i].depth = 1; |
| 330 | irq_desc[i].handler = &i8259A_irq_type; | 330 | irq_desc[i].chip = &i8259A_irq_type; |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | setup_irq(2, &irq2); | 333 | setup_irq(2, &irq2); |
diff --git a/arch/mips/kernel/irq-msc01.c b/arch/mips/kernel/irq-msc01.c index 97ebdc754b9e..f8cd1ac64d88 100644 --- a/arch/mips/kernel/irq-msc01.c +++ b/arch/mips/kernel/irq-msc01.c | |||
| @@ -174,14 +174,14 @@ void __init init_msc_irqs(unsigned int base, msc_irqmap_t *imp, int nirq) | |||
| 174 | 174 | ||
| 175 | switch (imp->im_type) { | 175 | switch (imp->im_type) { |
| 176 | case MSC01_IRQ_EDGE: | 176 | case MSC01_IRQ_EDGE: |
| 177 | irq_desc[base+n].handler = &msc_edgeirq_type; | 177 | irq_desc[base+n].chip = &msc_edgeirq_type; |
| 178 | if (cpu_has_veic) | 178 | if (cpu_has_veic) |
| 179 | MSCIC_WRITE(MSC01_IC_SUP+n*8, MSC01_IC_SUP_EDGE_BIT); | 179 | MSCIC_WRITE(MSC01_IC_SUP+n*8, MSC01_IC_SUP_EDGE_BIT); |
| 180 | else | 180 | else |
| 181 | MSCIC_WRITE(MSC01_IC_SUP+n*8, MSC01_IC_SUP_EDGE_BIT | imp->im_lvl); | 181 | MSCIC_WRITE(MSC01_IC_SUP+n*8, MSC01_IC_SUP_EDGE_BIT | imp->im_lvl); |
| 182 | break; | 182 | break; |
| 183 | case MSC01_IRQ_LEVEL: | 183 | case MSC01_IRQ_LEVEL: |
| 184 | irq_desc[base+n].handler = &msc_levelirq_type; | 184 | irq_desc[base+n].chip = &msc_levelirq_type; |
| 185 | if (cpu_has_veic) | 185 | if (cpu_has_veic) |
| 186 | MSCIC_WRITE(MSC01_IC_SUP+n*8, 0); | 186 | MSCIC_WRITE(MSC01_IC_SUP+n*8, 0); |
| 187 | else | 187 | else |
diff --git a/arch/mips/kernel/irq-mv6434x.c b/arch/mips/kernel/irq-mv6434x.c index 0613f1f36b1b..f9c763a65547 100644 --- a/arch/mips/kernel/irq-mv6434x.c +++ b/arch/mips/kernel/irq-mv6434x.c | |||
| @@ -155,7 +155,7 @@ void __init mv64340_irq_init(unsigned int base) | |||
| 155 | irq_desc[i].status = IRQ_DISABLED; | 155 | irq_desc[i].status = IRQ_DISABLED; |
| 156 | irq_desc[i].action = 0; | 156 | irq_desc[i].action = 0; |
| 157 | irq_desc[i].depth = 2; | 157 | irq_desc[i].depth = 2; |
| 158 | irq_desc[i].handler = &mv64340_irq_type; | 158 | irq_desc[i].chip = &mv64340_irq_type; |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | irq_base = base; | 161 | irq_base = base; |
diff --git a/arch/mips/kernel/irq-rm7000.c b/arch/mips/kernel/irq-rm7000.c index 0b130c5ac5d9..121da385a94d 100644 --- a/arch/mips/kernel/irq-rm7000.c +++ b/arch/mips/kernel/irq-rm7000.c | |||
| @@ -91,7 +91,7 @@ void __init rm7k_cpu_irq_init(int base) | |||
| 91 | irq_desc[i].status = IRQ_DISABLED; | 91 | irq_desc[i].status = IRQ_DISABLED; |
| 92 | irq_desc[i].action = NULL; | 92 | irq_desc[i].action = NULL; |
| 93 | irq_desc[i].depth = 1; | 93 | irq_desc[i].depth = 1; |
| 94 | irq_desc[i].handler = &rm7k_irq_controller; | 94 | irq_desc[i].chip = &rm7k_irq_controller; |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | irq_base = base; | 97 | irq_base = base; |
diff --git a/arch/mips/kernel/irq-rm9000.c b/arch/mips/kernel/irq-rm9000.c index 9b5f20c32acb..25109c103e44 100644 --- a/arch/mips/kernel/irq-rm9000.c +++ b/arch/mips/kernel/irq-rm9000.c | |||
| @@ -139,11 +139,11 @@ void __init rm9k_cpu_irq_init(int base) | |||
| 139 | irq_desc[i].status = IRQ_DISABLED; | 139 | irq_desc[i].status = IRQ_DISABLED; |
| 140 | irq_desc[i].action = NULL; | 140 | irq_desc[i].action = NULL; |
| 141 | irq_desc[i].depth = 1; | 141 | irq_desc[i].depth = 1; |
| 142 | irq_desc[i].handler = &rm9k_irq_controller; | 142 | irq_desc[i].chip = &rm9k_irq_controller; |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | rm9000_perfcount_irq = base + 1; | 145 | rm9000_perfcount_irq = base + 1; |
| 146 | irq_desc[rm9000_perfcount_irq].handler = &rm9k_perfcounter_irq; | 146 | irq_desc[rm9000_perfcount_irq].chip = &rm9k_perfcounter_irq; |
| 147 | 147 | ||
| 148 | irq_base = base; | 148 | irq_base = base; |
| 149 | } | 149 | } |
diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c index 3dce742e716f..cde5e5afa179 100644 --- a/arch/mips/kernel/irq.c +++ b/arch/mips/kernel/irq.c | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Copyright (C) 1992 Linus Torvalds | 8 | * Copyright (C) 1992 Linus Torvalds |
| 9 | * Copyright (C) 1994 - 2000 Ralf Baechle | 9 | * Copyright (C) 1994 - 2000 Ralf Baechle |
| 10 | */ | 10 | */ |
| 11 | #include <linux/config.h> | ||
| 12 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
| 13 | #include <linux/delay.h> | 12 | #include <linux/delay.h> |
| 14 | #include <linux/init.h> | 13 | #include <linux/init.h> |
| @@ -95,7 +94,7 @@ int show_interrupts(struct seq_file *p, void *v) | |||
| 95 | for_each_online_cpu(j) | 94 | for_each_online_cpu(j) |
| 96 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]); | 95 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]); |
| 97 | #endif | 96 | #endif |
| 98 | seq_printf(p, " %14s", irq_desc[i].handler->typename); | 97 | seq_printf(p, " %14s", irq_desc[i].chip->typename); |
| 99 | seq_printf(p, " %s", action->name); | 98 | seq_printf(p, " %s", action->name); |
| 100 | 99 | ||
| 101 | for (action=action->next; action; action = action->next) | 100 | for (action=action->next; action; action = action->next) |
| @@ -137,7 +136,7 @@ void __init init_IRQ(void) | |||
| 137 | irq_desc[i].status = IRQ_DISABLED; | 136 | irq_desc[i].status = IRQ_DISABLED; |
| 138 | irq_desc[i].action = NULL; | 137 | irq_desc[i].action = NULL; |
| 139 | irq_desc[i].depth = 1; | 138 | irq_desc[i].depth = 1; |
| 140 | irq_desc[i].handler = &no_irq_type; | 139 | irq_desc[i].chip = &no_irq_type; |
| 141 | spin_lock_init(&irq_desc[i].lock); | 140 | spin_lock_init(&irq_desc[i].lock); |
| 142 | #ifdef CONFIG_MIPS_MT_SMTC | 141 | #ifdef CONFIG_MIPS_MT_SMTC |
| 143 | irq_hwmask[i] = 0; | 142 | irq_hwmask[i] = 0; |
diff --git a/arch/mips/kernel/irq_cpu.c b/arch/mips/kernel/irq_cpu.c index 5db67e31ec1a..0e455a8ad860 100644 --- a/arch/mips/kernel/irq_cpu.c +++ b/arch/mips/kernel/irq_cpu.c | |||
| @@ -167,14 +167,14 @@ void __init mips_cpu_irq_init(int irq_base) | |||
| 167 | irq_desc[i].status = IRQ_DISABLED; | 167 | irq_desc[i].status = IRQ_DISABLED; |
| 168 | irq_desc[i].action = NULL; | 168 | irq_desc[i].action = NULL; |
| 169 | irq_desc[i].depth = 1; | 169 | irq_desc[i].depth = 1; |
| 170 | irq_desc[i].handler = &mips_mt_cpu_irq_controller; | 170 | irq_desc[i].chip = &mips_mt_cpu_irq_controller; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | for (i = irq_base + 2; i < irq_base + 8; i++) { | 173 | for (i = irq_base + 2; i < irq_base + 8; i++) { |
| 174 | irq_desc[i].status = IRQ_DISABLED; | 174 | irq_desc[i].status = IRQ_DISABLED; |
| 175 | irq_desc[i].action = NULL; | 175 | irq_desc[i].action = NULL; |
| 176 | irq_desc[i].depth = 1; | 176 | irq_desc[i].depth = 1; |
| 177 | irq_desc[i].handler = &mips_cpu_irq_controller; | 177 | irq_desc[i].chip = &mips_cpu_irq_controller; |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | mips_cpu_irq_base = irq_base; | 180 | mips_cpu_irq_base = irq_base; |
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index a7d2bb3cf835..450ac592da57 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | * Written by Ulf Carlsson (ulfc@engr.sgi.com) | 5 | * Written by Ulf Carlsson (ulfc@engr.sgi.com) |
| 6 | * sys32_execve from ia64/ia32 code, Feb 2000, Kanoj Sarcar (kanoj@sgi.com) | 6 | * sys32_execve from ia64/ia32 code, Feb 2000, Kanoj Sarcar (kanoj@sgi.com) |
| 7 | */ | 7 | */ |
| 8 | #include <linux/config.h> | ||
| 9 | #include <linux/compiler.h> | 8 | #include <linux/compiler.h> |
| 10 | #include <linux/mm.h> | 9 | #include <linux/mm.h> |
| 11 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
diff --git a/arch/mips/kernel/mips_ksyms.c b/arch/mips/kernel/mips_ksyms.c index 0a71a4c33716..f44a01357ada 100644 --- a/arch/mips/kernel/mips_ksyms.c +++ b/arch/mips/kernel/mips_ksyms.c | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05 by Ralf Baechle | 8 | * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05 by Ralf Baechle |
| 9 | * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc. | 9 | * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc. |
| 10 | */ | 10 | */ |
| 11 | #include <linux/config.h> | ||
| 12 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
| 13 | #include <linux/module.h> | 12 | #include <linux/module.h> |
| 14 | #include <asm/checksum.h> | 13 | #include <asm/checksum.h> |
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 9def554f335b..d8beef107902 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | * Copyright (C) 2001, 2004 MIPS Technologies, Inc. | 5 | * Copyright (C) 2001, 2004 MIPS Technologies, Inc. |
| 6 | * Copyright (C) 2004 Maciej W. Rozycki | 6 | * Copyright (C) 2004 Maciej W. Rozycki |
| 7 | */ | 7 | */ |
| 8 | #include <linux/config.h> | ||
| 9 | #include <linux/delay.h> | 8 | #include <linux/delay.h> |
| 10 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
| 11 | #include <linux/sched.h> | 10 | #include <linux/sched.h> |
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c index 199a06e873c6..7ab67f786bfe 100644 --- a/arch/mips/kernel/process.c +++ b/arch/mips/kernel/process.c | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 9 | * Copyright (C) 2004 Thiemo Seufer | 9 | * Copyright (C) 2004 Thiemo Seufer |
| 10 | */ | 10 | */ |
| 11 | #include <linux/config.h> | ||
| 12 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
| 13 | #include <linux/module.h> | 12 | #include <linux/module.h> |
| 14 | #include <linux/sched.h> | 13 | #include <linux/sched.h> |
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index 1d44025188d8..362d1728e531 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | * At this time Linux/MIPS64 only supports syscall tracing, even for 32-bit | 14 | * At this time Linux/MIPS64 only supports syscall tracing, even for 32-bit |
| 15 | * binaries. | 15 | * binaries. |
| 16 | */ | 16 | */ |
| 17 | #include <linux/config.h> | ||
| 18 | #include <linux/compiler.h> | 17 | #include <linux/compiler.h> |
| 19 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| 20 | #include <linux/sched.h> | 19 | #include <linux/sched.h> |
diff --git a/arch/mips/kernel/r2300_switch.S b/arch/mips/kernel/r2300_switch.S index 0d9c4a32a9c2..656bde2e11b1 100644 --- a/arch/mips/kernel/r2300_switch.S +++ b/arch/mips/kernel/r2300_switch.S | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | * Further modifications to make this work: | 10 | * Further modifications to make this work: |
| 11 | * Copyright (c) 1998-2000 Harald Koerfgen | 11 | * Copyright (c) 1998-2000 Harald Koerfgen |
| 12 | */ | 12 | */ |
| 13 | #include <linux/config.h> | ||
| 14 | #include <asm/asm.h> | 13 | #include <asm/asm.h> |
| 15 | #include <asm/cachectl.h> | 14 | #include <asm/cachectl.h> |
| 16 | #include <asm/fpregdef.h> | 15 | #include <asm/fpregdef.h> |
diff --git a/arch/mips/kernel/r4k_fpu.S b/arch/mips/kernel/r4k_fpu.S index 283a98508fc8..880fa6e841ee 100644 --- a/arch/mips/kernel/r4k_fpu.S +++ b/arch/mips/kernel/r4k_fpu.S | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | * Copyright (C) 2000 MIPS Technologies, Inc. | 12 | * Copyright (C) 2000 MIPS Technologies, Inc. |
| 13 | * Copyright (C) 1999, 2001 Silicon Graphics, Inc. | 13 | * Copyright (C) 1999, 2001 Silicon Graphics, Inc. |
| 14 | */ | 14 | */ |
| 15 | #include <linux/config.h> | ||
| 16 | #include <asm/asm.h> | 15 | #include <asm/asm.h> |
| 17 | #include <asm/errno.h> | 16 | #include <asm/errno.h> |
| 18 | #include <asm/fpregdef.h> | 17 | #include <asm/fpregdef.h> |
diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S index db94e556fc97..d5c8b82fed72 100644 --- a/arch/mips/kernel/r4k_switch.S +++ b/arch/mips/kernel/r4k_switch.S | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | * Copyright (C) 2000 MIPS Technologies, Inc. | 10 | * Copyright (C) 2000 MIPS Technologies, Inc. |
| 11 | * written by Carsten Langgaard, carstenl@mips.com | 11 | * written by Carsten Langgaard, carstenl@mips.com |
| 12 | */ | 12 | */ |
| 13 | #include <linux/config.h> | ||
| 14 | #include <asm/asm.h> | 13 | #include <asm/asm.h> |
| 15 | #include <asm/cachectl.h> | 14 | #include <asm/cachectl.h> |
| 16 | #include <asm/fpregdef.h> | 15 | #include <asm/fpregdef.h> |
| @@ -94,7 +93,7 @@ | |||
| 94 | ori t1, t2, TCSTATUS_IXMT | 93 | ori t1, t2, TCSTATUS_IXMT |
| 95 | mtc0 t1, CP0_TCSTATUS | 94 | mtc0 t1, CP0_TCSTATUS |
| 96 | andi t2, t2, TCSTATUS_IXMT | 95 | andi t2, t2, TCSTATUS_IXMT |
| 97 | ehb | 96 | _ehb |
| 98 | DMT 8 # dmt t0 | 97 | DMT 8 # dmt t0 |
| 99 | move t1,ra | 98 | move t1,ra |
| 100 | jal mips_ihb | 99 | jal mips_ihb |
| @@ -109,7 +108,7 @@ | |||
| 109 | or a2, t1 | 108 | or a2, t1 |
| 110 | mtc0 a2, CP0_STATUS | 109 | mtc0 a2, CP0_STATUS |
| 111 | #ifdef CONFIG_MIPS_MT_SMTC | 110 | #ifdef CONFIG_MIPS_MT_SMTC |
| 112 | ehb | 111 | _ehb |
| 113 | andi t0, t0, VPECONTROL_TE | 112 | andi t0, t0, VPECONTROL_TE |
| 114 | beqz t0, 1f | 113 | beqz t0, 1f |
| 115 | emt | 114 | emt |
| @@ -118,7 +117,7 @@ | |||
| 118 | xori t1, t1, TCSTATUS_IXMT | 117 | xori t1, t1, TCSTATUS_IXMT |
| 119 | or t1, t1, t2 | 118 | or t1, t1, t2 |
| 120 | mtc0 t1, CP0_TCSTATUS | 119 | mtc0 t1, CP0_TCSTATUS |
| 121 | ehb | 120 | _ehb |
| 122 | #endif /* CONFIG_MIPS_MT_SMTC */ | 121 | #endif /* CONFIG_MIPS_MT_SMTC */ |
| 123 | move v0, a0 | 122 | move v0, a0 |
| 124 | jr ra | 123 | jr ra |
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index caf777f83289..cdab1b2cd134 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
| @@ -487,7 +487,7 @@ static struct file_operations rtlx_fops = { | |||
| 487 | 487 | ||
| 488 | static struct irqaction rtlx_irq = { | 488 | static struct irqaction rtlx_irq = { |
| 489 | .handler = rtlx_interrupt, | 489 | .handler = rtlx_interrupt, |
| 490 | .flags = SA_INTERRUPT, | 490 | .flags = IRQF_DISABLED, |
| 491 | .name = "RTLX", | 491 | .name = "RTLX", |
| 492 | }; | 492 | }; |
| 493 | 493 | ||
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 2d2fdf77e308..8f8101f878ca 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 2001 MIPS Technologies, Inc. | 7 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 8 | * Copyright (C) 2004 Thiemo Seufer | 8 | * Copyright (C) 2004 Thiemo Seufer |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
| 12 | #include <asm/asm.h> | 11 | #include <asm/asm.h> |
| 13 | #include <asm/asmmacro.h> | 12 | #include <asm/asmmacro.h> |
| @@ -647,6 +646,7 @@ einval: li v0, -EINVAL | |||
| 647 | sys sys_unshare 1 | 646 | sys sys_unshare 1 |
| 648 | sys sys_splice 4 | 647 | sys sys_splice 4 |
| 649 | sys sys_sync_file_range 7 /* 4305 */ | 648 | sys sys_sync_file_range 7 /* 4305 */ |
| 649 | sys sys_tee 4 | ||
| 650 | .endm | 650 | .endm |
| 651 | 651 | ||
| 652 | /* We pre-compute the number of _instruction_ bytes needed to | 652 | /* We pre-compute the number of _instruction_ bytes needed to |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 9ba750887377..b4a34a625a2e 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
| 12 | #include <asm/asm.h> | 11 | #include <asm/asm.h> |
| 13 | #include <asm/asmmacro.h> | 12 | #include <asm/asmmacro.h> |
| @@ -462,3 +461,4 @@ sys_call_table: | |||
| 462 | PTR sys_unshare | 461 | PTR sys_unshare |
| 463 | PTR sys_splice | 462 | PTR sys_splice |
| 464 | PTR sys_sync_file_range | 463 | PTR sys_sync_file_range |
| 464 | PTR sys_tee /* 5265 */ | ||
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 942aca26f9c4..df8c4f8ccd61 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/errno.h> | 10 | #include <linux/errno.h> |
| 12 | #include <asm/asm.h> | 11 | #include <asm/asm.h> |
| 13 | #include <asm/asmmacro.h> | 12 | #include <asm/asmmacro.h> |
| @@ -388,3 +387,4 @@ EXPORT(sysn32_call_table) | |||
| 388 | PTR sys_unshare | 387 | PTR sys_unshare |
| 389 | PTR sys_splice | 388 | PTR sys_splice |
| 390 | PTR sys_sync_file_range | 389 | PTR sys_sync_file_range |
| 390 | PTR sys_tee | ||
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 8efb23a84131..f04fe4f085c3 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | * to ABI64 calling convention. 64-bit syscalls are also processed | 13 | * to ABI64 calling convention. 64-bit syscalls are also processed |
| 14 | * here for now. | 14 | * here for now. |
| 15 | */ | 15 | */ |
| 16 | #include <linux/config.h> | ||
| 17 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
| 18 | #include <asm/asm.h> | 17 | #include <asm/asm.h> |
| 19 | #include <asm/asmmacro.h> | 18 | #include <asm/asmmacro.h> |
| @@ -510,4 +509,5 @@ sys_call_table: | |||
| 510 | PTR sys_unshare | 509 | PTR sys_unshare |
| 511 | PTR sys_splice | 510 | PTR sys_splice |
| 512 | PTR sys32_sync_file_range /* 4305 */ | 511 | PTR sys32_sync_file_range /* 4305 */ |
| 512 | PTR sys_tee | ||
| 513 | .size sys_call_table,.-sys_call_table | 513 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index bfcec8d9bfe4..5edd8d4bb665 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | * Copyright (C) 1999 Silicon Graphics, Inc. | 10 | * Copyright (C) 1999 Silicon Graphics, Inc. |
| 11 | * Copyright (C) 2000 2001, 2002 Maciej W. Rozycki | 11 | * Copyright (C) 2000 2001, 2002 Maciej W. Rozycki |
| 12 | */ | 12 | */ |
| 13 | #include <linux/config.h> | ||
| 14 | #include <linux/errno.h> | 13 | #include <linux/errno.h> |
| 15 | #include <linux/init.h> | 14 | #include <linux/init.h> |
| 16 | #include <linux/ioport.h> | 15 | #include <linux/ioport.h> |
| @@ -488,6 +487,9 @@ static inline void resource_init(void) | |||
| 488 | { | 487 | { |
| 489 | int i; | 488 | int i; |
| 490 | 489 | ||
| 490 | if (UNCAC_BASE != IO_BASE) | ||
| 491 | return; | ||
| 492 | |||
| 491 | code_resource.start = virt_to_phys(&_text); | 493 | code_resource.start = virt_to_phys(&_text); |
| 492 | code_resource.end = virt_to_phys(&_etext) - 1; | 494 | code_resource.end = virt_to_phys(&_etext) - 1; |
| 493 | data_resource.start = virt_to_phys(&_etext); | 495 | data_resource.start = virt_to_phys(&_etext); |
diff --git a/arch/mips/kernel/signal-common.h b/arch/mips/kernel/signal-common.h index ce6cb915c0a7..b1f09d54ebe6 100644 --- a/arch/mips/kernel/signal-common.h +++ b/arch/mips/kernel/signal-common.h | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #include <linux/config.h> | ||
| 12 | 11 | ||
| 13 | static inline int | 12 | static inline int |
| 14 | setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) | 13 | setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) |
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index 402efd27c79e..6b4d9be31615 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 1994 - 2000 Ralf Baechle | 7 | * Copyright (C) 1994 - 2000 Ralf Baechle |
| 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 8 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/cache.h> | 10 | #include <linux/cache.h> |
| 12 | #include <linux/sched.h> | 11 | #include <linux/sched.h> |
| 13 | #include <linux/mm.h> | 12 | #include <linux/mm.h> |
diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c index 57770902b9ae..93429a4d3012 100644 --- a/arch/mips/kernel/smp-mt.c +++ b/arch/mips/kernel/smp-mt.c | |||
| @@ -130,13 +130,13 @@ irqreturn_t ipi_call_interrupt(int irq, void *dev_id, struct pt_regs *regs) | |||
| 130 | 130 | ||
| 131 | static struct irqaction irq_resched = { | 131 | static struct irqaction irq_resched = { |
| 132 | .handler = ipi_resched_interrupt, | 132 | .handler = ipi_resched_interrupt, |
| 133 | .flags = SA_INTERRUPT, | 133 | .flags = IRQF_DISABLED, |
| 134 | .name = "IPI_resched" | 134 | .name = "IPI_resched" |
| 135 | }; | 135 | }; |
| 136 | 136 | ||
| 137 | static struct irqaction irq_call = { | 137 | static struct irqaction irq_call = { |
| 138 | .handler = ipi_call_interrupt, | 138 | .handler = ipi_call_interrupt, |
| 139 | .flags = SA_INTERRUPT, | 139 | .flags = IRQF_DISABLED, |
| 140 | .name = "IPI_call" | 140 | .name = "IPI_call" |
| 141 | }; | 141 | }; |
| 142 | 142 | ||
diff --git a/arch/mips/kernel/smtc-asm.S b/arch/mips/kernel/smtc-asm.S index c9d65196d917..72c6d98f8854 100644 --- a/arch/mips/kernel/smtc-asm.S +++ b/arch/mips/kernel/smtc-asm.S | |||
| @@ -52,12 +52,12 @@ FEXPORT(__smtc_ipi_vector) | |||
| 52 | .set noat | 52 | .set noat |
| 53 | /* Disable thread scheduling to make Status update atomic */ | 53 | /* Disable thread scheduling to make Status update atomic */ |
| 54 | DMT 27 # dmt k1 | 54 | DMT 27 # dmt k1 |
| 55 | ehb | 55 | _ehb |
| 56 | /* Set EXL */ | 56 | /* Set EXL */ |
| 57 | mfc0 k0,CP0_STATUS | 57 | mfc0 k0,CP0_STATUS |
| 58 | ori k0,k0,ST0_EXL | 58 | ori k0,k0,ST0_EXL |
| 59 | mtc0 k0,CP0_STATUS | 59 | mtc0 k0,CP0_STATUS |
| 60 | ehb | 60 | _ehb |
| 61 | /* Thread scheduling now inhibited by EXL. Restore TE state. */ | 61 | /* Thread scheduling now inhibited by EXL. Restore TE state. */ |
| 62 | andi k1,k1,VPECONTROL_TE | 62 | andi k1,k1,VPECONTROL_TE |
| 63 | beqz k1,1f | 63 | beqz k1,1f |
| @@ -82,7 +82,7 @@ FEXPORT(__smtc_ipi_vector) | |||
| 82 | li k1,ST0_CU0 | 82 | li k1,ST0_CU0 |
| 83 | or k1,k1,k0 | 83 | or k1,k1,k0 |
| 84 | mtc0 k1,CP0_STATUS | 84 | mtc0 k1,CP0_STATUS |
| 85 | ehb | 85 | _ehb |
| 86 | get_saved_sp | 86 | get_saved_sp |
| 87 | /* Interrupting TC will have pre-set values in slots in the new frame */ | 87 | /* Interrupting TC will have pre-set values in slots in the new frame */ |
| 88 | 2: subu k1,k1,PT_SIZE | 88 | 2: subu k1,k1,PT_SIZE |
| @@ -90,7 +90,7 @@ FEXPORT(__smtc_ipi_vector) | |||
| 90 | lw k0,PT_TCSTATUS(k1) | 90 | lw k0,PT_TCSTATUS(k1) |
| 91 | /* Write it to TCStatus to restore CU/KSU/IXMT state */ | 91 | /* Write it to TCStatus to restore CU/KSU/IXMT state */ |
| 92 | mtc0 k0,$2,1 | 92 | mtc0 k0,$2,1 |
| 93 | ehb | 93 | _ehb |
| 94 | lw k0,PT_EPC(k1) | 94 | lw k0,PT_EPC(k1) |
| 95 | mtc0 k0,CP0_EPC | 95 | mtc0 k0,CP0_EPC |
| 96 | /* Save all will redundantly recompute the SP, but use it for now */ | 96 | /* Save all will redundantly recompute the SP, but use it for now */ |
| @@ -116,7 +116,7 @@ LEAF(self_ipi) | |||
| 116 | mfc0 t0,CP0_TCSTATUS | 116 | mfc0 t0,CP0_TCSTATUS |
| 117 | ori t1,t0,TCSTATUS_IXMT | 117 | ori t1,t0,TCSTATUS_IXMT |
| 118 | mtc0 t1,CP0_TCSTATUS | 118 | mtc0 t1,CP0_TCSTATUS |
| 119 | ehb | 119 | _ehb |
| 120 | /* We know we're in kernel mode, so prepare stack frame */ | 120 | /* We know we're in kernel mode, so prepare stack frame */ |
| 121 | subu t1,sp,PT_SIZE | 121 | subu t1,sp,PT_SIZE |
| 122 | sw ra,PT_EPC(t1) | 122 | sw ra,PT_EPC(t1) |
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index 70cf09afdf56..a48d9e553083 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
| @@ -1002,7 +1002,7 @@ void setup_cross_vpe_interrupts(void) | |||
| 1002 | set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); | 1002 | set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); |
| 1003 | 1003 | ||
| 1004 | irq_ipi.handler = ipi_interrupt; | 1004 | irq_ipi.handler = ipi_interrupt; |
| 1005 | irq_ipi.flags = SA_INTERRUPT; | 1005 | irq_ipi.flags = IRQF_DISABLED; |
| 1006 | irq_ipi.name = "SMTC_IPI"; | 1006 | irq_ipi.name = "SMTC_IPI"; |
| 1007 | 1007 | ||
| 1008 | setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ)); | 1008 | setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ)); |
diff --git a/arch/mips/kernel/syscall.c b/arch/mips/kernel/syscall.c index 5e8a18a8e2bd..0721314db657 100644 --- a/arch/mips/kernel/syscall.c +++ b/arch/mips/kernel/syscall.c | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. | 7 | * Copyright (C) 1999, 2000 Silicon Graphics, Inc. |
| 8 | * Copyright (C) 2001 MIPS Technologies, Inc. | 8 | * Copyright (C) 2001 MIPS Technologies, Inc. |
| 9 | */ | 9 | */ |
| 10 | #include <linux/config.h> | ||
| 11 | #include <linux/a.out.h> | 10 | #include <linux/a.out.h> |
| 12 | #include <linux/capability.h> | 11 | #include <linux/capability.h> |
| 13 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
| @@ -301,7 +300,7 @@ asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) | |||
| 301 | * | 300 | * |
| 302 | * This is really horribly ugly. | 301 | * This is really horribly ugly. |
| 303 | */ | 302 | */ |
| 304 | asmlinkage int sys_ipc (uint call, int first, int second, | 303 | asmlinkage int sys_ipc (unsigned int call, int first, int second, |
| 305 | unsigned long third, void __user *ptr, long fifth) | 304 | unsigned long third, void __user *ptr, long fifth) |
| 306 | { | 305 | { |
| 307 | int version, ret; | 306 | int version, ret; |
| @@ -359,18 +358,18 @@ asmlinkage int sys_ipc (uint call, int first, int second, | |||
| 359 | case SHMAT: | 358 | case SHMAT: |
| 360 | switch (version) { | 359 | switch (version) { |
| 361 | default: { | 360 | default: { |
| 362 | ulong raddr; | 361 | unsigned long raddr; |
| 363 | ret = do_shmat (first, (char __user *) ptr, second, | 362 | ret = do_shmat (first, (char __user *) ptr, second, |
| 364 | &raddr); | 363 | &raddr); |
| 365 | if (ret) | 364 | if (ret) |
| 366 | return ret; | 365 | return ret; |
| 367 | return put_user (raddr, (ulong __user *) third); | 366 | return put_user (raddr, (unsigned long __user *) third); |
| 368 | } | 367 | } |
| 369 | case 1: /* iBCS2 emulator entry point */ | 368 | case 1: /* iBCS2 emulator entry point */ |
| 370 | if (!segment_eq(get_fs(), get_ds())) | 369 | if (!segment_eq(get_fs(), get_ds())) |
| 371 | return -EINVAL; | 370 | return -EINVAL; |
| 372 | return do_shmat (first, (char __user *) ptr, second, | 371 | return do_shmat (first, (char __user *) ptr, second, |
| 373 | (ulong *) third); | 372 | (unsigned long *) third); |
| 374 | } | 373 | } |
| 375 | case SHMDT: | 374 | case SHMDT: |
| 376 | return sys_shmdt ((char __user *)ptr); | 375 | return sys_shmdt ((char __user *)ptr); |
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index 13ff4da598cd..2393c11d5a20 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | * Free Software Foundation; either version 2 of the License, or (at your | 11 | * Free Software Foundation; either version 2 of the License, or (at your |
| 12 | * option) any later version. | 12 | * option) any later version. |
| 13 | */ | 13 | */ |
| 14 | #include <linux/config.h> | ||
| 15 | #include <linux/types.h> | 14 | #include <linux/types.h> |
| 16 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
| 17 | #include <linux/init.h> | 16 | #include <linux/init.h> |
| @@ -580,7 +579,7 @@ unsigned int mips_hpt_frequency; | |||
| 580 | 579 | ||
| 581 | static struct irqaction timer_irqaction = { | 580 | static struct irqaction timer_irqaction = { |
| 582 | .handler = timer_interrupt, | 581 | .handler = timer_interrupt, |
| 583 | .flags = SA_INTERRUPT, | 582 | .flags = IRQF_DISABLED, |
| 584 | .name = "timer", | 583 | .name = "timer", |
| 585 | }; | 584 | }; |
| 586 | 585 | ||
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index ad16eceb24dd..8b95eca9ac74 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | * Copyright (C) 2000, 01 MIPS Technologies, Inc. | 11 | * Copyright (C) 2000, 01 MIPS Technologies, Inc. |
| 12 | * Copyright (C) 2002, 2003, 2004, 2005 Maciej W. Rozycki | 12 | * Copyright (C) 2002, 2003, 2004, 2005 Maciej W. Rozycki |
| 13 | */ | 13 | */ |
| 14 | #include <linux/config.h> | ||
| 15 | #include <linux/init.h> | 14 | #include <linux/init.h> |
| 16 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
| 17 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| @@ -1050,7 +1049,7 @@ void *set_except_vector(int n, void *addr) | |||
| 1050 | return (void *)old_handler; | 1049 | return (void *)old_handler; |
| 1051 | } | 1050 | } |
| 1052 | 1051 | ||
| 1053 | #ifdef CONFIG_CPU_MIPSR2 | 1052 | #ifdef CONFIG_CPU_MIPSR2_SRS |
| 1054 | /* | 1053 | /* |
| 1055 | * MIPSR2 shadow register set allocation | 1054 | * MIPSR2 shadow register set allocation |
| 1056 | * FIXME: SMP... | 1055 | * FIXME: SMP... |
| @@ -1069,11 +1068,9 @@ static struct shadow_registers { | |||
| 1069 | 1068 | ||
| 1070 | static void mips_srs_init(void) | 1069 | static void mips_srs_init(void) |
| 1071 | { | 1070 | { |
| 1072 | #ifdef CONFIG_CPU_MIPSR2_SRS | ||
| 1073 | shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1; | 1071 | shadow_registers.sr_supported = ((read_c0_srsctl() >> 26) & 0x0f) + 1; |
| 1074 | printk(KERN_INFO "%d MIPSR2 register sets available\n", | 1072 | printk(KERN_INFO "%d MIPSR2 register sets available\n", |
| 1075 | shadow_registers.sr_supported); | 1073 | shadow_registers.sr_supported); |
| 1076 | #endif | ||
| 1077 | shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */ | 1074 | shadow_registers.sr_allocated = 1; /* Set 0 used by kernel */ |
| 1078 | } | 1075 | } |
| 1079 | 1076 | ||
| @@ -1198,7 +1195,14 @@ void *set_vi_handler(int n, void *addr) | |||
| 1198 | { | 1195 | { |
| 1199 | return set_vi_srs_handler(n, addr, 0); | 1196 | return set_vi_srs_handler(n, addr, 0); |
| 1200 | } | 1197 | } |
| 1201 | #endif | 1198 | |
| 1199 | #else | ||
| 1200 | |||
| 1201 | static inline void mips_srs_init(void) | ||
| 1202 | { | ||
| 1203 | } | ||
| 1204 | |||
| 1205 | #endif /* CONFIG_CPU_MIPSR2_SRS */ | ||
| 1202 | 1206 | ||
| 1203 | /* | 1207 | /* |
| 1204 | * This is used by native signal handling | 1208 | * This is used by native signal handling |
| @@ -1388,9 +1392,7 @@ void __init trap_init(void) | |||
| 1388 | else | 1392 | else |
| 1389 | ebase = CAC_BASE; | 1393 | ebase = CAC_BASE; |
| 1390 | 1394 | ||
| 1391 | #ifdef CONFIG_CPU_MIPSR2 | ||
| 1392 | mips_srs_init(); | 1395 | mips_srs_init(); |
| 1393 | #endif | ||
| 1394 | 1396 | ||
| 1395 | per_cpu_trap_init(); | 1397 | per_cpu_trap_init(); |
| 1396 | 1398 | ||
diff --git a/arch/mips/kernel/unaligned.c b/arch/mips/kernel/unaligned.c index 5b5a3736cbbc..7e7d54823486 100644 --- a/arch/mips/kernel/unaligned.c +++ b/arch/mips/kernel/unaligned.c | |||
| @@ -72,7 +72,6 @@ | |||
| 72 | * A store crossing a page boundary might be executed only partially. | 72 | * A store crossing a page boundary might be executed only partially. |
| 73 | * Undo the partial store in this case. | 73 | * Undo the partial store in this case. |
| 74 | */ | 74 | */ |
| 75 | #include <linux/config.h> | ||
| 76 | #include <linux/mm.h> | 75 | #include <linux/mm.h> |
| 77 | #include <linux/module.h> | 76 | #include <linux/module.h> |
| 78 | #include <linux/signal.h> | 77 | #include <linux/signal.h> |
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S index b84d1f9ce28e..0bb9cd889456 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #include <linux/config.h> | ||
| 2 | #include <asm/asm-offsets.h> | 1 | #include <asm/asm-offsets.h> |
| 3 | #include <asm-generic/vmlinux.lds.h> | 2 | #include <asm-generic/vmlinux.lds.h> |
| 4 | 3 | ||
