summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
Commit message (Collapse)AuthorAgeFilesLines
* take init_fs to saner placeAl Viro2008-12-311-1/+0
| | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6Linus Torvalds2008-12-281-2/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: (85 commits) [S390] provide documentation for hvc_iucv kernel parameter. [S390] convert ctcm printks to dev_xxx and pr_xxx macros. [S390] convert zfcp printks to pr_xxx macros. [S390] convert vmlogrdr printks to pr_xxx macros. [S390] convert zfcp dumper printks to pr_xxx macros. [S390] convert cpu related printks to pr_xxx macros. [S390] convert qeth printks to dev_xxx and pr_xxx macros. [S390] convert sclp printks to pr_xxx macros. [S390] convert iucv printks to dev_xxx and pr_xxx macros. [S390] convert ap_bus printks to pr_xxx macros. [S390] convert dcssblk and extmem printks messages to pr_xxx macros. [S390] convert monwriter printks to pr_xxx macros. [S390] convert s390 debug feature printks to pr_xxx macros. [S390] convert monreader printks to pr_xxx macros. [S390] convert appldata printks to pr_xxx macros. [S390] convert setup printks to pr_xxx macros. [S390] convert hypfs printks to pr_xxx macros. [S390] convert time printks to pr_xxx macros. [S390] convert cpacf printks to pr_xxx macros. [S390] convert cio printks to pr_xxx macros. ...
| * [S390] arch_setup_additional_pages argumentsMartin Schwidefsky2008-12-251-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arch_setup_additional_pages currently gets two arguments, the binary format descripton and an indication if the process uses an executable stack or not. The second argument is not used by anybody, it could be removed without replacement. What actually does make sense is to pass an indication if the process uses the elf interpreter or not. The glibc code will not use anything from the vdso if the process does not use the dynamic linker, so for statically linked binaries the architecture backend can choose not to map the vdso. Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
* | sh: add UIO support for JPU on SH7722.Takanari Hayama2008-12-221-0/+31
| | | | | | | | | | | | | | | | | | Add JPU support on Migo-R via UIO. This make use of Magnus's generic UIO platform driver. Chunk of contiguous memory to hold intermediate image and compressed data during encode and decode. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Conditionalize the code dumper on CONFIG_DUMP_CODE.Paul Mundt2008-12-221-1/+2
| | | | | | | | | | | | | | | | We don't really want this enabled by default, but it is still quite useful for debugging. So, make it conditional and leave it off by default. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Enable skipping of bss on debug platforms for sh32 also.Paul Mundt2008-12-221-2/+10
| | | | | | | | | | | | | | | | | | This enables the same functionality that sh64 has for sh32. When running on simulated hardware or via remote memory via the debug interface, memory is gauranteed to be zero on boot already, and skipping the zeroing of BSS has measurable boot time benefits. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off cf-enabler with extreme prejudice.Paul Mundt2008-12-223-170/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that the rest of the boards that were using cf-enabler "generically" have switched to setting up their mappings on their own, only the mach-se boards were left using it. All of the cf-enabler using mach-se boards use a special initialization of the MRSHPC windows rather than going through the special PTE as other SH-4 platforms do. This consolidates the MRSHPC setup logic, hooks it up on the boards that care, and gets rid of any and all remaining references to cf-enabler. This has been long overdue, as cf-enabler has been the bane of arch/sh/kernel for the last 7 years. Good riddance. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Simplify kernel_thread_helper() for sh32.Paul Mundt2008-12-221-15/+4
| | | | | | | | | | | | | | | | | | | | | | This can use the same implementation as sh64, the generated assembly is the same between the new and old version, so there is not much point in leaving it open coded in inline assembly. This is preparatory work for future consolidation of the _32/_64 variants. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off mv_heartbeat() from the machvec.Paul Mundt2008-12-222-10/+0
| | | | | | | | | | | | | | Nothing is using this any more, so get rid of it before anyone gets the bright idea to start using it again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off sh_bios_in_gdb_mode().Paul Mundt2008-12-221-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | With the reworked kgdb support, we always detach and reinitialize the stub. This was mostly a feature for handoffs between sh-ipl+g and the kgdb stub, but virtually no sh-ipl+g versions ever had this working right in the first place. Given that the sh-ipl+g stubs in general use today don't even support the GDB stub, and we have already killed off the special casing in the sh-sci serial driver, kill off this now unused symbol too. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: export sh_bios_get_node_addr() symbol for stnic module.Paul Mundt2008-12-221-2/+2
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Run sh_bios through a long overdue Lindent.Paul Mundt2008-12-221-36/+34
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide sdivsi3/udivsi3/udivdi3 for sh64, kill off libgcc linking.Paul Mundt2008-12-221-2/+0
| | | | | | | | | | | | | | This moves in the necessary libgcc bits and kills off the libgcc linking for sh64 kernels as well. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add SH-5 optimized memcpy()/memset()/strcpy()/strlen().Paul Mundt2008-12-221-0/+3
| | | | | | | | | | | | Adopted from the uClibc optimized string versions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off remaining CONFIG_SH_KGDB bits.Paul Mundt2008-12-221-1/+0
| | | | | | | | | | | | | | Now that we use the generic stub, kill off all of the left over references. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Generic kgdb stub support.Paul Mundt2008-12-2210-1122/+306
| | | | | | | | | | | | | | | | This migrates from the old bitrotted kgdb stub implementation and moves to the generic stub. In the process support for SH-2/SH-2A is also added, which the old stub never provided. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide linux/regset.h interface for SH-5.Paul Mundt2008-12-221-1/+185
| | | | | | | | | | | | Plugs in general and FPU regsets. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide asm/syscall.h for SH-5.Paul Mundt2008-12-222-31/+33
| | | | | | | | | | | | This provides the asm/syscall.h implementation for sh64 parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Handle cases where setup{_rt,}_frame() fail on SH-5 signal delivery.Paul Mundt2008-12-221-45/+48
| | | | | | | | | | | | | | | | Presently these cases are not handled properly due to the return value not being passed back. This needs to be correct to get proper behaviour out of things like the tracehook signal notifier, amongst others. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Convert sh64 /proc/asids to debugfs and generic sh.Paul Mundt2008-12-221-39/+0
| | | | | | | | | | | | | | | | | | | | | | This converts the sh64 /proc/asids entry to debugfs and enables it for all SH parts that have debugfs enabled. On MMU systems this can be used to determine which processes are using which ASIDs which in turn can be used for finer grained cache tag analysis. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Kill off sh64's unused alloc/free_task_struct() definitions.Paul Mundt2008-12-221-12/+0
| | | | | | | | | | | | | | | | These were left over from some time ago, sh64 never got around to defining __HAVE_ARCH_TASK_STRUCT_ALLOCATOR during the conversion, and it has no need to. Kill these off and use the generic versions instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Delete unnecessary mov in the interrupt exception entry point.Aoi Shinkai2008-12-221-2/+2
| | | | | | | | | | | | | | | | | | The INTEVT read at interrupt exception entry is uneccessary, as the read is deferred until we are ready to enter do_IRQ(). The kgdb nmi path still requires it, so move it there. Signed-off-by: Aoi Shinkai <shinkoi2005@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide ftrace_make_call()/ftrace_make_nop().Paul Mundt2008-12-221-0/+24
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: move the hp6xx pm codeMagnus Damm2008-12-223-90/+0
| | | | | | | | | | | | | | | | | | | | Move the not-so-generic pm code from arch/sh/kernel/pm.c to the platform directory together with the rest of the hp6xx pm code. This is done to let non-hp6xx platforms enable CONFIG_PM. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh7343 scif configuration updateMagnus Damm2008-12-221-2/+17
| | | | | | | | | | | | | | | | Fix interrupt values for the first sh7343 SCIF port and update the configuration to include the remaining 3 ones. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: propagate r_clkMagnus Damm2008-12-221-0/+2
| | | | | | | | | | | | | | | | Make sure the 32 KHz r_clk rate gets propagated correctly. Without this fix the clocks for RTC, CMT, KEYSC and RWDT are stuck at 0 Hz. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add support for SH7201 CPU subtype.Peter Griffin2008-12-226-4/+428
| | | | | | | | | | | | | | This patch adds support for the SH-2A FPU based SH7201 processor subtype. Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Split out the idle loop for reuse between _32/_64 variants.Paul Mundt2008-12-225-123/+83
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: do not latency trace idle.Paul Mundt2008-12-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Description snipped from Steven Rostedt's PPC patch: When idle is called, interrupts are blocked, but the idle function will still wake up on an interrupt. The problem is that the interrupt disabled latency tracer will take this call to idle as a latency. This patch disables the latency tracing when going into idle. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Tidy up backtrace formatting with kallsyms disabled.Paul Mundt2008-12-222-6/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add a simple code dumper for SUPERH32 show_regs().Paul Mundt2008-12-223-3/+578
| | | | | | | | | | | | | | | | | | | | This implements a simple show_code() that is in turn plugged in to show_regs() to provide minimal code dumping at the end of the trace. Built on top of a simple instruction disassembler derived from the binutils opcode table. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add a few more branch types to the branch emulator.Paul Mundt2008-12-221-6/+11
| | | | | | | | | | | | | | This plugs in some extra encodings for matching more bsr/bsrf/jsr branches. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: More movmem alias symbol exports for older compilers.Paul Mundt2008-12-221-0/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add exports for __udivsi3/__sdivsi3 and the _i4 versions.Paul Mundt2008-12-221-0/+4
| | | | | | | | | | | | Needed by older compilers. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Migrate necessary libgcc bits in to arch/sh/lib for SUPERH32.Paul Mundt2008-12-221-31/+5
| | | | | | | | | | | | | | | | This moves in the necessary libgcc bits for SUPERH32 and drops the libgcc linking for the regular targets. This in turn allows us to rip out quite a few hacks both in sh_ksyms_32 and arch/sh/Makefile. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: __udivdi3 -> do_div() in softfloat lib.Paul Mundt2008-12-221-32/+41
| | | | | | | | | | | | | | Inhibit the generation of __udivdi3 for the softfloat lib, use do_div() outright. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix clock framework compiler warnings.Paul Mundt2008-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | CC arch/sh/kernel/cpu/clock.o arch/sh/kernel/cpu/clock.c: In function 'clk_disable': arch/sh/kernel/cpu/clock.c:156: warning: 'return' with a value, in function returning void Introduced by ("sh: enable and disable clocks recursively"). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: dynamic ftrace support.Matt Fleming2008-12-223-44/+115
| | | | | | | | | | | | | | First cut at dynamic ftrace support. Signed-off-by: Matt Fleming <mjf@gentoo.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: remove old sh_mobile mstpc clocksMagnus Damm2008-12-225-93/+19
| | | | | | | | | | | | | | Remove the old sh_mobile mstpcr clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile usb clock framework supportMagnus Damm2008-12-222-2/+0
| | | | | | | | | | | | | | | | Add clock framework support to the usb/r8a66597 driver and adjust the cpu specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile usbf clock framework supportMagnus Damm2008-12-221-2/+1
| | | | | | | | | | | | | | | | Add clock framework support to the usbf/m66592 driver and adjust the cpu specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile i2c clock framework supportMagnus Damm2008-12-224-5/+5
| | | | | | | | | | | | | | | | Add clock framework support to the sh_mobile i2c driver and adjust the processor specific code accordingly. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile mstpcr clocks for sh7366Magnus Damm2008-12-221-0/+40
| | | | | | | | | | | | | | | | Add sh7366 mstpcr bits and information about their parent clocks. The datasheet is pretty clear about the clocks on this device. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile mstpcr clocks for sh7343Magnus Damm2008-12-221-0/+24
| | | | | | | | | | | | | | Add sh7343 mstpcr bits and information about their parent clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile mstpcr clocks for sh7723Magnus Damm2008-12-221-0/+50
| | | | | | | | | | | | | | | | Add sh7723 mstpcr bits and information about their parent clocks. The datasheet is pretty clear about the clocks on this device. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile mstpcr clocks for sh7722Magnus Damm2008-12-221-0/+25
| | | | | | | | | | | | | | Add sh7722 mstpcr bits and information about their parent clocks. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: new sh_mobile mstpcr clocks base codeMagnus Damm2008-12-221-4/+41
| | | | | | | | | | | | | | Add base code to handle new mstpcr clocks. Make sure clock rates propagate. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: use arch_flags for sh_mobile mstpcr clock bitsMagnus Damm2008-12-221-42/+30
| | | | | | | | | | | | | | Use arch_flags to keep track of register and flag number. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_mobile clock divider index fixMagnus Damm2008-12-221-10/+10
| | | | | | | | | | | | | | Use divider index value instead of divider value. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: enable and disable clocks recursivelyMagnus Damm2008-12-221-0/+10
| | | | | | | | | | | | | | Recurse and make sure parent clocks get enabled/disabled. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
OpenPOWER on IntegriCloud