__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>
Ralf Baechle
commited 2005-10-29 19:31:13 +01:00
1d74f6bc85
sys_nfsservctl() needs translation.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:13 +01:00
d547c5cc21
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>
Ralf Baechle
commited 2005-10-29 19:31:13 +01:00
b382fe8483
Cleanup decoding of MIPSxx config registers.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:12 +01:00
4194318c39
Fix preemption and SMP problems in the FP emulator code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:12 +01:00
cd21dfcfbb
Ustat needs a wrapper on n32.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:08 +01:00
cce812c99c
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>
Ralf Baechle
commited 2005-10-29 19:31:06 +01:00
1fcf1cc742
NPTL, round one.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:06 +01:00
3c37026d43
Fix BogoMIPS display on UP and some minor cosmetical things.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:05 +01:00
f03da6e28e
fcntl64 needs to be wrapped for n32.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:04 +01:00
589391a0fe
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>
Ralf Baechle
commited 2005-10-29 19:31:04 +01:00
05b8042ac6
When simulating ll/sc compute the return EPC before modifying the
...
registers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:04 +01:00
6dd0468852
Detect the 4KEcR2 and for now detect handle it like the 4KEc.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:03 +01:00
2b07bd0235
Fixed buglet with previous patch that broke non au1x builds.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:31:02 +01:00
fe359bf584
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>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:31:02 +01:00
494900af68
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>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:00 +01:00
1b3a6e975c
Use compat_sigval_t in struct compat_siginfo.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:58 +01:00
209ac8ddb1
Reformatting, remove debugging code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:57 +01:00
1592dac241
Get rid of the the remains of 2.4-style ramdisk support.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:57 +01:00
b4dbf95e30
Multithreaded core dumps.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:56 +01:00
71e0e556db
sys_futex has 6 arguments.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:30:55 +01:00
90a67b5909
Export shm_align_mask and flush_data_cache_page.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:54 +01:00
9ff77c469e
Gcc 4.0 fixes.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:53 +01:00
77c728c224
Fix preemption bug.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:51 +01:00
cdaed73afb
Sparseify MIPS.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:50 +01:00
fe00f943e0
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>
Ralf Baechle
commited 2005-10-29 19:30:49 +01:00
14f18b7f7e
ISOify.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:48 +01:00
0f04afb595
Base Au1200 2.6 support.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:30:47 +01:00
e3ad1c23ba
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>
Steven J. Hill
authored and
Ralf Baechle
commited 2005-10-29 19:30:47 +01:00
784f7b9d89
Convert struct hw_interrupt_type initializations to ISO C99 named
...
initializers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:46 +01:00
8ab00b9a02
Merge do_boot_cpu() into the new style __cpu_up().
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:43 +01:00
b727a60258
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>
Ralf Baechle
commited 2005-10-29 19:30:42 +01:00
0ac354801a
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>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:30:40 +01:00
dc953df1ba
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>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:30:39 +01:00
4e6a05fe5f
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>
Steven J. Hill
authored and
Ralf Baechle
commited 2005-10-29 19:30:39 +01:00
7ee8798f37
32-bit compatibility for various timer-related system calls.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:37 +01:00
d1abb6a2b8
Update to match the native siginfo structure and code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:36 +01:00
a982099ca5
32-bit compatibility for ptrace GETEVENTMSG operation.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:36 +01:00
09276d905e
Implement 32-bit compatibility for waitid(2).
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:35 +01:00
54f2da755b
Waitid(2) now has 5 arguments.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:34 +01:00
a19050f301
Use generic compat_sys_wait4 to implement 32-bit wait4(2).
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:34 +01:00
b6e203d84d
Document why calling smp_call_function will deadlock when called with
...
interrupts disabled.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:30 +01:00
57f0060b8a
Use preempt_schedule_irq.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:27 +01:00
a18815abcd
Mask and ack CPU interrupts upon initialization. Keep the state
...
of software interrupts when unmasking.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:30:24 +01:00
925ddb04c5
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
...
Fix TASK_SIZE for 32-bit processes on 64-bit kernels.
Ralf Baechle
commited 2005-10-29 19:30:19 +01:00
c6237645d1
Fix register layout in o32 core dumps on 64-bit systems.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:19 +01:00
b053c98fbb
Get rid of early_init. There's more need to make this form of
...
initialization actually useful and as is certainly unmergable with
upstream.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:18 +01:00
c83cfc9c94
Dummy ISA DMA functions for systems that don't have ISA but share
...
drivers with ISA such as legacy free PCI.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:17 +01:00
8c93650890
Fix build with SMP disabled and preemption enabled.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:30:17 +01:00
b188ffe876
Move the invalid pmd and pte tables from .data to .bss. Fix alignment.
...
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:30:16 +01:00
0964ce24d0