summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm
Commit message (Collapse)AuthorAgeFilesLines
* Merge ../linux-2.6-x86Rusty Russell2008-12-131-1/+0
|\ | | | | | | | | | | | | | | Conflicts: arch/x86/kernel/io_apic.c kernel/sched.c kernel/sched_stats.h
| * sched: convert struct root_domain to cpumask_var_t, fixIngo Molnar2008-11-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mathieu Desnoyers reported this build failure on powerpc: kernel/sched.c: In function 'sd_init_NODE': kernel/sched.c:7319: error: non-static initialization of a flexible array member kernel/sched.c:7319: error: (near initialization for '(anonymous)') this happens because .span changed to cpumask_var_t, hence the static CPU_MASK_NONE initializers in the SD_*_INIT templates are not type-correct anymore. Remove them, as they default to empty anyway. Also remove them from IA64, MIPS and SH. Reported-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Signed-off-by: Ingo Molnar <mingo@elte.hu>
* | cpumask: convert struct clock_event_device to cpumask pointers.Rusty Russell2008-12-131-1/+1
|/ | | | | | | | | | | | | Impact: change calling convention of existing clock_event APIs struct clock_event_timer's cpumask field gets changed to take pointer, as does the ->broadcast function. Another single-patch change. For safety, we BUG_ON() in clockevents_register_device() if it's not set. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: Ingo Molnar <mingo@elte.hu>
* sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB.Paul Mundt2008-11-121-0/+4
| | | | | | | | | | | | | | | With the PMB enabled, only P1SEG and up are covered by the PMB mappings, meaning that situations where out-of-bounds physical addresses are read from will lead to TLB reset after the PMB miss, allowing for use cases like dd if=/dev/mem to reset the TLB. Fix this up to make sure the reference is between __MEMORY_START (phys) and __pa(high_memory). This is coherent across all variants of sh/sh64 with and without MMU, though the PMB bug itself is only applicable to SH-4A parts. Reported-by: Hideo Saito <saito@densan.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Handle fixmap TLB eviction more coherently.Paul Mundt2008-11-101-0/+6
| | | | | | | | | | | | | | | | | | There was a race in the kmap_coherent() implementation. While we guarded against preemption, there was nothing preventing eviction of the pre-faulted fixmap entry from the UTLB. Under certain workloads this would result in the fixmap entries used for cache colouring being evicted from the UTLB in the midst of a copy_page(). In addition to pre-faulting, we also make sure to preserve the PTEs in the kernel page table and introduce a cached PTE for kmap_coherent() usage. This follows a similar change on MIPS ("[MIPS] Fix aliasing bug in copy_to_user_page / copy_from_user_page"). Reported-by: Hideo Saito <saito@densan.co.jp> Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com> Tested-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: use the new byteorder headers.Harvey Harrison2008-10-311-19/+17
| | | | | | Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Kill off long-dead HD64465 cchip support.Paul Mundt2008-10-284-363/+0
| | | | | | | | | | This code has been dead for many years. The last update it received was in 2003 in order to update it for the driver model changes, though it had already been in disarray and unused before that point. The only boards that ever used this chip have not had users in many years either, so it is finally safe to just kill it off and move on with life. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: asm/gpio.h needs linux/kernel.h for might_sleep()/WARN_ON().Paul Mundt2008-10-231-0/+1
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: improve pinmux support for single direction pinsMagnus Damm2008-10-221-0/+1
| | | | | | | | | | This patch improves the support for gpio pins that are hard wired to either input or output and lack control register association. A special force enum id is used to allow use without control register but still mark the gpio pin as input or output. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Wire up oops reporting in the die notifier chain.Paul Mundt2008-10-211-0/+1
| | | | | | | | | | | Commit 3f5a54e371ca20b119b73704f6c01b71295c1714 ("ftrace: dump out ftrace buffers to console on panic") added an ftrace buffer dumper that hooks in to the die notifier chain and dumps out data in the oops path. Unfortunately SH supported ftrace but didn't support DIE_OOPS, so add that in and get it building again. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: gpio: Stub in dummy GPIO<->IRQ mapping routines.Paul Mundt2008-10-211-0/+15
| | | | | | | IRQ modes are not presently supported, so stub in dummy definitions for now (taken from linux/gpio.h). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: gpio: Include asm-generic/gpio.h for non-gpiolib stubs.Paul Mundt2008-10-211-4/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Migrate common board headers to mach-common/.Paul Mundt2008-10-2015-952/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Move the CPU definition headers from asm/ to cpu/.Paul Mundt2008-10-204-781/+0
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: reduce Migo-R smc91x overrunsMagnus Damm2008-10-201-0/+2
| | | | | | | | Improve Migo-R ethernet performance by reducing smc91x overruns. This is done by enabling SMC91X_NOWAIT and optimizing CS4 setup. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* sh: Fix up some merge damage.Paul Mundt2008-10-201-0/+2
| | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* Merge branch 'master' of ↵Paul Mundt2008-10-201-2/+0
|\ | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: Documentation/kernel-parameters.txt arch/sh/include/asm/elf.h
| * [PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITYMartin Schwidefsky2008-10-161-1/+1
| | | | | | | | | | | | | | | | The SET_PERSONALITY macro is always called with a second argument of 0. Remove the ibcs argument and the various tests to set the PER_SVR4 personality. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
* | sh: Add sh7720 pinmux codeMagnus Damm2008-10-201-0/+174
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7720 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7203 pinmux codeMagnus Damm2008-10-201-0/+143
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7203 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7723 pinmux codeMagnus Damm2008-10-201-0/+254
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7723 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add sh7722 pinmux codeMagnus Damm2008-10-201-0/+210
| | | | | | | | | | | | | | This patch adds pinmux and gpio support for the sh7722 processor. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: GPIO and pinmux base codeMagnus Damm2008-10-201-2/+90
| | | | | | | | | | | | | | | | This patch adds gpio code together with the pinmux table parser. In the future we should optimize this and switch back to gpiolib. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: More I/O routine overhauling.Paul Mundt2008-10-043-175/+96
| | | | | | | | | | | | | | | | | | | | This tidies up a lot of the PIO/MMIO split. No in-tree platforms were making use of the MMIO overloading through the machvec (nor have any of them been in some time), so we just kill all of that off. The ISA I/O routine wrapping remains unaffected, which remains the only special casing outside of the iomap API that boards need to think about. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | video: sh_mobile_lcdcfb: Support HAVE_CLK=n configurations.Paul Mundt2008-10-012-73/+1
| | | | | | | | | | | | | | | | | | This provides a workaround for users of sh_mobile_lcdcfb that don't define HAVE_CLK and have otherwise sane clock initialization. At the same time, move the sh_mobile_lcdc.h header to include/video/. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Move the shared INTC code out to drivers/sh/Paul Mundt2008-10-011-90/+2
| | | | | | | | | | | | | | The INTC code will be re-used across different architectures, so move this out to drivers/sh/ and include/linux/sh_intc.h respectively. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up the __raw_read/writeX() definitions.Paul Mundt2008-10-011-41/+36
| | | | | | | | | | | | | | These were doing largely bogus things and using the wrong typing for the address. Bring these in line with the ARM definitions. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: sh_ksyms_64 needs __strncpy_from_user() definition.Paul Mundt2008-09-291-0/+2
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up uaccess_64 put/get_user() cast warnings.Paul Mundt2008-09-291-8/+16
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add FPU registers to regset interface.Paul Mundt2008-09-212-3/+22
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add missing asm/ftrace.h.Paul Mundt2008-09-211-0/+8
| | | | | | | | | | | | This was missed with the ftrace support commit.. check it in now. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Move lookup_exception_vector() out to asm/system_32.h.Paul Mundt2008-09-211-0/+25
| | | | | | | | | | | | | | | | There are other places where we want to have access to the trap/exception number, so move out the lookup_exception_vector() helper. While we're at it, refactor it slightly to return the vector instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add a few more definitions to asm/sizes.h.Paul Mundt2008-09-211-0/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Copy in asm/sizes.h helper from ARM.Paul Mundt2008-09-211-0/+56
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Support kernel stacks smaller than a page.Paul Mundt2008-09-201-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This follows the powerpc commit f6a616800e68b61807d0f7bb0d5dc70665ef8046 '[POWERPC] Fix kernel stack allocation alignment'. SH has traditionally forced the thread order to be relative to the page size, so there were never any situations where the same bug was triggered by slub. Regardless, the usage of > 8kB stacks for the larger page sizes is overkill, so we switch to using slab allocations there, as per the powerpc change. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up headers_check regression.Paul Mundt2008-09-171-3/+0
| | | | | | | | | | | | | | linux/mmzone.h isn't exported, kill it off from asm/setup.h and simply deal with it in the places that have a dependency instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Consolidate struct sh_cpuinfo definitions across _32/_64 split.Paul Mundt2008-09-173-61/+39
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Tidy up ELF core dumps.Paul Mundt2008-09-121-6/+0
| | | | | | | | | | | | | | | | | | | | These have been using overrides for ELF_CORE_COPY_TASK_REGS and ELF_CORE_COPY_FPREGS while the generic versions can be used instead. Presently the pt_regs are also duplicated across elf_core_copy_regs() and elf_core_copy_task_regs(), this switches to simply copying out through elf_core_copy_regs() instead. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add DSP registers to regset interface.Paul Mundt2008-09-122-3/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Fix up NUMA build error with se7722_defconfig.Paul Mundt2008-09-122-1/+3
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Provide the asm/syscall.h interface, needed by tracehook.Paul Mundt2008-09-123-0/+126
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: provide user_stack_pointer(), needed for tracehook support.Paul Mundt2008-09-122-0/+4
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: ioremap_prot support.Paul Mundt2008-09-123-0/+5
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: ptrace: Introduce user_regset interface for gp regs.Paul Mundt2008-09-122-1/+16
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: kprobes: Use trapa #0x3a for breakpoint trap.Paul Mundt2008-09-081-1/+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 <lethal@linux-sh.org>
* | sh: kprobes: Hook up kprobe_fault_handler() in the page fault path.Paul Mundt2008-09-081-2/+1
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: Add kprobes support.Chris Smith2008-09-081-0/+59
| | | | | | | | | | | | | | | | | | 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 <chris.smith@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: early cached_to_uncached initialization.Stuart Menefy2008-09-081-1/+2
| | | | | | | | | | | | | | | | statically initialise the cached_to_uncached offset, so that we can use it immediatly. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: fixup many sparse errors.Paul Mundt2008-09-0813-6/+151
| | | | | | | | Signed-off-by: Paul Mundt <lethal@linux-sh.org>
* | sh: generic clockevent broadcast support.Paul Mundt2008-09-081-0/+3
| | | | | | | | | | | | | | | | 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 <lethal@linux-sh.org>