diff options
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/Makefile | 93 | ||||
-rw-r--r-- | arch/mips/kernel/irixsig.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/traps.c | 13 |
3 files changed, 29 insertions, 79 deletions
diff --git a/arch/mips/kernel/Makefile b/arch/mips/kernel/Makefile index 9be8406e4..6bec68661 100644 --- a/arch/mips/kernel/Makefile +++ b/arch/mips/kernel/Makefile @@ -11,97 +11,60 @@ .S.o: $(CC) $(AFLAGS) -c $< -o $@ -all: kernel.o head.o init_task.o EXTRA_ASFLAGS = -mips3 -mcpu=r4000 + +all: kernel.o head.o init_task.o + O_TARGET := kernel.o -O_OBJS := branch.o process.o signal.o entry.o traps.o ptrace.o vm86.o \ - ioport.o reset.o semaphore.o setup.o syscall.o sysmips.o ipc.o \ - scall_o32.o unaligned.o -OX_OBJS := mips_ksyms.o + +obj-y += branch.o process.o signal.o entry.o \ + traps.o ptrace.o vm86.o ioport.o reset.o \ + semaphore.o setup.o syscall.o sysmips.o \ + ipc.o scall_o32.o unaligned.o +obj-$(CONFIG_MODULES) += mips_ksyms.o ifdef CONFIG_CPU_R3000 -O_OBJS += r2300_misc.o r2300_fpu.o r2300_switch.o +obj-y += r2300_misc.o r2300_fpu.o r2300_switch.o else -O_OBJS += r4k_misc.o r4k_switch.o +obj-y += r4k_misc.o r4k_switch.o ifdef CONFIG_CPU_R6000 -O_OBJS += r6000_fpu.o +obj-y += r6000_fpu.o else -O_OBJS += r4k_fpu.o -endif +obj-y += r4k_fpu.o endif - -ifdef CONFIG_MIPS_FPE_MODULE -M_OBJS += fpe.o endif -ifndef CONFIG_MIPS_FPU_EMULATOR -O_OBJS += softfp.o -endif +obj-$(CONFIG_MIPS_FPE_MODULE) += fpe.o +obj-$(CONFIG_MIPS_FPU_EMULATOR) += softfp.o -ifdef CONFIG_ROTTEN_IRQ - OX_OBJS += old-irq.o -endif +# Old style irq support, going to die in 2.5. +export-objs += old-irq.o +obj-$(CONFIG_ROTTEN_IRQ) += old-irq.o ifndef CONFIG_DECSTATION ifndef CONFIG_BAGET_MIPS ifndef CONFIG_MIPS_ATLAS ifndef CONFIG_MIPS_MALTA ifndef CONFIG_MIPS_EV96100 - O_OBJS += time.o + obj-y += time.o endif endif endif endif endif -# -# Do we want to be able to execute IRIX elf binaries? -# -ifdef CONFIG_BINFMT_IRIX -O_OBJS += irixelf.o irixioctl.o irixsig.o sysirix.o irixinv.o -endif - -# -# Kernel debugging -# -ifdef CONFIG_REMOTE_DEBUG -O_OBJS += gdb-low.o gdb-stub.o -endif - -ifdef CONFIG_PCI -O_OBJS += pci-dma.o -endif - -ifdef CONFIG_PROC_FS -O_OBJS += proc.o -endif - -# -# Since we add the same object files to O_OBJS for different configurations. -# O_OBJS might contain duplicate files. We correct this by filtering out -# duplicate files. Just to avoid users having to know about all the -# compatibility stuff between various boards and boards. -# -O_OBJS := $(sort $(O_OBJS)) +obj-$(CONFIG_BINFMT_IRIX) += irixelf.o irixioctl.o irixsig.o sysirix.o \ + irixinv.o +obj-$(CONFIG_REMOTE_DEBUG) += gdb-low.o gdb-stub.o +obj-$(CONFIG_PCI) += pci-dma.o +obj-$(CONFIG_PROC_FS) += proc.o entry.o: entry.S - head.o: head.S -#r4k_switch.o: r4k_switch.S -# -#r4k_misc.o: r4k_misc.S -# -#r4k_fpu.o: r4k_fpu.S -# -#r2300_switch.o: r2300_switch.S -# -#r2300_misc.o: r2300_misc.S -# -#r2300_fpu.o: r2300_fpu.S -# -#r6000_fpu.o: r6000_fpu.S - -clean: +O_OBJS := $(filter-out $(export-objs), $(obj-y)) +OX_OBJS := $(filter $(export-objs), $(obj-y)) +M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m))) +MX_OBJS := $(sort $(filter $(export-objs), $(obj-m))) include $(TOPDIR)/Rules.make diff --git a/arch/mips/kernel/irixsig.c b/arch/mips/kernel/irixsig.c index 6f6556da4..022bb1f77 100644 --- a/arch/mips/kernel/irixsig.c +++ b/arch/mips/kernel/irixsig.c @@ -716,7 +716,7 @@ repeat: SET_LINKS(p); notify_parent(p, SIGCHLD); } else - release(p); + release_task(p); goto end_waitsys; default: continue; diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index d3ea588f0..f2a1d7032 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -36,19 +36,6 @@ #include <asm/inst.h> #endif -extern int console_loglevel; - -static inline void console_silent(void) -{ - console_loglevel = 0; -} - -static inline void console_verbose(void) -{ - if (console_loglevel) - console_loglevel = 15; -} - /* * Machine specific interrupt handlers */ |