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
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
260c96738c
Mark __die() "noreturn" for real.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:26 +01:00
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
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
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
e50c0a8fa6
Support the MIPS32 / MIPS64 DSP ASE.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:17 +01:00
10f650db1b
64-bit fixes for Alchemy code ;)
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:17 +01:00
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
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
d547c5cc21
sys_nfsservctl() needs translation.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:13 +01:00
b382fe8483
No point in checking cpu_has_tlb before we've computed the CPU options.
...
So for now we just unconditionally set the option - Linux wouldn't
work without a TLB anyway.
Setting MIPS_CPU_4KTLB was missing for Alchemy and Sandcraft, add that
back.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:13 +01:00
4194318c39
Cleanup decoding of MIPSxx config registers.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:12 +01:00
cd21dfcfbb
Fix preemption and SMP problems in the FP emulator code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:12 +01:00
cce812c99c
Ustat needs a wrapper on n32.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:08 +01:00
1fcf1cc742
We pass a kernel pointer to do_sigaltstack in sys32_sigaltstack, so
...
we need to do the set_fs(KERNEL_DS) thing around this call.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:06 +01:00
3c37026d43
NPTL, round one.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:06 +01:00
f03da6e28e
Fix BogoMIPS display on UP and some minor cosmetical things.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:05 +01:00
589391a0fe
fcntl64 needs to be wrapped for n32.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:04 +01:00
05b8042ac6
Fix one more case of computing the return EPC after the registers have
...
already been modified.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:04 +01:00
6dd0468852
When simulating ll/sc compute the return EPC before modifying the
...
registers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:04 +01:00
2b07bd0235
Detect the 4KEcR2 and for now detect handle it like the 4KEc.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:03 +01:00
fe359bf584
Fixed buglet with previous patch that broke non au1x builds.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:02 +01:00
494900af68
Remove CONFIG_PM dependency from au1x wait in cpu_probe.
...
Additional work necessary to completely remove that config option.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:02 +01:00
1b3a6e975c
Fix 64bit SMP TLB handler and stack frame handling, optimize 32bit SMP
...
TLB handlers a bit, match definitions in pgtable-{32,64}.h better.
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:31:00 +01:00
209ac8ddb1
Use compat_sigval_t in struct compat_siginfo.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:58 +01:00
1592dac241
Reformatting, remove debugging code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:57 +01:00
b4dbf95e30
Get rid of the the remains of 2.4-style ramdisk support.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:57 +01:00
71e0e556db
Multithreaded core dumps.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:56 +01:00
90a67b5909
sys_futex has 6 arguments.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:55 +01:00
9ff77c469e
Export shm_align_mask and flush_data_cache_page.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:54 +01:00
77c728c224
Gcc 4.0 fixes.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:53 +01:00
cdaed73afb
Fix preemption bug.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:51 +01:00
fe00f943e0
Sparseify MIPS.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:50 +01:00
14f18b7f7e
On 24K we did always disable cache parity protection - obviously not
...
the greatest thing to do. Try to enable parity protection, check if
we actually succeeded and print a message about the outcome of this.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:49 +01:00
0f04afb595
ISOify.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:48 +01:00
e3ad1c23ba
Base Au1200 2.6 support.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:47 +01:00
784f7b9d89
Fix 'prctl' system call for IRIX. At this point IRIX 5.3 static binaries
...
are now working for 80% of the ones I have tried. The other ones that do
not work all fail in the same way with the same messages. Once that bug
is tracked down, we should be in good shape. Task locking still needs
some work.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:47 +01:00
8ab00b9a02
Convert struct hw_interrupt_type initializations to ISO C99 named
...
initializers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:46 +01:00
b727a60258
Merge do_boot_cpu() into the new style __cpu_up().
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:43 +01:00
0ac354801a
On multiprocessor systems the BogoMIPS for each CPU was reported was
...
the value for the last CPU having calibrated it's delay loop.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:42 +01:00
dc953df1ba
Fix wchan implementation, based on earlier by from Atsushi Nemoto.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:40 +01:00
4e6a05fe5f
Improved modules loader, more robust and works on 64bit kernels.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:39 +01:00
7ee8798f37
Until I figure out why NFS filesystems are having problems with
...
the 'load_irix_binary' and having kernel faults, Irix support is
disabled. I suspect locking of some sort, but I will now have to
investigate further.
Static IRIX binaries are now being detected properly and are using the
ELF interpreter found in this file.
Signed-off-by: Steven J. Hill <sjhill@realitydiluted.com >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:39 +01:00
d1abb6a2b8
32-bit compatibility for various timer-related system calls.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:37 +01:00
a982099ca5
Update to match the native siginfo structure and code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:36 +01:00
09276d905e
32-bit compatibility for ptrace GETEVENTMSG operation.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:36 +01:00
54f2da755b
Implement 32-bit compatibility for waitid(2).
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:35 +01:00
a19050f301
Waitid(2) now has 5 arguments.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:34 +01:00
b6e203d84d
Use generic compat_sys_wait4 to implement 32-bit wait4(2).
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2005-10-29 19:30:34 +01:00