Macros to access the register of processors using the new MIPS
...
Multithreading ASE, also know as MT ASE.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/include/asm-mips/mipsmtregs.h b/include/asm-mips/mipsmtregs.h
new file mode 100644
Ralf Baechle
commited 2005-10-29 19:31:51 +01:00
699dbc90e8
Fix the fixup_bigphys_addr compile problem.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:31:50 +01:00
f10fae0240
Removed __ilog2 since it's no longer needed and conflicts with the
...
generic one.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:31:49 +01:00
10f6567e63
A few more macros to access MIPS R2 architecture registers.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:49 +01:00
7a0fc58cd9
Add EF_MIPS_ARCH_32R2 and EF_MIPS_ARCH_64R2 for tagging of R2 binaries.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:47 +01:00
97fb5de194
Add a few more SHN_MIPS_* symbols from glibc.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:47 +01:00
f039b5d366
Add inotify syscalls for MIPS.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:47 +01:00
7db36c858c
MIPS R2 instruction hazard handling.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:46 +01:00
cc61c1fede
Detect the 34K.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:45 +01:00
bbc7f22f6d
Use ei / di MIPS32 R2 instructions if available.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:44 +01:00
ff88f8a3d2
Use clz / dclz on MIPS32 / MIPS64 processors.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:43 +01:00
6590326505
Define kmap_atomic_pfn() for MIPS.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:42 +01:00
60080265a1
Fix endianess bugs.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:41 +01:00
c0ec406c80
Protect noat assembly with .set push/pop and make it somewhat readable.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:40 +01:00
04988d6fda
Fix get_saved_sp for 64bit address space. Simplify set_save_sp.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:39 +01:00
9556ac2fa1
IP30 Identification.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thiemo Seufer <ths@networkno.de>
Thiemo Seufer
authored and
Ralf Baechle
commited 2005-10-29 19:31:39 +01:00
4552074577
Rename CONFIG_CPU_MIPS{32,64} to CONFIG_CPU_MIPS{32|64}_R1.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:37 +01:00
6e760c8dae
Use physical addresses at the interface level, letting drivers remap
...
them as appropriate.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:35 +01:00
a5fc9c0bbe
Prevent 64-bit constants from being cropped to 32 bits when used in C code.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:34 +01:00
7d7ee22121
Inline ioremap() calls for constant addresses that map to KSEG1.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:34 +01:00
c3455b0efc
More .set to keep 32-bit processors happy.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:33 +01:00
7222424e2e
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>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:31 +01:00
c4559f67b7
System-specific handling of bus errors for DECstation variations
...
supporting parity errors only for memory (Pmax/3min/Maxine).
Fixes for resources decoded by the KN04/KN05 MB ASIC. Additional
clean-ups for the ECC handler.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:30 +01:00
64dac503e8
Get the thing to compile again ...
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:28 +01:00
e20368d5df
Use macros for the RM7k cp0.config bits instead of magic numbers.
...
Minor clean-ups.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:28 +01:00
c6ad7b7d3c
Mark __die() "noreturn" for real.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:26 +01:00
260c96738c
GCC 4.0.0 broke `attribute(("alias"))' -- resort to an assembly variant.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:24 +01:00
a76f9fe122
Deal with the bloody KSEG vs CKSEG horror...
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:23 +01:00
3bd4c902da
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>
Ralf Baechle
commited 2005-10-29 19:31:23 +01:00
02416dcf5a
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>
Maciej W. Rozycki
authored and
Ralf Baechle
commited 2005-10-29 19:31:22 +01:00
aac8aa7717
Remove dead code which was causing warnings.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:19 +01:00
478489dd2c
Fix build with CONFIG_PRINTK disabled.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:18 +01:00
ac130ac494
Support the MIPS32 / MIPS64 DSP ASE.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:17 +01:00
e50c0a8fa6
Fix build for CONFIG_BUG=n. Yes, bugs are now a compile time option ;-)
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:17 +01:00
ffd099bd33
Bugs are now a configuration option.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:15 +01:00
fdb551a4c5
On MIPS the struct sigev preamble is only 8 bytes.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:15 +01:00
629c83f89b
Now that a struct is the only member left in struct
...
mips_fpu_emulator_stats cleanup that unnecessary nesting of structs.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:14 +01:00
4a99d1e25b
Get rid of the eir struct mips_fpu_emulator_private member. It's
...
never initialized been initialized anywhere, just saved to and
restored from signal frames so nonsense anyway. As neat side effect
of being shared between all processors it was also abusable as a
nice covert channel between processes.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:14 +01:00
baee502ce2
__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
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
Better interface to run uncached cache setup code.
...
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:11 +01:00
ba5187dbb4
* use 'unsigned long' as address supplied to au_write[bwl]()
...
* remove two already unused and commented structures
* added an ULL suffix to several address constants that use bits 35-32
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Pete Popov
authored and
Ralf Baechle
commited 2005-10-29 19:31:10 +01:00
7de8d23287
Fix D-cache aliasing problem in the PIO IDE driver potencially resulting
...
in the kernel or userspace seeing stale data.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:09 +01:00
9447cbfc7a
Fix a few build warnings.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:09 +01:00
ecba36dad8
Need to include smp.h for the definition of smp_processor_id().
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:08 +01:00
88de09f351
Move sync into the delay slot here also.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:08 +01:00
b63014ad2d
NPTL, round one.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:06 +01:00
3c37026d43
Build fix for certain configurations.
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle
commited 2005-10-29 19:31:05 +01:00
38551576a3
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
Use fixed up pfn.
...
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:03 +01:00
ac5d8c022f