Ralf Baechle
0d507d61cd
Sys_lookup_dcookie arguments occupy 4 argument slots.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:43 +01:00
Ralf Baechle
12616ed202
FPU emulator garbage collection.
...
First argument of fpu_emulator_cop1Handler() was unused.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:43 +01:00
Ralf Baechle
178086c86a
Don't print file name and line in die and die_if_kernel.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:42 +01:00
Ralf Baechle
9383292f17
Date: Fri Jan 14 03:03:23 2005 +0000
...
Locking cleanups.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:39 +01:00
Ralf Baechle
ec917c2c1a
Fixup a few lose ends in explicit support for MIPS R1/R2.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:37 +01:00
Ralf Baechle
101b3531a6
Protect manipulation of c0_status against preemption and multithreading.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:36 +01:00
Ralf Baechle
8afcb5d829
Detect 4KSD and treat it like 4KSc.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:36 +01:00
Ralf Baechle
57468af326
Define and initialize kdb_lock using DEFINE_SPINLOCK.
...
Convert kgdb_cpulock into a raw_spinlock_t.
SPIN_LOCK_UNLOCKED is deprecated and it's replacement DEFINE_SPINLOCK is
not suitable for arrays of spinlocks.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:35 +01:00
Ralf Baechle
f8bb3af924
Make kgdb_wait static.
...
Nothing outside gdb-stub.c uses kgdb_wait, so change it's definition to
static.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:34 +01:00
Ralf Baechle
02cf211968
Cleanup the mess in cpu_cache_init.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:32 +01:00
Ralf Baechle
c78cbf49c4
Support for MIPSsim, the cycle accurate MIPS simulator.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:30 +01:00
Ralf Baechle
b288f13587
Switch Sibyte profiling driver to ->compat_ioctl
...
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:29 +01:00
Daniel Jacobowitz
ea3d710fe5
Revise MIPS 64-bit ptrace interface
...
Change the N32 debugging ABI to something more sane, and add support
for o32 and n32 debuggers to trace n64 programs.
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:29 +01:00
Ralf Baechle
0bf0e3e279
Fix excessive signal latencies.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:23 +01:00
Ralf Baechle
5bcb9a58e6
Move genrtc.c's functions into <asm/rtc.h>
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:15 +01:00
Ralf Baechle
340ee4b98c
Virtual SMP support for the 34K.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:10 +01:00
Ralf Baechle
d03d0a5775
MT bulletproofing.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:09 +01:00
Ralf Baechle
e027802e98
Display presence of SmartMIPS, DSP and MT ASEs in /proc/cpuinfo.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:05 +01:00
Ralf Baechle
3bffe736d9
Delete old junk.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:04 +01:00
Ralf Baechle
28a7879d8c
Spelling fix.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:03 +01:00
Ralf Baechle
d9912d8784
Inlining will result in back-to-back mtc0 mfc0 instructions. Break the
...
hazard by using back_to_back_c0_hazard().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:00 +01:00
Ralf Baechle
8d9c62675d
sys is only used for native o32 ...
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:58 +01:00
Thiemo Seufer
075e7502d9
R4600 has 32 FPRs.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:58 +01:00
Ralf Baechle
ae1b3d51c8
Make sure that the processor is actually online or die spectacularly.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:55 +01:00
Ralf Baechle
1d40cfcd34
Avoid SMP cacheflushes. This is a minor optimization of startup but
...
will also avoid smp_call_function from doing stupid things when called
from a CPU that is not yet marked online.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:54 +01:00
Pete Popov
bdf21b18b4
Philips PNX8550 support: MIPS32-like core with 2 Trimedias on it.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:54 +01:00
Ralf Baechle
e01402b115
More AP / SP bits for the 34K, the Malta bits and things. Still wants
...
a little polishing.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:53 +01:00
Ralf Baechle
7e35952baa
Move Origin crapola into a machine-specific header file.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:52 +01:00
Ralf Baechle
a0c3a5b5a8
Prevent gcc from optimizing a few functions away completly.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:52 +01:00
Ralf Baechle
8f40611d2b
Detect the MIPS R2 vectored interrupt, external interrupt controller
...
options and the precense of the MT ASE.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:51 +01:00
Ralf Baechle
55d04dff0f
New kernel option nowait allows disabling the use of the wait instruction.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:48 +01:00
Ralf Baechle
569f75bd02
Use an irq_enable_hazard hazard barrier in unmask_mips_irq. This
...
hasn't been an actual bug, so it's more a change to be 100% compliant
with the requirements of the architecture spec. Similar fix to
mask_mips_irq where there was a slightly less theoretical chance of
getting hit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:48 +01:00
Ralf Baechle
7db36c858c
Add inotify syscalls for MIPS.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:47 +01:00
Ralf Baechle
ec74e361f1
Mark a few variables __read_mostly.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:46 +01:00
Ralf Baechle
bbc7f22f6d
Detect the 34K.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:45 +01:00
Ralf Baechle
129bc8f78b
Setup_frame is now returning a success value.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:41 +01:00
Ralf Baechle
b490ff4270
Temporary hack for Qemu and MIPSsim until they get a proper ELF loader.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:41 +01:00
Ralf Baechle
6e760c8dae
Rename CONFIG_CPU_MIPS{32,64} to CONFIG_CPU_MIPS{32|64}_R1.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:37 +01:00
Ralf Baechle
c134a5ecdb
Avoid defining variables in the middle of a block which breaks older
...
compilers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:33 +01:00
Maciej W. Rozycki
c4559f67b7
Always use ".set mips3" rather than select between "mips2" or "mips3"
...
for assembling ll/sc sequences to avoid problems with 64-bit
configurations.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:31 +01:00
Maciej W. Rozycki
3b2396d972
Use correct names for bits in the R3k cp0.status register.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:29 +01:00
Maciej W. Rozycki
260c96738c
Mark __die() "noreturn" for real.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:26 +01:00
Ralf Baechle
02416dcf5a
Redo RM9000 workaround which along with other DSP ASE changes was
...
causing some headache for debuggers knowing about signal frames.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:23 +01:00
Maciej W. Rozycki
aac8aa7717
Enable a suitable ISA for the assembler around ll/sc so that code
...
builds even for processors that don't support the instructions.
Plus minor formatting fixes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:22 +01:00
Maciej W. Rozycki
d5b6f1db5d
For MIPS32/MIPS64 cp0.config.mt == 1 implies a standard (R4k-style)
...
TLB, so no need to set it separately for each implementation.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:19 +01:00
Ralf Baechle
e50c0a8fa6
Support the MIPS32 / MIPS64 DSP ASE.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:17 +01:00
Ralf Baechle
10f650db1b
64-bit fixes for Alchemy code ;)
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:17 +01:00
Ralf Baechle
f8280c8d3d
Fix tasteless #ifdef mess in audit_arch(), minor cleanups.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:16 +01:00
Ralf Baechle
1d74f6bc85
__compute_return_epc() uses CFC1 instruction which might result in a
...
coprocessor unusable exception since the process can lose its fpu
context by preemption.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:13 +01:00
Maciej W. Rozycki
d547c5cc21
sys_nfsservctl() needs translation.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:31:13 +01:00