aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14sh: Kill off more dead symbols.Paul Mundt3-6/+3
Reported-by: Robert P. J. Day <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Get SH-5 caches working again post-unification.Paul Mundt1-33/+28
A number of cleanups to get the SH-5 cache management code in line with the rest of the SH backend. Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Shut up some trivial build warnings.Paul Mundt3-19/+18
Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Symbol exports for trapped I/O.Paul Mundt1-0/+5
Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Use max_t in io_trapped.Paul Mundt1-3/+5
Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: add support for sh7366 processorMagnus Damm5-2/+195
This patch adds sh7366 cpu supports. Just the most basic things like interrupt controller, clocks and serial port are included at this point. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: remove maskreg irq codeMagnus Damm2-94/+0
This patch removes the maskreg irq code since it is not in use anymore. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: fix ptrace copy_from/to_user() compilation errorMagnus Damm1-2/+2
This patch makes the 32-bit ptrace code compile again. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: trapped io support V2Magnus Damm6-38/+324
The idea is that we want to get rid of the in/out/readb/writeb callbacks from the machvec and replace that with simple inline read and write operations to memory. Fast and simple for most hardware devices (think pci). Some devices require special treatment though - like 16-bit only CF devices - so we need to have some method to hook in callbacks. This patch makes it possible to add a per-device trap generating filter. This way we can get maximum performance of sane hardware - which doesn't need this filter - and crappy hardware works but gets punished by a performance hit. V2 changes things around a bit and replaces io access callbacks with a simple minimum_bus_width value. In the future we can add stride as well. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: use opcode_t and enable unaligned code for sh2aMagnus Damm1-34/+25
This patch converts the unaligned access handling code to use opcode_t instead of u16. While at it, enable unaligned access handling for sh2a. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: add byte support to the sign extension codeMagnus Damm1-1/+11
This patch adds byte support to the sign extension code. Unaligned access traps should never be generated on 8-bit io operations, but we will use this code for trapped io and we do need byte support there. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: fix xtime_lock deadlocking.Peter Zijlstra2-18/+32
move update_process_times() out from under xtime_lock. Signed-off-by: Peter Zijlstra <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: Wire up new timerfd syscalls.Paul Mundt2-2/+6
Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: break out unaligned sign extension codeMagnus Damm1-45/+23
Break out the sign extension code since it's used in multiple places. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-14sh: add probe support for new sh7722 cutMagnus Damm1-1/+1
This patch adds support for sh7722 devices with prr value 0xa1. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-02-13xtime_lock vs update_process_timesPeter Zijlstra2-11/+0
Commit d3d74453c34f8fd87674a8cf5b8a327c68f22e99 ("hrtimer: fixup the HRTIMER_CB_IRQSAFE_NO_SOFTIRQ fallback") broke several archs, and since only Russell bothered to merge the fix, and Greg to ACK his arch, I'm sending this for merger. I have confirmation that the Alpha bit results in a booting kernel. That leaves: blackfin, frv, sh and sparc untested. The deadlock in question was found by Russell: IRQ handle -> timer_tick() - xtime seqlock held for write -> update_process_times() -> run_local_timers() -> hrtimer_run_queues() -> hrtimer_get_softirq_time() - tries to get a read lock Now, Thomas assures me the fix is trivial, only do_timer() needs to be done under the xtime_lock, and update_process_times() can savely be removed from under it. Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Greg Ungerer <[email protected]> CC: Richard Henderson <[email protected]> CC: Bryan Wu <[email protected]> CC: David Howells <[email protected]> CC: Paul Mundt <[email protected]> CC: William Irwin <[email protected]> Acked-by: Ingo Molnar <[email protected]> Acked-by: Ivan Kokshaysky <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-02-08Fix container_of() usageAlexey Dobriyan1-1/+1
Using "attr" twice is not OK, because it effectively prohibits such container_of() on variables not named "attr". Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Rusty Russell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-02-07Use BOOTMEM_EXCLUSIVE for kdumpBernhard Walle1-11/+18
Use the BOOTMEM_EXCLUSIVE, introduced in the previous patch, to avoid conflicts while reserving the memory for the kdump capture kernel (crashkernel=). Signed-off-by: Bernhard Walle <[email protected]> Cc: <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Vivek Goyal <[email protected]> Acked-by: Paul Mundt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-02-07Introduce flags for reserve_bootmem()Bernhard Walle1-4/+6
This patchset adds a flags variable to reserve_bootmem() and uses the BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions between crashkernel area and already used memory. This patch: Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE. If that flag is set, the function returns with -EBUSY if the memory already has been reserved in the past. This is to avoid conflicts. Because that code runs before SMP initialisation, there's no race condition inside reserve_bootmem_core(). [[email protected]: coding-style fixes] [[email protected]: fix powerpc build] Signed-off-by: Bernhard Walle <[email protected]> Cc: <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Vivek Goyal <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-02-05timerfd: fix remaining architecturesAndrew Morton2-2/+2
Cc: David Howells <[email protected]> Cc: Hirokazu Takata <[email protected]> Cc: Paul Mundt <[email protected]> Cc: Kazumoto Kojima <[email protected]> Cc: Richard Curnow <[email protected]> Cc: Davide Libenzi <[email protected]> Cc: Michael Kerrisk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-01-28all archs: consolidate init and exit sections in vmlinux.lds.hSam Ravnborg2-8/+8
This patch consolidate all definitions of .init.text, .init.data and .exit.text, .exit.data section definitions in the generic vmlinux.lds.h. This is a preparational patch - alone it does not buy us much good. Signed-off-by: Sam Ravnborg <[email protected]>
2008-01-28sh: constify function pointer tablesJan Engelhardt1-1/+1
Signed-off-by: Jan Engelhardt <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add OHCI and UDC platform devices for SH7720.Yoshihiro Shimoda1-0/+53
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: intc - remove default interrupt priority tablesMagnus Damm14-139/+36
This patch removes interrupt priority tables from the intc code. Optimal priority assignment varies with embedded application anyway, so keeping the interrupt priority tables together with cpu-specific code doesn't make sense. The function intc_set_priority() should be used instead to set the desired interrupt priority level. Signed-off-by: Magnus Damm <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: sh7712 clock supportAndrew Murray2-0/+72
This patch provides specific clock support for the SH7712. Signed-off-by: Andrew Murray <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add support for SH7763 CPU subtype.Yoshihiro Shimoda5-4/+524
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add support for SH7721 CPU subtype.Yoshihiro Shimoda6-10/+26
Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Encode L1/L2 cache shape in auxvt.Paul Mundt2-1/+31
This adds in the L1I/L1D/L2 cache shape support to their respective entries in the ELF auxvt, based on the Alpha implementation. We use this on the userspace libc side for calculating a tightly packed SHMLBA amongst other things. Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Support denormalization on SH-4 FPU.Stuart Menefy3-181/+1227
Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Clean up places that make 29-bit physical assumptions.Stuart Menefy2-2/+7
Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Preparation for uncached jumps through PMB.Stuart Menefy3-6/+15
Presently most of the 29-bit physical parts do P1/P2 segmentation with a 1:1 cached/uncached mapping, jumping between the two to control the caching behaviour. This provides the basic infrastructure to maintain this behaviour on 32-bit physical parts that don't map P1/P2 at all, using a shiny new linker section and corresponding fixmap entry. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: GUSA atomic rollback support.Stuart Menefy4-57/+23
This implements kernel-level atomic rollback built on top of gUSA, as an alternative non-IRQ based atomicity method. This is generally a faster method for platforms that are lacking the LL/SC pairs that SH-4A and later use, and is only supportable on legacy cores. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: comment tidying for sh64->sh migration.Paul Mundt12-76/+55
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: syscall auditing for sh5, too.Paul Mundt2-18/+30
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Provide a 29/32-bit physical hint for bootloaders.Stuart Menefy1-1/+5
Shoves a magic word in to the empty_zero_page section for the bootloader to work out whether to start the kernel in 29-bit or 32-bit mode. [ Renesas CPUs already take care of the initial PMB mappings entirely in hardware and decide on 29-bit/32-bit physical depending on which pin powered up the CPU, so this is mostly for ST parts. -- PFM ]. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add a printk() to warn legacy mem= growers.Stuart Menefy1-0/+11
mem= can't be used to grow the size of kernel memory, so provide a warning to that effect. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: SH-2A FPU support.Paul Mundt6-25/+665
Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add SH7263 CPU support.Paul Mundt5-4/+48
This adds support for the SH7263 (SH-2A) CPU. This particular CPU is a superset of SH7203, adding some additional peripheral blocks and hooking up additional (reserved on SH7203) vectors in the INTC block. No visibly nasty surprises, yet.. Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Fix the arch/sh/kernel/traps.c build for sh32.Paul Mundt1-0/+2
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Add SH7203 CPU support.Paul Mundt6-7/+386
This adds support for the SH7203 (SH-2A) CPU. Signed-off-by: Kieran Bingham <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: syscall audit support.Yuichi Nakamura2-6/+23
Support syscall auditing.. Signed-off-by: Yuichi Nakamura <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Move mach-cayman in with the rest of the boards.Paul Mundt1-1/+0
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Kill off the mach-harp and mach-sim machtypes.Paul Mundt1-8/+0
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Bring the SH-5 FPU in line with the SH-4 FPU API.Paul Mundt5-16/+14
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Kill off the rest of arch/sh64/kernel/.Paul Mundt4-2/+530
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Get the mach-cayman IRQ support building.Paul Mundt4-19/+258
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Fix up proc ASIDs for CPU-local ASID cache accessors.Paul Mundt1-10/+8
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Use existing CONFIG_CACHE_xx options in head_64.S.Paul Mundt1-5/+5
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Switch SH-5 to use CONFIG_PAGE_OFFSET.Paul Mundt3-17/+17
Signed-off-by: Paul Mundt <[email protected]>
2008-01-28sh: Stub in CPU subtype setup code for SH5-101/103.Paul Mundt2-0/+22
Signed-off-by: Paul Mundt <[email protected]>