aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel
AgeCommit message (Collapse)AuthorFilesLines
2007-08-27[MIPS] Fix invalid semicolon after if statementIlpo Järvinen1-1/+1
Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] MT: Use kallsyms in CPU state dumpRalf Baechle1-2/+5
Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] SMTC: Move MIPS_CPU_IPI_IRQ definition into header.Ralf Baechle1-2/+0
Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] SMP: Scatter __cpuinit over the code as needed.Ralf Baechle1-3/+3
MIPS doesn't do CPU hotplugging yet but since many of the functions don't even have an __init let's fix this right. Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] Remove dead code from irq_txx9.cAtsushi Nemoto1-7/+3
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] Do not discard extra debugging sections.Daniel Jacobowitz1-3/+4
Leaving these sections is useful to some tools that look at the image, and none of them are loaded into memory. The .mdebug.abi64 section, in particular, lets GDB recognize vmlinux.32 as an N64 program instead of guessing that it is O32. Signed-off-by: Daniel Jacobowitz <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] The irq_chip for TX39/TX49 SoCsAtsushi Nemoto2-0/+197
Add generic irq_chip for TX39/TX49 SoCs. This can be replace jmr3927_irq_irc, tx4927_irq_pic_type and tx4938_irq_pic_type. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-08-27[MIPS] Extract {PGD,PMD,PTE}_ORDER into asm-offset.hRalf Baechle1-0/+4
For debugging purposes only. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Add smp_call_function_single()Peter Watkins1-0/+55
In the other archs, there is more factoring of smp call code, and more care in the use of get_cpu(). That can be a follow-up MIPS patch. Signed-off-by: Peter Watkins <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Kexec: Fix several 64-bit bugs.Ralf Baechle1-38/+40
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Kexec: Fix several warnings.Ralf Baechle1-5/+8
arch/mips/kernel/machine_kexec.c: In function 'machine_kexec': arch/mips/kernel/machine_kexec.c:54: warning: assignment makes integer from pointer without a cast arch/mips/kernel/machine_kexec.c:70: warning: assignment makes integer from pointer without a cast arch/mips/kernel/machine_kexec.c:81: warning: format '%08x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] remove some duplicate includesJesper Juhl1-1/+0
This patch removes some duplicate includes from arch/mips/ Signed-off-by: Jesper Juhl <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Use -Werror on subdirectories which build cleanly.Ralf Baechle1-0/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Fix build warning in unaligned load/store emulator.Ralf Baechle1-31/+20
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Replace use of stext with _stext.Ralf Baechle1-1/+0
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] SMTC: Fix modpost warning.Ralf Baechle1-1/+1
WARNING: vmlinux.o(.text+0xcf54): Section mismatch: reference to .init.text:smp_bootstrap (between 'smtc_boot_secondary' and 'ipi_interrupt') Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] rtlx: Fix modpost warningRalf Baechle1-1/+1
WARNING: vmlinux.o(.text+0x11504): Section mismatch: reference to .init.data:register_chrdev_failed (between 'rtlx_module_init' and 'rtlx_dispatch') Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] RP: Sysfs interface for stopping RP programRalf Baechle1-0/+18
The old method of attempting to load a invalid program was just too icky. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] RP: Pass number of TCs available to RP program in $2.Ralf Baechle1-9/+73
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] MT: Enable coexistence of AP/SP with VSMP and SMTC.Ralf Baechle5-157/+185
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] SMTC: smtc_timer_broadcast ignores its arguments, make it void.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] SMTC: Declare static what should be static.Ralf Baechle1-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] SMTC: Statically initialize irq_ipi[].Ralf Baechle1-6/+6
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Wire up the fallocate syscall.Ralf Baechle5-0/+11
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Fixup secure computing stuff.Ralf Baechle7-17/+31
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-29Remove fs.h from mm.hAlexey Dobriyan2-0/+2
Remove fs.h from mm.h. For this, 1) Uninline vma_wants_writenotify(). It's pretty huge anyway. 2) Add back fs.h or less bloated headers (err.h) to files that need it. As result, on x86_64 allyesconfig, fs.h dependencies cut down from 3929 files rebuilt down to 3444 (-12.3%). Cross-compile tested without regressions on my two usual configs and (sigh): alpha arm-mx1ads mips-bigsur powerpc-ebony alpha-allnoconfig arm-neponset mips-capcella powerpc-g5 alpha-defconfig arm-netwinder mips-cobalt powerpc-holly alpha-up arm-netx mips-db1000 powerpc-iseries arm arm-ns9xxx mips-db1100 powerpc-linkstation arm-assabet arm-omap_h2_1610 mips-db1200 powerpc-lite5200 arm-at91rm9200dk arm-onearm mips-db1500 powerpc-maple arm-at91rm9200ek arm-picotux200 mips-db1550 powerpc-mpc7448_hpc2 arm-at91sam9260ek arm-pleb mips-ddb5477 powerpc-mpc8272_ads arm-at91sam9261ek arm-pnx4008 mips-decstation powerpc-mpc8313_rdb arm-at91sam9263ek arm-pxa255-idp mips-e55 powerpc-mpc832x_mds arm-at91sam9rlek arm-realview mips-emma2rh powerpc-mpc832x_rdb arm-ateb9200 arm-realview-smp mips-excite powerpc-mpc834x_itx arm-badge4 arm-rpc mips-fulong powerpc-mpc834x_itxgp arm-carmeva arm-s3c2410 mips-ip22 powerpc-mpc834x_mds arm-cerfcube arm-shannon mips-ip27 powerpc-mpc836x_mds arm-clps7500 arm-shark mips-ip32 powerpc-mpc8540_ads arm-collie arm-simpad mips-jazz powerpc-mpc8544_ds arm-corgi arm-spitz mips-jmr3927 powerpc-mpc8560_ads arm-csb337 arm-trizeps4 mips-malta powerpc-mpc8568mds arm-csb637 arm-versatile mips-mipssim powerpc-mpc85xx_cds arm-ebsa110 i386 mips-mpc30x powerpc-mpc8641_hpcn arm-edb7211 i386-allnoconfig mips-msp71xx powerpc-mpc866_ads arm-em_x270 i386-defconfig mips-ocelot powerpc-mpc885_ads arm-ep93xx i386-up mips-pb1100 powerpc-pasemi arm-footbridge ia64 mips-pb1500 powerpc-pmac32 arm-fortunet ia64-allnoconfig mips-pb1550 powerpc-ppc64 arm-h3600 ia64-bigsur mips-pnx8550-jbs powerpc-prpmc2800 arm-h7201 ia64-defconfig mips-pnx8550-stb810 powerpc-ps3 arm-h7202 ia64-gensparse mips-qemu powerpc-pseries arm-hackkit ia64-sim mips-rbhma4200 powerpc-up arm-integrator ia64-sn2 mips-rbhma4500 s390 arm-iop13xx ia64-tiger mips-rm200 s390-allnoconfig arm-iop32x ia64-up mips-sb1250-swarm s390-defconfig arm-iop33x ia64-zx1 mips-sead s390-up arm-ixp2000 m68k mips-tb0219 sparc arm-ixp23xx m68k-amiga mips-tb0226 sparc-allnoconfig arm-ixp4xx m68k-apollo mips-tb0287 sparc-defconfig arm-jornada720 m68k-atari mips-workpad sparc-up arm-kafa m68k-bvme6000 mips-wrppmc sparc64 arm-kb9202 m68k-hp300 mips-yosemite sparc64-allnoconfig arm-ks8695 m68k-mac parisc sparc64-defconfig arm-lart m68k-mvme147 parisc-allnoconfig sparc64-up arm-lpd270 m68k-mvme16x parisc-defconfig um-x86_64 arm-lpd7a400 m68k-q40 parisc-up x86_64 arm-lpd7a404 m68k-sun3 powerpc x86_64-allnoconfig arm-lubbock m68k-sun3x powerpc-cell x86_64-defconfig arm-lusl7200 mips powerpc-celleb x86_64-up arm-mainstone mips-atlas powerpc-chrp32 Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-24[MIPS] Fix marge error due to conflict in arch/mips/kernel/head.SAtsushi Nemoto1-1/+1
__INIT directive just before kernel_entry was ignored for most platforms. This patch fixes it and get rid of this warning: WARNING: vmlinux.o(.text+0x478): Section mismatch: reference to .init.text:start_kernel (between '_stext' and 'run_init_process') Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-24[MIPS] Replace __attribute_used__ with __usedDavid Rientjes5-8/+7
Replaces the deprecated __attribute_used__ with __used. Also makes some style adjustments to abide by the kernel coding conventions. Cc: Ralf Baechle <[email protected]> Signed-off-by: David Rientjes <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-20[MIPS] User stack pointer randomisationFranck Bui-Huu1-0/+14
Signed-off-by: Franck Bui-Huu <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-20[MIPS] Workaround for RM7000 WAIT instruction aka erratum 38Ralf Baechle1-1/+25
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-19define new percpu interface for shared dataFenghua Yu1-4/+1
per cpu data section contains two types of data. One set which is exclusively accessed by the local cpu and the other set which is per cpu, but also shared by remote cpus. In the current kernel, these two sets are not clearely separated out. This can potentially cause the same data cacheline shared between the two sets of data, which will result in unnecessary bouncing of the cacheline between cpus. One way to fix the problem is to cacheline align the remotely accessed per cpu data, both at the beginning and at the end. Because of the padding at both ends, this will likely cause some memory wastage and also the interface to achieve this is not clean. This patch: Moves the remotely accessed per cpu data (which is currently marked as ____cacheline_aligned_in_smp) into a different section, where all the data elements are cacheline aligned. And as such, this differentiates the local only data and remotely accessed data cleanly. Signed-off-by: Fenghua Yu <[email protected]> Acked-by: Suresh Siddha <[email protected]> Cc: Rusty Russell <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Andi Kleen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-17PTRACE_POKEDATA consolidationAlexey Dobriyan1-5/+1
Identical implementations of PTRACE_POKEDATA go into generic_ptrace_pokedata() function. AFAICS, fix bug on xtensa where successful PTRACE_POKEDATA will nevertheless return EPERM. Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-17PTRACE_PEEKDATA consolidationAlexey Dobriyan1-10/+2
Identical implementations of PTRACE_PEEKDATA go into generic_ptrace_peekdata() function. Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-17Report that kernel is tainted if there was an OOPSPavel Emelianov1-0/+1
If the kernel OOPSed or BUGed then it probably should be considered as tainted. Thus, all subsequent OOPSes and SysRq dumps will report the tainted kernel. This saves a lot of time explaining oddities in the calltraces. Signed-off-by: Pavel Emelianov <[email protected]> Acked-by: Randy Dunlap <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> [ Added parisc patch from Matthew Wilson -Linus ] Signed-off-by: Linus Torvalds <[email protected]>
2007-07-13[MIPS] Make show_code static and add __user tagAtsushi Nemoto1-3/+3
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-13[MIPS] Add some __user tagsAtsushi Nemoto2-3/+4
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-12[MIPS] Rename PC speaker codeRalf Baechle2-1/+1
While the PC speaker is wired up to the i8254 there is more to the i8254 than just the PC speaker so this code was getting in the way under its current name. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-12[MIPS] Sparse: Use NULL for pointerAtsushi Nemoto1-1/+1
This fixes a sparse warning: arch/mips/kernel/traps.c:376:44: warning: Using plain integer as NULL pointer Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-12[MIPS] SMTC: Interrupt mask backstop hackKevin D. Kissell2-0/+4
To support multiple TC microthreads acting as "CPUs" within a VPE, VPE-wide interrupt mask bits must be specially manipulated during interrupt handling. To support legacy drivers and interrupt controller management code, SMTC has a "backstop" to track and if necessary restore the interrupt mask. This has some performance impact on interrupt service overhead. Disable it only if you know what you are doing. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-12[MIPS] Fix resume for 64K page size on R4000 class processors.Ralf Baechle1-6/+1
Problem reported by Peter Watkins <[email protected]> but this is a different fix. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Delete Ocelot 3 support.Ralf Baechle2-112/+0
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Add some debugfs files to debug unaligned accessesAtsushi Nemoto2-3/+54
Currently a number of unaligned instructions is counted but not used. Add /debug/mips/unaligned_instructions file to show the value. And add /debug/mips/unaligned_action to control behavior upon an unaligned access. Possible actions are: 0: silently fixup the unaligned access. 1: send SIGBUS. 2: dump registers, process name, etc. and fixup. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Move FPU affinity code into separate file.Ralf Baechle3-169/+177
Gets rid of some of the CONFIG_MIPS_MT_FPAFF #ifdefery. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] PMC MSP71xx mips commonMarc St-Jean3-1/+30
Patch to add mips common support for the PMC-Sierra MSP71xx devices. Signed-off-by: Marc St-Jean <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] define Hit_Invalidate_I to Index_Invalidate_I for loongson2Fuxin Zhang3-6/+16
Signed-off-by: Fuxin Zhang <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Enable support for the userlocal hardware registerRalf Baechle3-4/+12
Which will cut down the cost of RDHWR $29 which is used to obtain the TLS pointer and so far being emulated in software down to a single cycle operation. Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] FP affinity: Coding style cleanups Ralf Baechle2-48/+51
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Put an end to <asm/serial.h>'s long and annyoing existenceRalf Baechle2-0/+49
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Remove unused watchpoint support and arch/mips/lib-{32,64}Atsushi Nemoto2-2/+0
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] MIPSsim: Move code away from the other MIPS Inc. BSP code.Ralf Baechle1-5/+2
It shares no code at all. While at it also fix up the beginning bitrot. Signed-off-by: Ralf Baechle <[email protected]>