aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel
AgeCommit message (Collapse)AuthorFilesLines
2007-03-29[MIPS] lockdep: Handle interrupts in R3000 style c0_status register.Chris Dearman1-1/+5
Check the IEP bit for R3000 style processors when checking to see if interrupts will be reenabled in restore_all. Signed-off-by: Chris Dearman <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-03-19[MIPS] Export except_vec_vi_{mori,lui,ori} as text symbols.Ralf Baechle1-3/+3
Otherwise objdump will screw up disassembly. Signed-off-by: Ralf Baechle <[email protected]>
2007-03-19[MIPS] VI: TRACE_IRQS_OFF clobbers $v0, so save & restore around call.Ralf Baechle1-0/+10
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] RTLX: Handle copy_*_user return values.Ralf Baechle2-29/+35
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] RTLX: Protect rtlx_{read,write} with mutex.Ralf Baechle1-0/+6
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] RTLX: Harden against compiler reordering and optimization.Ralf Baechle1-17/+24
RTLX communication is based on lock-free shared memory buffers. It happened to be working by luck so far but relies on the optimizer doing certain optimizations but no reordering. Fixed by inserting proper barriers in rtlx_read and rtlx_write, and careful pointer dereferencing. Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] RTLX: Don't use volatile; it's fragile.Ralf Baechle1-5/+16
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] Compat: Fix build if CONFIG_SYSVIPC is disabled.Ralf Baechle1-0/+12
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] FPU ownership management & preemption fixesAtsushi Nemoto5-89/+73
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-03-17[MIPS] Check FCSR for pending interrupts, alternative versionAtsushi Nemoto5-23/+75
Commit 6d6671066a311703bca1b91645bb1e04cc983387 is incomplete and misses non-r4k CPUs. This patch reverts the commit and fixes in other way. o Do FCSR checking in caller of restore_fp_context. o Send SIGFPE if the signal handler set any FPU exception bits. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-03-13[MIPS] kspd: ioctl needs a translation entry.Ralf Baechle1-1/+3
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-08[PATCH] Add epoll compat_ code to fs/compat.cDavide Libenzi1-46/+0
IA64 and ARM-OABI are currently using their own version of epoll compat_ code. An architecture needs epoll_event translation if alignof(u64) in 32 bit mode is different from alignof(u64) in 64 bit mode. If an architecture needs epoll_event translation, it must define struct compat_epoll_event in asm/compat.h and set CONFIG_HAVE_COMPAT_EPOLL_EVENT and use compat_sys_epoll_ctl and compat_sys_epoll_wait. All 64 bit architecture should use compat_sys_epoll_pwait. [sfr: restructure and move to fs/compat.c, remove MIPS version of compat_sys_epoll_pwait, use __put_user_unaligned] Signed-off-by: Stephen Rothwell <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Russell King <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-03-07[MIPS] Wire up ioprio_set and ioprio_get.Ralf Baechle4-1/+11
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-07[MIPS] Export __copy_user_inatomic.Ralf Baechle1-0/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] Fix and cleanup the mess that a dozen prom_printf variants are.Ralf Baechle3-0/+49
early_printk is a so much saner thing. Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] Replace sys32_timer_create with the generic compat_sys_timer_create.Ralf Baechle3-33/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] Replace sys32_socketcall with the generic compat_sys_socketcall.Ralf Baechle2-115/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-03-04[MIPS] N32 waitid is the same as o32.Ralf Baechle2-29/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] Make SMTC_IDLE_HOOK_DEBUG a proper option in Kconfig.debug.Ralf Baechle2-13/+10
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] Fix foobar in wiring up compat_sys_epoll_pwait syscall.Ralf Baechle2-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] Always fixup unaligned accesses in kernel mode.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] RTLX: Delete multiple definition of ret shaddowing each other.Ralf Baechle1-4/+0
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] RTLX, VPE: Make open actually atomic.Ralf Baechle2-28/+23
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] Kill redundant EXTRA_AFLAGSAtsushi Nemoto1-2/+0
Many Makefiles in arch/mips have EXTRA_AFLAGS := $(CFLAGS) line. This is redundant while AFLAGS contains $(cflags-y) and any options only listed in CFLAGS (not in cflags-y) should be unnecessary for asm sources. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-26[MIPS] RTLX: Handle signals when sleeping.Ralf Baechle1-80/+42
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-22[MIPS] SMP: Get smp_tune_scheduling to do something useful.Ralf Baechle1-21/+4
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-22[MIPS] Add basic SMARTMIPS ASE supportFranck Bui-Huu4-0/+24
This patch adds trivial support for SMARTMIPS extension. This extension is currently implemented by 4KS[CD] CPUs. Basically it saves/restores ACX register, which is part of the SMARTMIPS ASE, when needed. This patch does *not* add any support for Smartmips MMU features. Futhermore this patch does not add explicit support for 4KS[CD] CPUs since they are respectively mips32 and mips32r2 compliant. So with the current processor configuration, a platform that has such CPUs needs to select both configs: CPU_HAS_SMARTMIPS SYS_HAS_CPU_MIPS32_R[12] This is due to the processor configuration which is mixing up all the architecture variants and the processor types. The drawback of this, is that we currently pass '-march=mips32' option to gcc when building a kernel instead of '-march=4ksc' for 4KSC case. This can lead to a kernel image a little bit bigger than required. Signed-off-by: Franck Bui-Huu <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-20Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds3-13/+11
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [NET] Eliminate user-selectable CONFIG_MV643XX_ETH_[012] [MIPS] Drop __init from init_8259A() [MIPS] Fix Kconfig typo bug [MIPS] Fix double signal on trap and break instruction [MIPS] sigset_32 has been made redundand by compat_sigset_t. [MIPS] emma2rh: Remove needless <asm/i8259.h> inclusion. [MIPS] Add MTD device support for Cobalt
2007-02-20[MIPS] Drop __init from init_8259A()Atsushi Nemoto1-5/+8
init_8259A() is called from i8259A_resume() so should not be marked as __init. And add some tests for whether 8259A was already initialized or not. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-20[MIPS] Fix double signal on trap and break instructionAtsushi Nemoto1-0/+2
This commit broke gdb, since any BREAK or TRAP instruction cause SIGSEGV. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-20[MIPS] sigset_32 has been made redundand by compat_sigset_t.Ralf Baechle1-8/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-20[MIPS] Make some __setup functions staticAtsushi Nemoto2-3/+3
This fixes some sparse warnings. ("warning: symbol 'foo' was not declared. Should it be static?") Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-19Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds7-158/+40
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [MIPS] Update defconfigs [MIPS] Support for several more SNI RM models. [MIPS] Include <asm/bugs> to for declaration of check_bugs32. [MIPS] Add external declaration of pagetable_init() to pgalloc.h [MIPS] Make kernel_thread_helper() static [MIPS] Make __declare_dbe_table static and avoid it getting optimized away [MIPS] Use MIPS R2 instructions for bitops. [MIPS] signals: Share even more code. [MIPS] Fix CONFIG_MIPS32_N32=y CONFIG_MIPS32_O32=n build [MIPS] Iomap implementation. [MIPS] <asm/compat-signal.h> needs to include <asm/uaccess.h>. [MIPS] IP27: Fix warning. [MIPS] Fix sigset_t endianess swapping issues in 32-bit compat code.
2007-02-18[MIPS] Include <asm/bugs> to for declaration of check_bugs32.Ralf Baechle1-0/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-18[MIPS] Make kernel_thread_helper() staticAtsushi Nemoto1-1/+1
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-18[MIPS] Make __declare_dbe_table static and avoid it getting optimized awayRalf Baechle1-7/+3
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-18[MIPS] signals: Share even more code.Ralf Baechle4-146/+31
native and compat do_signal and handle_signal are identical and can easily be unified. Signed-off-by: Ralf Baechle <[email protected]>
2007-02-18[MIPS] Fix CONFIG_MIPS32_N32=y CONFIG_MIPS32_O32=n buildRalf Baechle1-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-18[MIPS] Fix sigset_t endianess swapping issues in 32-bit compat code.Atsushi Nemoto1-2/+2
access_ok in compat-signal.h is wrong (checking destination instead of source) and redundant (already checked before calling this function). Also sf_mask in struct sigframe32 should be compat_sigset_t type. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-17Storage class should be before const qualifierTobias Klauser1-2/+2
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2007-02-16[PATCH] clocksource: fixup is_continous changes on MIPSThomas Gleixner1-1/+1
Fixup the is_contionous replacement by a flag field. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: john stultz <[email protected]> Cc: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-13Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds8-59/+115
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [MIPS] Fix sigset_t endianess swapping issues in 32-bit compat code. [MIPS] Fix uniprocessor Sibyte builds. [MIPS] Make entry.S a little more readable. [MIPS] Remove stray instruction from __get_user_asm_ll32. [MIPS] 32-bit: Fix warning about cast for fetching pointer from userspace. [MIPS] DECstation: Fix irq handling [MIPS] signals: make common _BLOCKABLE macro [MIPS] signal: Move sigframe definition for native O32/N64 into signal.c [MIPS] signal: Move {restore,setup}_sigcontext prototypes to their user [MIPS] signal: Fix warnings in o32 compat code. [MIPS] IP27: Enable N32 support in defconfig. Revert "[MIPS] Fix warning in get_user when fetching pointer object from userspace." [MIPS] Don't claim we support dma_declare_coherent_memory - we don't. [MIPS] Unify dma-{coherent,noncoherent.ip27,ip32} [MIPS] Improve branch prediction in ll/sc atomic operations.
2007-02-13[MIPS] Fix sigset_t endianess swapping issues in 32-bit compat code.Ralf Baechle5-9/+60
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] Make entry.S a little more readable.Franck Bui-Huu1-11/+8
When CONFIG_PREEMPT is not set, it also moves one branch instruction from ret_from_irq() to ret_from_exception(). Therefore we favour the return from irq case which should be more common than the other one. Signed-off-by: Franck Bui-Huu <[email protected]> Acked-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] signals: make common _BLOCKABLE macroFranck Bui-Huu4-6/+2
Signed-off-by: Franck Bui-Huu <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] signal: Move sigframe definition for native O32/N64 into signal.cRalf Baechle2-26/+20
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] signal: Move {restore,setup}_sigcontext prototypes to their userRalf Baechle2-6/+4
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] signal: Fix warnings in o32 compat code.Ralf Baechle1-3/+23
Signed-off-by: Ralf Baechle <[email protected]>
2007-02-12[PATCH] mark struct file_operations const 2Arjan van de Ven2-2/+2
Many struct file_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. [[email protected]: sparc64 fix] Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-12[PATCH] Dynamic kernel command-line: mipsAlon Bar-Lev1-1/+1
Rename saved_command_line into boot_command_line. Signed-off-by: Alon Bar-Lev <[email protected]> Cc: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>