aboutsummaryrefslogtreecommitdiff
path: root/include/asm-mips/system.h
AgeCommit message (Collapse)AuthorFilesLines
2007-11-29IP22ZILOG: fix lockup and sysrqThomas Bogendoerfer1-2/+0
- fix lockup when switching from early console to real console - make sysrq reliable - fix panic, if sysrq is issued before console is opened Signed-off-by: Thomas Bogendoerfer <[email protected]> Acked-by: Ralf Baechle <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-11-26[MIPS] Fix context DSP context / TLS pointer switching bug for new threads.Ralf Baechle1-2/+6
A new born thread starts execution not in schedule but rather in ret_from_fork which results in it bypassing the part of the code to load a new context written in C which are the DSP context and the userlocal register which Linux uses for the TLS pointer. Frequently we were just getting away with this bug for a number of reasons: o Real world application scenarios are very unlikely to use clone or fork in blocks of DSP code. o Linux by default runs the child process right after the fork, so the child by luck will find all the right context in the DSP and userlocal registers. o So far the rdhwr instruction was emulated on all hardware so userlocal wasn't getting referenced at all and the emulation wasn't suffering from the issue since it gets it's value straight from the thread's thread_info. Fixed by moving the code to load the context from switch_to() to finish_arch_switch which will be called by newborn and old threads. Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] checkfiles: Fix "need space after that ','" errors.Ralf Baechle1-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2007-10-11[MIPS] Fix "no space between function name and open parenthesis" warnings.Ralf Baechle1-3/+3
Signed-off-by: Ralf Baechle <[email protected]>
2007-10-03[MIPS] Type proof reimplementation of cmpxchg.Ralf Baechle1-260/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-31[MIPS] Fixup secure computing stuff.Ralf Baechle1-3/+5
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-20[MIPS] User stack pointer randomisationFranck Bui-Huu1-1/+1
Signed-off-by: Franck Bui-Huu <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2007-07-20[MIPS] Make support for weakly ordered LL/SC a config option.Ralf Baechle1-4/+4
None of weakly ordered processor supported in tree need this but it seems like this could change ... Signed-off-by: Ralf Baechle <[email protected]>
2007-07-19[PATCH] sched: sched_cacheflush is now unusedRalf Baechle1-10/+0
Since Ingo's recent scheduler rewrite which was merged as commit 0437e109e1841607f2988891eaa36c531c6aa6ac sched_cacheflush is unused. Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
2007-07-10[MIPS] Non-FPAFF: Fix warning.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-10[MIPS] Enable support for the userlocal hardware registerRalf Baechle1-0/+2
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 Baechle1-7/+5
Signed-off-by: Ralf Baechle <[email protected]>
2007-05-11[MIPS] Define and use vi_handler_t for vectored interrupt handlers.Ralf Baechle1-1/+4
Signed-off-by: Ralf Baechle <[email protected]>
2007-05-09wrap access to thread_infoRoman Zippel1-1/+1
Recently a few direct accesses to the thread_info in the task structure snuck back, so this wraps them with the appropriate wrapper. Signed-off-by: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-05-08Remove tas()Jeff Dike1-1/+0
tas() has no users, so get rid of it. Signed-off-by: Jeff Dike <[email protected]> Cc: <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-05-08local_t: mips extensionMathieu Desnoyers1-1/+124
Signed-off-by: Mathieu Desnoyers <[email protected]> Cc: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-03-17[MIPS] Lockdep: Fix recursion bug.Ralf Baechle1-8/+8
trace_hardirqs_off -> atomic_inc -> local_irq_restore -> trace_hardirqs_off Signed-off-by: Ralf Baechle <[email protected]>
2007-02-13[MIPS] Improve branch prediction in ll/sc atomic operations.Ralf Baechle1-4/+16
Now that finally all supported versions of binutils have functioning support for .subsection use .subsection to tweak the branch prediction I did not modify the R10000 errata variants because it seems unclear if this will invalidate the workaround which actually relies on the cheesy prediction of branch likely to cause a misspredict if the sc was successful. Signed-off-by: Ralf Baechle <[email protected]>
2006-12-10[MIPS] Move die and die_if_kernel() from system.h to ptrace.hRalf Baechle1-9/+0
This eleminates the need to include ptrace.h into system.h and fixes a harmless namespace conflict on the PC symbol in bpck.c. Signed-off-by: Ralf Baechle <[email protected]>
2006-12-04[MIPS] Cleanup memory barriers for weakly ordered systems.Ralf Baechle1-146/+10
Also the R4000 / R4600 LL/SC instructions imply a sync so no explicit sync needed. Signed-off-by: Ralf Baechle <[email protected]>
2006-11-02[MIPS] Don't use R10000 llsc workaround version for all llsc-full processors.Ralf Baechle1-1/+1
Found and original patch by [email protected]. Signed-off-by: Ralf Baechle <[email protected]>
2006-07-14[PATCH] remove set_wmb - arch removalSteven Rostedt1-3/+0
set_wmb should not be used in the kernel because it just confuses the code more and has no benefit. Since it is not currently used in the kernel this patch removes it so that new code does not include it. All archs define set_wmb(var, value) to do { var = value; wmb(); } while(0) except ia64 and sparc which use a mb() instead. But this is still moot since it is not used anyway. Hasn't been tested on any archs but x86 and x86_64 (and only compiled tested) Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-07-13[MIPS] TRACE_IRQFLAGS_SUPPORT support.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-26Don't include linux/config.h from anywhere else in include/David Woodhouse1-1/+0
Signed-off-by: David Woodhouse <[email protected]>
2006-04-19[MIPS] FPU affinity for MT ASE.Ralf Baechle1-0/+32
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Fix vectored interrupt support in TLB exception handler generator.Ralf Baechle1-0/+1
Signed-off-by: Ralf Baechle <[email protected]>
2006-04-19[MIPS] Make set_vi_srs_handler static.Ralf Baechle1-1/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-03-21[MIPS] Reformat __xchg().Ralf Baechle1-4/+4
Signed-off-by: Ralf Baechle <[email protected]>
2006-02-27[MIPS] Use "=R" constraint to avoid compiler errors in cmpxchg().Ralf Baechle1-4/+4
Signed-off-by: Ralf Baechle <[email protected]>
2006-01-12[PATCH] mips: task_pt_regs()Al Viro1-1/+1
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-01-12[PATCH] sched: add cacheflush() asmIngo Molnar1-0/+10
Add per-arch sched_cacheflush() which is a write-back cacheflush used by the migration-cost calibration code at bootup time. Signed-off-by: Ingo Molnar <[email protected]> Cc: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-10-29Don't print file name and line in die and die_if_kernel.Ralf Baechle1-9/+7
Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Sprinkle a few more .set mipsX over xchg to make sure we dont' end up withRalf Baechle1-0/+4
64-bit instructions on 32-bit processors, they tend to be unhappy about that kind of food ;-) Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Remove workaround for binutils 2.15 assembler bug; this version is notRalf Baechle1-8/+0
suitable to reliably build kernels anymore anyway and 2.16 has this fixed. Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Add missing space.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29More AP / SP bits for the 34K, the Malta bits and things. Still wantsRalf Baechle1-0/+4
a little polishing. Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29More .set to keep 32-bit processors happy.Ralf Baechle1-0/+4
Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Always use ".set mips3" rather than select between "mips2" or "mips3"Maciej W. Rozycki1-5/+5
for assembling ll/sc sequences to avoid problems with 64-bit configurations. Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Mark __die() "noreturn" for real.Maciej W. Rozycki1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Enable a suitable ISA for the assembler around ll/sc so that codeMaciej W. Rozycki1-4/+20
builds even for processors that don't support the instructions. Plus minor formatting fixes. Signed-off-by: Ralf Baechle <[email protected]>
2005-10-29Support the MIPS32 / MIPS64 DSP ASE.Ralf Baechle1-3/+8
Signed-off-by: Ralf Baechle <[email protected]>
2005-09-05[PATCH] mips: clean up 32/64-bit configurationRalf Baechle1-2/+2
Start cleaning 32-bit vs. 64-bit configuration. Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-06-25[PATCH] sched: cleanup context switch lockingNick Piggin1-8/+2
Instead of requiring architecture code to interact with the scheduler's locking implementation, provide a couple of defines that can be used by the architecture to request runqueue unlocked context switches, and ask for interrupts to be enabled over the context switch. Also replaces the "switch_lock" used by these architectures with an oncpu flag (note, not a potentially slow bitflag). This eliminates one bus locked memory operation when context switching, and simplifies the task_running function. Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2005-04-16Linux-2.6.12-rc2Linus Torvalds1-0/+438
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!