Hugh Dickins
404351e67a
[PATCH] mm: mm_init set_mm_counters
...
How is anon_rss initialized? In dup_mmap, and by mm_alloc's memset; but
that's not so good if an mm_counter_t is a special type. And how is rss
initialized? By set_mm_counter, all over the place. Come on, we just need to
initialize them both at once by set_mm_counter in mm_init (which follows the
memcpy when forking).
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 21:40:38 -07:00
Ralf Baechle
030274ae03
Remove useless casts of kmalloc return values.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:50 +01:00
Andrew Isaacson
93ce2f524e
Add support for SB1A CPU.
...
Signed-Off-By: Andy Isaacson <adi@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:46 +01:00
Andrew Isaacson
d121ced21d
Sibyte fixes
...
Fix typo in cpu_probe_sibyte.
Signed-Off-By: Andy Isaacson <adi@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:45 +01:00
Ralf Baechle
f4c72cc737
Get 64-bit right in the kgdb stub.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2005-10-29 19:32:43 +01:00
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