aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel
AgeCommit message (Collapse)AuthorFilesLines
2008-09-08sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.Paul Mundt1-1/+1
Presently this is doing a force_sig() SIGTRAP, which is already taken care of in the generic code if no one asserts NOTIFY_STOP. Switch the default return to NOTIFY_DONE in the case of unhandled traps, so that the same trap may pass through to other users on the same die chain. Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: kprobes: Use trapa #0x3a for breakpoint trap.Paul Mundt1-2/+1
Not all parts support trapa #0xff, so use something within the debug trap range that's accessible on all parts. Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: kprobes: Hook up kprobe_fault_handler() in the page fault path.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Mark kretprobe_trampoline_holder static and __used.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Enable IRLM mode for SH7760 IRQ_MODE_IRQ.Luca Santini1-0/+5
Follows the same setting as SH7750. Signed-off-by: Luca Santini <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Add kprobes support.Chris Smith3-0/+574
Initial support for kprobes/kretprobes for 32-bit SH platforms. [ General cleanup and some rework for the kretprobe hash lock. -- PFM ] Signed-off-by: Chris Smith <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: fix the TMU code to allow a fully running NO_HZ systemFrancesco Virlinzi1-58/+119
This patch fixes the TMU code to allow NO_HZ to work on sh Signed-off-by: Francesco Virlinzi <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Subnormal double to float conversionCarl Shaw2-1/+53
This patch adds support for the SH4 to convert a subnormal double into a float by catching the FPE and implementing the FCNVDS instruction in software. Signed-off-by: Carl Shaw <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Fix an unusual memory initialisation error.Stuart Menefy1-4/+6
This fixes a problems with the set up of Linux memory: - When reserving memory at boot time, the code previously reserved the bottom page of memory, and then from one page up to the end of the bootmap. This had the desired effect, but was strictly speaking wrong, as the one page was actually whatever CONFIG_ZERO_PAGE_OFFSET had been set to. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Fix up broken 32-bit initrd support.Stuart Menefy1-8/+9
Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: fixup many sparse errors.Paul Mundt14-52/+63
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Display CPU information in show_regs().Paul Mundt1-3/+9
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: Early dummy clockevent registration on boot CPU.Paul Mundt1-3/+4
The dummy timer needs to be registered on the boot CPU before the system timer clockevent is registered, or broadcasting doesn't work as advertized. Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: smp: shove a cpu_relax() in the plat_start_cpu() busy loop.Paul Mundt1-1/+1
Without this, certain versions of GCC will happily optimize the entire loop out. Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: generic clockevent broadcast support.Paul Mundt4-4/+70
This hooks up GENERIC_CLOCKEVENTS_BROADCAST and a dummy local timer, which we call in to from the timer IPI when no other local timer is provided. Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: smp: Hook up a timer IPI stub.Paul Mundt1-0/+18
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: smp: Hook in to the generic IPI handler for SH-X3 SMP.Paul Mundt1-41/+24
Signed-off-by: Paul Mundt <[email protected]>
2008-09-08sh: smp: Provide a generic IPI handler.Paul Mundt1-1/+19
This provides a generic smp_message_recv() routine (based on the PPC one), that IPI IRQs can wrap in to. Signed-off-by: Paul Mundt <[email protected]>
2008-09-05sh64: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y.Paul Mundt1-10/+4
Follows the SH change. Signed-off-by: Paul Mundt <[email protected]>
2008-09-05sh: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y.Carmelo Amoroso1-24/+3
This patch fixes a problem within the SH implementation of resume_kernel code, that implements in assembly the bulk of preempt_schedule_irq function without taking care of the extra code needed to handle the BKL preemptible. The patch basically consists of removing this asm code and calling the common C implementation (see kernel/sched.c) as other archs do. Another change is the missing 'cli' macro invocation at the beginning of the resume_kernel. Signed-off-by: Giuseppe Cavallaro <[email protected]> Signed-off-by: Carmelo Amoroso <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-28sh: fix semtimedop syscallYoshihiro Shimoda1-1/+1
fix the problem that cannot work semtimedop system call. Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-28sh: fix kexec entry point for crash kernelsMagnus Damm1-1/+1
The crash kernel entry point is currently checked by the kexec kernel code and only physical addresses in the reserved memory window are accepted. This means that we can't pass P2 or P1 addresses as entry points in the case of crash kernels. This patch makes sure we can start crash kernels by adding support for physical address entry points. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-28sh: crash kernel resource fixMagnus Damm1-5/+1
The reserved crash kernel memory range is currently missing from /proc/iomem. crashk_res is mistakenly setup after __add_active_range(). Reorder things to make sure the resource shows up in /proc/iomem. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-25sh: fix ptrace_64.c:user_disable_single_step()Adrian Bunk1-0/+2
This patch fixes the following compile error caused by commit c459dbf294b4a3d70490a468a7ca3907fb2c2f57 (sh: ptrace single stepping cleanups.): <-- snip --> ... CC arch/sh/kernel/ptrace_64.o arch/sh/kernel/ptrace_64.c: In function 'user_disable_single_step': arch/sh/kernel/ptrace_64.c:134: error: 'regs' undeclared (first use in this function) arch/sh/kernel/ptrace_64.c:134: error: (Each undeclared identifier is reported only once arch/sh/kernel/ptrace_64.c:134: error: for each function it appears in.) ... make[2]: *** [arch/sh/kernel/ptrace_64.o] Error 1 <-- snip --> Reported-by: Adrian Bunk <[email protected]> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-11sh: export sh7723 VEU as VEU2HMagnus Damm1-2/+2
Export sh7723 VEU hardware blocks as VEU2H. The sh7723 VEU2H differs a bit from the sh7722 VEU so use different names for our UIO devices. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-11sh: Don't export __{s,u}divsi3_i4i from SH-2 libgcc.Yoshinori Sato1-1/+3
rsk7203_defconfig fails to build with the following error: <-- snip --> ... LD .tmp_vmlinux1 arch/sh/kernel/built-in.o:(__ksymtab+0xb8): undefined reference to `__udivsi3_i4i' arch/sh/kernel/built-in.o:(__ksymtab+0xc8): undefined reference to `__sdivsi3_i4i' make[1]: *** [.tmp_vmlinux1] Error 1 <-- snip --> That worked with 2.6.26, and these are far less undefined references than in the cases where libgcc was missing. [ These symbols are not defined on SH-2 versions of libgcc, so we have to special case the export there. - Paul ] Reported-by: Adrian Bunk <[email protected]> Signed-off-by: Yoshinori Sato <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-08-04sh: Save NUMA node data in vmcore for crash dumps.Paul Mundt1-0/+8
Presently the NUMA node data isn't saved on kexec. This implements a simple arch_crash_save_vmcoreinfo() for saving off the relevant data. Signed-off-by: Paul Mundt <[email protected]>
2008-08-04sh: module_alloc() should be using vmalloc_exec().Paul Mundt1-1/+2
SH-X2 extended mode TLB allows for toggling of the exec bit, so make sure we are using the right protection bits for module space there also. Signed-off-by: Paul Mundt <[email protected]>
2008-08-04sh: Fix up __bug_table handling in module loader.Paul Mundt1-1/+3
We should be calling in to the lib/bug.c module helpers, fix that up. Signed-off-by: Paul Mundt <[email protected]>
2008-08-04sh: Fix up broken kerneldoc comments.Paul Mundt1-1/+1
These were completely unparseable, so fix them up. Signed-off-by: Paul Mundt <[email protected]>
2008-08-02sh: Fix up the audit arch endian specification.Paul Mundt2-2/+27
Presently this was always being set to AUDIT_ARCH_SH, which assumes big endian. Fix this up so that the architecture actually reflects what we're running on. Signed-off-by: Paul Mundt <[email protected]>
2008-08-02sh: Make syscall tracer use tracehook notifiers, add TIF_NOTIFY_RESUME.Paul Mundt6-154/+167
This follows the changes in commits: 7d6d637dac2050f30a1b57b0a3dc5de4a10616ba 4f72c4279eab1e5f3ed1ac4e55d4527617582392 on powerpc. Adding in TIF_NOTIFY_RESUME, and cleaning up the syscall tracing to be more generic. This is an incremental step to turning on tracehook, as well as unifying more of the ptrace and signal code across the 32/64 split. Signed-off-by: Paul Mundt <[email protected]>
2008-08-02sh: ptrace single stepping cleanups.Paul Mundt2-140/+30
This converts the single stepping done by sh/sh64 ptrace implementations to use the generic user_enable/disable_single_step(), and subsequently rips out a lot of ptrace request cases that are now handled generically. Signed-off-by: Paul Mundt <[email protected]>
2008-08-02sh: seccomp support.Paul Mundt2-0/+6
This hooks up the seccomp thread flag and associated callback from the syscall tracer. Signed-off-by: Paul Mundt <[email protected]>
2008-08-02sh: Tidy up the _TIF work masks, and fix syscall trace bug on singlestep.Paul Mundt2-3/+3
Signed-off-by: Paul Mundt <[email protected]>
2008-08-02kdump: sh: parse elfcorehdr command line argumentSimon Horman1-0/+20
A quick cut and paste from other architectures to allow SH to parse the elfcorehdr command line argument which is required for both is_kdump_kernel() and vmcore to function. (the former is as yet unused on SH). Tested compilation only Signed-off-by: Simon Horman <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-29sh: Move out the solution engine headers to arch/sh/include/mach-se/Paul Mundt1-3/+3
Signed-off-by: Paul Mundt <[email protected]>
2008-07-29sh: Add an arch/sh/kernel/.gitignorePaul Mundt1-0/+1
Ignore vmlinux.lds. Signed-off-by: Paul Mundt <[email protected]>
2008-07-29sh: migrate to arch/sh/include/Paul Mundt11-13/+13
This follows the sparc changes a439fe51a1f8eb087c22dd24d69cebae4a3addac. Most of the moving about was done with Sam's directions at: http://marc.info/?l=linux-sh&m=121724823706062&w=2 with subsequent hacking and fixups entirely my fault. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Wire up new syscalls.Paul Mundt2-0/+12
This wires up the signalfd4, eventfd2, epoll_create1, dup3, pipe2, and inotify_init1 syscalls. Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Don't miss pending signals returning to user mode after signal processingStuart MENEFY1-1/+1
Without this patch, signals sent during architecture specific signal handling (typically as a result of the user's stack being inaccessible) are ignored. This is the SH version of commit c3ff8ec31c1249d268cd11390649768a12bec1b9 which was for the i386. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Use clk_always_enable() on sh7366Magnus Damm1-0/+15
Use clk_always_enable() in the sh7366 processor code. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Use clk_always_enable() on sh7343 / SE77343Magnus Damm1-0/+15
Use clk_always_enable() on the sh7343 processor and in the board code for Solution Engine 7343. Remove duplicate MSTPCR register definitions. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Use clk_always_enable() on sh7722 / Migo-R / SE7722Magnus Damm1-0/+14
Use clk_always_enable() on the sh7722 processor and in the board code for Migo-R and Solution Engine 7722. Remove duplicate MSTPCR register definitions. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Use clk_always_enable() on sh7723 / ap325rxaMagnus Damm1-0/+16
Use clk_always_enable() on the sh7723 processor and in the ap325rxa board code. Remove duplicate MSTPCR register definitions. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Show all clocks and their state in /proc/clocksMagnus Damm1-9/+5
Show all clocks in /proc/clocks, and also show if they are enabled or disabled. This is useful to show MSTPCR bits on SuperH Mobile processors. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Merge sh7343 and sh7722 clock codeMagnus Damm3-130/+41
This code makes sh7343 share the sh7722 clock code. Instead of just using the good and very old sh7343 clock implmentation, switch to the new MSTPCR enabled clock code. SIU clocks are disabled on sh7343 for now. With this change all SuperH Mobile devices now use the same clock code. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Add SuperH Mobile MSTPCR bits to clock frameworkMagnus Damm1-0/+116
Handle module stop clock bits in MSTPCRn through the clock framework. The clocks are named after the bits in the data sheet. The association between bit number and hardware block is processor specific. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Use arch_flags to simplify sh7722 siu clock codeMagnus Damm1-38/+9
Make use of arch_flags to simplify the SIU clock code. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-07-28sh: Add memory chunks to SH-Mobile UIO devicesMagnus Damm4-0/+40
This patch adds physically contiguous memory chunks to the UIO devices. The same strategy can be used in the future for the CEU as well. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>