summaryrefslogtreecommitdiffstats
path: root/arch/sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* PTRACE_POKEDATA consolidationAlexey Dobriyan2007-07-171-4/+1
| | | | | | | | | | | | | | Identical implementations of PTRACE_POKEDATA go into generic_ptrace_pokedata() function. AFAICS, fix bug on xtensa where successful PTRACE_POKEDATA will nevertheless return EPERM. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Christoph Hellwig <hch@lst.de> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* PTRACE_PEEKDATA consolidationAlexey Dobriyan2007-07-171-11/+2
| | | | | | | | | | | Identical implementations of PTRACE_PEEKDATA go into generic_ptrace_peekdata() function. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Christoph Hellwig <hch@lst.de> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Report that kernel is tainted if there was an OOPSPavel Emelianov2007-07-171-0/+1
| | | | | | | | | | | | | | If the kernel OOPSed or BUGed then it probably should be considered as tainted. Thus, all subsequent OOPSes and SysRq dumps will report the tainted kernel. This saves a lot of time explaining oddities in the calltraces. Signed-off-by: Pavel Emelianov <xemul@openvz.org> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> [ Added parisc patch from Matthew Wilson -Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6Linus Torvalds2007-07-1697-2358/+4124
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: (68 commits) sh: sh-rtc support for SH7709. sh: Revert __xdiv64_32 size change. sh: Update r7785rp defconfig. sh: Export div symbols for GCC 4.2 and ST GCC. sh: fix race in parallel out-of-tree build sh: Kill off dead mach.c for hp6xx. sh: hd64461.h cleanup and added comments. sh: Update the alignment when 4K stacks are used. sh: Add a .bss.page_aligned section for 4K stacks. sh: Don't let SH-4A clobber SH-4 CFLAGS. sh: Add parport stub for SuperIO ports. sh: Drop -Wa,-dsp for DSP tuning. sh: Update dreamcast defconfig. fb: pvr2fb: A few more __devinit annotations for PCI. fb: pvr2fb: Fix up section mismatch warnings. sh: Select IPR-IRQ for SH7091. sh: Correct __xdiv64_32/div64_32 return value size. sh: Fix timer-tmu build for SH-3. sh: Add cpu and mach links to CLEAN_FILES. sh: Preliminary support for the SH-X3 CPU. ...
| * sh: sh-rtc support for SH7709.Kristoffer Ericson2007-07-161-0/+28
| | | | | | | | | | Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Revert __xdiv64_32 size change.Paul Mundt2007-07-131-2/+2
| | | | | | | | | | | | | | It's only __div64_32 that needs the fix, __xdiv64_32 behaves as expected with the original size. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Update r7785rp defconfig.Paul Mundt2007-07-131-196/+100
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Export div symbols for GCC 4.2 and ST GCC.Paul Mundt2007-07-131-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | GCC 4.2 can emit integer variants of the FP division routines, so these need to be exported in order to keep the modules happy. 4.1.x versions of the ST compiler have these things backported, and so also generate these symbols (whereas vanilla gcc 4.1.x does not), so handle the __GNUC_STM_RELEASE__ case to accomodate updated versions of the 4.1.x toolchain. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: fix race in parallel out-of-tree buildErik Johansson2007-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | Depending on which of the three dependencies for archprepare (in arch/sh/Makefile) get built first, the directory include/asm-sh may or may not exist when the maketools target is built. If the directory does not exist, awk will fail to generate machtypes.h. This patch fixes this by creating the directory before awk is executed. Signed-off-by: Erik Johansson <erik.johansson@motorola.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Kill off dead mach.c for hp6xx.Kristoffer Ericson2007-07-121-44/+0
| | | | | | | | | | Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Update the alignment when 4K stacks are used.Robert P. J. Day2007-07-121-6/+2
| | | | | | | | | | | | | | | | Use the newly added .bss.page_aligned section for aligning the stacks rather than THREAD_SIZE. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add a .bss.page_aligned section for 4K stacks.Paul Mundt2007-07-121-8/+8
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Don't let SH-4A clobber SH-4 CFLAGS.Paul Mundt2007-07-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Older compilers don't support the -m4a{,nofpu} flags, which has the side-effect of allowing FP operations to be emitted. Switch this to incremental tuning, so we at least have -m4-nofpu as a fallback for the gcc3 toolchains. Without this, certain modules emit references to __udivsi3_i4 and __sdivsi3_i4. Reported-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Drop -Wa,-dsp for DSP tuning.Paul Mundt2007-07-071-2/+0
| | | | | | | | | | | | | | | | | | We already hand off the proper ISA variant with the dsp specifier appended, so we don't need to explicitly set -dsp. This causes some confusion with certain toolchains that are restricted to -dsp family opcodes artificially. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Update dreamcast defconfig.Paul Mundt2007-07-061-190/+148
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Select IPR-IRQ for SH7091.Paul Mundt2007-07-061-0/+1
| | | | | | | | | | | | Fixes a compile failure for the Dreamcast. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Correct __xdiv64_32/div64_32 return value size.Paul Mundt2007-07-062-8/+7
| | | | | | | | | | | | | | | | | | These should be returning a uint32_t, whereas they were erroneously returning a u64 before. As the register sizes are 32-bits, this doesn't really make a lot of sense. Reported-by: Katsuya MATSUBARA <matsu@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add cpu and mach links to CLEAN_FILES.Paul Mundt2007-07-061-1/+3
| | | | | | | | | | | | These weren't being cleaned up, so add them to the CLEAN_FILES. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * Merge branch 'x3'Paul Mundt2007-06-2011-6/+1027
| |\
| | * sh: Preliminary support for the SH-X3 CPU.Paul Mundt2007-06-2010-4/+1020
| | | | | | | | | | | | | | | | | | This adds basic support for UP SH-X3. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| | * sh: Hook up hard_smp_processor_id() for INTC2 block.Paul Mundt2007-06-201-2/+7
| | | | | | | | | | | | | | | | | | | | | We need to know the CPU ID in order to calculate the mask and ack registers effectively. Stub this in for UP. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Update se7722 defconfig.Paul Mundt2007-06-201-191/+96
| | | | | | | | | | | | | | | | | | Hook up the multi-node stuff for the SE7722. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * | sh: Fix up cf-enabler dependency for SE boards.Paul Mundt2007-06-201-44/+43
| |/ | | | | | | | | | | | | | | This was using CONFIG_SH_SOLUTION_ENGINE, where we really wanted CONFIG_SOLUTION_ENGINE. While we're at it, move the whole CF enabler mess somewhere better suited. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Check oops_may_print() in unhandled fault.Paul Mundt2007-06-181-16/+29
| | | | | | | | | | | | | | Only print out pgd/pte data in the oops path if oops_may_print() holds true. Follows the i386 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Update SH-2/SH-2A defconfigs.Paul Mundt2007-06-152-328/+159
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: rework ipr codeMagnus Damm2007-06-1516-286/+404
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch reworks the ipr code by grouping the offset array together with the ipr_data structure in a new data structure called ipr_desc. This new structure also contains the name of the controller in struct irq_chip. The idea behind putting struct irq_chip in there is that we can use offsetof() to locate the base addresses in the irq_chip callbacks. This strategy has much in common with the recently merged intc2 code. One logic change has been made - the original ipr code enabled the interrupts by default but with this patch they are all disabled by default. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Only support PMB for SH-X cores.Paul Mundt2007-06-151-1/+1
| | | | | | | | | | | | | | We don't have a PMB for SH-X2 or later, so only enable it for the few CPUs that support it. Fixes up the boot for SH4AL-DSP. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: rework intc2 codeMagnus Damm2007-06-155-65/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The shared intc2 code currently contains cpu-specific #ifdefs. This is a tad unclean and it prevents us from using the shared code to drive board-specific irqs on the se7780 board. This patch reworks the intc2 code by moving the base addresses of the intc2 registers into struct intc2_desc. This new structure also contains the name of the controller in struct irq_chip. The idea behind putting struct irq_chip in there is that we can use offsetof() to locate the base addresses in the irq_chip callbacks. One logic change has been made - the original shared intc2 code enabled the interrupts by default but with this patch they are all disabled by default. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix up the math-emu build.Paul Mundt2007-06-111-6/+12
| | | | | | | | | | | | | | math-emu wasn't converted for the trap_no/errno_code changes, get it building again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Kill off broken dma page ops.Paul Mundt2007-06-113-115/+1
| | | | | | | | | | | | | | | | There's no point in keeping these around, they've been broken for some time, and the dmaenging/async_tx framework provides a far more reasonable interface. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fixup misaligned data for sh2 lockdep.Paul Mundt2007-06-111-0/+1
| | | | | | | | | | | | | | lockdep/irqflags tracing on SH-2 ends up with a misaligned branch, fix it. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Tidy up dependencies for SH-2 build.Paul Mundt2007-06-119-47/+44
| | | | | | | | | | | | | | | | | | | | | | | | SH-2 can presently get in to some pretty bogus states, so we tidy up the dependencies a bit and get it all building again. This gets us a bit closer to a functional allyesconfig and allmodconfig, though there are still a few things to fix up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Provide a defconfig for R7780MP.Yoshihiro Shimoda2007-06-111-0/+1223
| | | | | | | | | | Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Kill off dead SH7604 support.Paul Mundt2007-06-0810-266/+2
| | | | | | | | | | | | | | | | This was added during 2.5.x, but was never moved along. This can easily be resurrected if someone has one they wish to work with, but it's not worth keeping around in its current form. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: memory hot-add for sparsemem users support.Paul Mundt2007-06-082-0/+50
| | | | | | | | | | | | | | This enables simple hotplug support for sparsemem users. Presently this only permits memory being added in to node 0 on ZONE_NORMAL. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix up cpu to node mapping in sysfs.Paul Mundt2007-06-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | Currently cpu_to_node() is always 0 in the UP case, though we do want to have the CPU association linked in under sysfs even in the cases where we're only on a single CPU. Fix this up, so we have the cpu0 link on all of the available nodes that don't already have a CPU link of their own. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix the SH7722 flatmem build.Paul Mundt2007-06-081-0/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Make NUMA depend on sparsemem.Paul Mundt2007-06-081-1/+1
| | | | | | | | | | | | | | The only platforms that are supporting NUMA are doing so via sparsemem, so update the dependency. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: URAM node support for SH7722.Paul Mundt2007-06-082-1/+10
| | | | | | | | | | | | | | | | This adds the URAM block on SH7722 as a separate node. Sparsemem is required for this, or it can simply be disabled by explicitly selecting a flatmem model. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Support for multiple nodes.Paul Mundt2007-06-083-0/+104
| | | | | | | | | | | | | | | | | | This adds basic support for multiple nodes on SH machines. This is primarily useful for boards with many different memory blocks that are otherwise unused (SH7722/SH7785 URAM and so forth). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Use asm/sections.h for linker section symbols.Paul Mundt2007-06-081-7/+4
| | | | | | | | | | | | Kill off a bunch of externs, and use sections.h instead.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix up max_zone_pfns[] with multiple nodes.Paul Mundt2007-06-081-12/+17
| | | | | | | | | | | | | | | | Currently using multiple nodes tramples the ZONE_NORMAL max low pfn, tidy up the logic a bit to get it all working as expected. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Wire up mempolicy syscalls.Paul Mundt2007-06-081-3/+3
| | | | | | | | | | | | Wire up mbind and get/set_mempolicy() in their reserved places. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Tidy compiler warnings for SH-2A build.Paul Mundt2007-06-082-1/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Wrap CPU tuning through cc-option.Paul Mundt2007-06-081-5/+7
| | | | | | | | | | | | | | | | | | Some compilers don't support the explicit CPU tuning, while binutils is still able to handle the special subtype-specific opcodes. Make the CFLAG optional, falling back on the compiler default if nothing better exists. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Enable IPR-IRQ for SH7206.Paul Mundt2007-06-081-0/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Mark sparsemem regions present earlier.Paul Mundt2007-06-081-4/+5
| | | | | | | | | | | | | | | | | | We have to call in to sparse_memory_present_with_active_regions() earlier in order for sparsemem to be happy. This was being called too late, and was causing troubles with the platforms that needed to enable sparsemem. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Register multiple nodes in topology_init().Paul Mundt2007-06-081-0/+7
| | | | | | | | | | | | If we have multiple nodes, register these at topology_init() time. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Allow for bootmem debug support.Paul Mundt2007-06-081-0/+4
| | | | | | | | | | | | Handy for debugging bootmem troubles. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: sparsemem support.Paul Mundt2007-06-083-25/+22
| | | | | | | | | | | | | | | | This implements basic sparsemem support for SH. Presently this only uses static sparsemem, and we still permit explicit selection of flatmem. Those boards that want sparsemem can select it as usual. Signed-off-by: Paul Mundt <lethal@linux-sh.org>