aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/kernel
AgeCommit message (Collapse)AuthorFilesLines
2006-06-01[MIPS] Fix kgdb exception handler from user mode.Atsushi Nemoto1-3/+5
Fix a calculation of saved vector address in trap_low. (damage done by lmo f4c72cc737561aab0d9c7f877abbc0a853f1c465) Signed-off-by: Ralf Baechle <[email protected]>
2006-06-01[MIPS] Update struct sigcontext member namesDaniel Jacobowitz2-32/+2
Rename the 64-bit sc_hi and sc_lo arrays to use the same names as the 32-bit struct sigcontext (sc_mdhi, sc_hi1, et cetera). Signed-off-by: Daniel Jacobowitz <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-06-01[MIPS] Remove support for sysmips(2) SETNAME and MIPS_RDNVRAM operations.Ralf Baechle1-24/+0
SETNAME only had a minor defect but probably never had a user and MIPS_RDNVRAM was unimplemented anyway. Signed-off-by: Ralf Baechle <[email protected]>
2006-06-01[MIPS] Fix detection and handling of the 74K processor.Chris Dearman2-0/+5
Nothing exciting; Linux just didn't know it yet so this is most adding a value to a case statement. Signed-off-by: Chris Dearman <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-06-01[MIPS] Add missing 34K processor IDsNigel Stephens1-0/+1
The 34K is very much like a 24K on steroids. Signed-off-by: Ralf Baechle <[email protected]>
2006-06-01[MIPS] Fix typoRalf Baechle1-1/+1
Found by Chris Dearman ([email protected]). Signed-off-by: Ralf Baechle <[email protected]>
2006-05-01[PATCH] drop task argument of audit_syscall_{entry,exit}Al Viro1-2/+2
... it's always current, and that's a good thing - allows simpler locking. Signed-off-by: Al Viro <[email protected]>
2006-04-27[MIPS] Fix branch emulation for floating-point exceptions.Ralf Baechle1-1/+1
In the branch emulation for floating-point exceptions, __compute_return_epc must determine for bc1f et al which condition code bit to test. This is based on bits <4:2> of the rt field. The switch statement to distinguish bc1f et al needs to use only the two low bits of rt, but the old code tests on the whole rt field. This patch masks off the proper bits. Signed-off-by: Win Treese <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-04-27[MIPS] Cleanup inode->r_dev usage.Ralf Baechle2-9/+8
imajor()/iminor() should be used instead of accessing r_dev directly. Based on patch from Eric Sesterhenn ([email protected]). Signed-off-by: Ralf Baechle <[email protected]>
2006-04-26[PATCH] fix mips sys32_p{read,write}Al Viro1-62/+2
Switched to use of sys_pread64()/sys_pwrite64() rather than keep duplicating their guts; among the little things that had been missing there were such as ret = security_file_permission (file, MAY_READ); Gotta love the LSM robustness, right? Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-04-19[MIPS] Make mips_srs_init static.Ralf Baechle1-1/+1
Nothing outside traps.c uses it. Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] FPU affinity for MT ASE.Ralf Baechle5-1/+67
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] MT: Improved multithreading support.Ralf Baechle23-29/+2447
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] kpsd and other AP/SP improvements.Ralf Baechle4-380/+1195
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] R2: Instruction hazard barrier.Ralf Baechle1-0/+15
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] R2: Implement shadow register allocation without spinlock.Ralf Baechle1-23/+18
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Rewrite all the assembler interrupt handlers to C.Ralf Baechle2-0/+16
Saves like 1,600 lines of code, is way easier to debug, compilers frequently do a better job than the cut and paste type of handlers many boards had. And finally having all the stuff done in a single place also means alot of bug potencial for the MT ASE is gone. The only surviving handler in assembler is the DECstation one; I hope Maciej will rewrite it. Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Rewrite spurious_interrupt from assembler to C.Ralf Baechle2-26/+5
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Sort out duplicate exports.Ralf Baechle2-17/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Wire up sync_file_range(2).Ralf Baechle5-0/+14
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Wire splice syscall.Ralf Baechle4-0/+4
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Some formatting fixes.Ralf Baechle1-3/+3
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Fixup printk in mips_srs_init.Ralf Baechle1-1/+2
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Remove redundant initialization of sr_allocated.Ralf Baechle1-2/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Make set_vi_srs_handler static.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-11[PATCH] No arch-specific strpbrk implementationsKyle McMartin1-1/+0
While cleaning up parisc_ksyms.c earlier, I noticed that strpbrk wasn't being exported from lib/string.c. Investigating further, I noticed a changeset that removed its export and added it to _ksyms.c on a few more architectures. The justification was that "other arches do it." I think this is wrong, since no architecture currently defines __HAVE_ARCH_STRPBRK, there's no reason for any of them to be exporting it themselves. Therefore, consolidate the export to lib/string.c. Signed-off-by: Kyle McMartin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-04-02Manual merge with Linus.Dmitry Torokhov19-284/+162
Conflicts: arch/powerpc/kernel/setup-common.c drivers/input/keyboard/hil_kbd.c drivers/input/mouse/hil_ptr.c
2006-03-31[PATCH] unexport get_wchanAdrian Bunk1-1/+0
The only user of get_wchan is the proc fs - and proc can't be built modular. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-28[PATCH] remove add_parent()'s parent argumentOleg Nesterov1-2/+2
add_parent(p, parent) is always called with parent == p->parent, and it makes no sense to do it differently. This patch removes this argument. No changes in affected .o files. Signed-off-by: Oleg Nesterov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-27[PATCH] mips: fixed collision of rtc function nameYoichi Yuasa1-11/+11
Fix the collision of rtc function name. Signed-off-by: Yoichi Yuasa <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-27[PATCH] unify PFN_* macrosDave Hansen1-8/+1
Just about every architecture defines some macros to do operations on pfns. They're all virtually identical. This patch consolidates all of them. One minor glitch is that at least i386 uses them in a very skeletal header file. To keep away from #include dependency hell, I stuck the new definitions in a new, isolated header. Of all of the implementations, sh64 is the only one that varied by a bit. It used some masks to ensure that any sign-extension got ripped away before the arithmetic is done. This has been posted to that sh64 maintainers and the development list. Compiles on x86, x86_64, ia64 and ppc64. Signed-off-by: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-26[PATCH] consolidate sys32/compat_adjtimexStephen Rothwell3-63/+2
Create compat_sys_adjtimex and use it an all appropriate places. Signed-off-by: Stephen Rothwell <[email protected]> Cc: Arnd Bergmann <[email protected]> Acked-by: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-26[PATCH] create struct compat_timex and use it everywhereStephen Rothwell1-14/+1
We had a copy of the compatibility version of struct timex in each 64 bit architecture. This patch just creates a global one and replaces all the usages of the old ones. Signed-off-by: Stephen Rothwell <[email protected]> Cc: Arnd Bergmann <[email protected]> Acked-by: Kyle McMartin <[email protected]> Acked-by: Tony Luck <[email protected]> Acked-by: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-25[PATCH] sys_alarm() unsigned signed conversion fixupThomas Gleixner1-21/+1
alarm() calls the kernel with an unsigend int timeout in seconds. The value is stored in the tv_sec field of a struct timeval to setup the itimer. The tv_sec field of struct timeval is of type long, which causes the tv_sec value to be negative on 32 bit machines if seconds > INT_MAX. Before the hrtimer merge (pre 2.6.16) such a negative value was converted to the maximum jiffies timeout by the timeval_to_jiffies conversion. It's not clear whether this was intended or just happened to be done by the timeval_to_jiffies code. hrtimers expect a timeval in canonical form and treat a negative timeout as already expired. This breaks the legitimate usage of alarm() with a timeout value > INT_MAX seconds. For 32 bit machines it is therefor necessary to limit the internal seconds value to avoid API breakage. Instead of doing this in all implementations of sys_alarm the duplicated sys_alarm code is moved into a common function in itimer.c Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-23[PATCH] more for_each_cpu() conversionsAndrew Morton2-8/+6
When we stop allocating percpu memory for not-possible CPUs we must not touch the percpu data for not-possible CPUs at all. The correct way of doing this is to test cpu_possible() or to use for_each_cpu(). This patch is a kernel-wide sweep of all instances of NR_CPUS. I found very few instances of this bug, if any. But the patch converts lots of open-coded test to use the preferred helper macros. Cc: Mikael Starvik <[email protected]> Cc: David Howells <[email protected]> Acked-by: Kyle McMartin <[email protected]> Cc: Anton Blanchard <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Paul Mundt <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: William Lee Irwin III <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Christian Zankel <[email protected]> Cc: Philippe Elie <[email protected]> Cc: Nathan Scott <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Eric Dumazet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-03-21[MIPS] Separate CPU entries in /proc/cpuinfo with a blank line.Martin Michlmayr1-0/+1
Put in a blank line between CPU entries in /proc/cpuinfo, just like most other architectures (i386, ia64, x86_64) do. Signed-off-by: Martin Michlmayr <[email protected]> Signed-off-by: Ralf Baechle <[email protected]> ---
2006-03-21[MIPS] sys_mmap2 offset argument should always be shifted 12, not PAGE_SHIFT.H. Peter Anvin2-1/+8
This patch adjusts the offset argument passed into sys_mmap2 to be always shifted 12, even when the native page size isn't 4K. This is what all existing userspace libraries expect. Signed-off-by: H. Peter Anvin <[email protected]> Signed-off-by: Ralf Baechle <[email protected]> ---
2006-03-21[MIPS] War on whitespace: cleanup initial spaces followed by tabs.Ralf Baechle5-15/+15
Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Remove CONFIG_BUILD_ELF64.Ralf Baechle1-11/+0
This option is no longer usable with supported compilers. It will be replaced by usage of -msym32 in a separate patch. Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Further sparsification for 32-bit compat code.Atsushi Nemoto2-84/+88
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] fix wrong __user usage in _sysn32_rt_sigsuspendAtsushi Nemoto1-1/+2
Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Signal cleanupAtsushi Nemoto4-32/+16
Move function prototypes to asm/signal.h to detect trivial errors and add some __user tags to get rid of sparse warnings. Generated code should not be changed. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Reformat all of signal32.c with tabs instead of space for consistencyMartin Michlmayr1-6/+6
Signed-off-by: Martin Michlmayr <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Delete unused sys32_waitpid.Ralf Baechle1-6/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-03-18[MIPS] Protect more of timer_interrupt() by xtime_lock.Ralf Baechle1-2/+4
From Dave Johnson <[email protected]>: * do_timer() expects the arch-specific handler to take the lock as it modifies jiffies[_64] and xtime. * writing timerhi/lo in timer_interrupt() will mess up fixed_rate_gettimeoffset() which reads timerhi/lo. Signed-off-by: Ralf Baechle <[email protected]>
2006-03-14Input: pcspkr - separate device and driver registrationMichael Neuling2-0/+30
The current pcspkr code combines the device and driver registration. This patch splits these, putting the device registration in the arch specific code. PowerPC and MIPS only have the pcspkr present sometimes. Signed-off-by: Michael Neuling <[email protected]> Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-03-09[MIPS] Momentum: Resurrect after things were moved around a while ago.Ralf Baechle1-3/+5
Signed-off-by: Ralf Baechle <[email protected]>
2006-03-09[MIPS] Discard .exit.text at runtime.Ralf Baechle1-1/+3
At times gcc will place bits of __exit functions into .rodata. If compiled into the kernle itself we used to discard .exit.text - but not the bits left in .rodata. While harmless this did at times result in a large number of warnings. So until gcc fixes this, discard .exit.text at runtime. Signed-off-by: Ralf Baechle <[email protected]>
2006-03-01[MIPS] Use USECS_PER_SEC / HZ instead of tick_usec in do_gettimeofday.Atsushi Nemoto1-2/+3
The 'tick_usec' is USER_HZ period in usec. do_gettimeofday() should use kernel HZ value. Here is a patch for MIPS. It seems m32r, m68k and sparc have same problem though their HZ and USER_HZ are same for now. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-02-27[MIPS] Use generic compat routines for readdir, getdentsAtsushi Nemoto3-57/+3
Not just cleanup but also fixes O32 readdir(2) emulation. Signed-off-by: Atsushi Nemoto <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>