summaryrefslogtreecommitdiffstats
path: root/include/asm-sh
Commit message (Collapse)AuthorAgeFilesLines
* Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6Linus Torvalds2006-09-2799-1436/+2127
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6: (108 commits) sh: Fix occasional flush_cache_4096() stack corruption. sh: Calculate shm alignment at runtime. sh: dma-mapping compile fixes. sh: Initial vsyscall page support. sh: Clean up PAGE_SIZE definition for assembly use. sh: Selective flush_cache_mm() flushing. sh: More intelligent entry_mask/way_size calculation. sh: Support for L2 cache on newer SH-4A CPUs. sh: Update kexec support for API changes. sh: Optimized readsl()/writesl() support. sh: Report movli.l/movco.l capabilities. sh: CPU flags in AT_HWCAP in ELF auxvt. sh: Add support for 4K stacks. sh: Enable /proc/kcore support. sh: stack debugging support. sh: select CONFIG_EMBEDDED. sh: machvec rework. sh: Solution Engine SH7343 board support. sh: SH7710VoIPGW board support. sh: Enable verbose BUG() support. ...
| * sh: Calculate shm alignment at runtime.Paul Mundt2006-09-275-13/+4Star
| | | | | | | | | | | | | | Set the SHM alignment at runtime, based off of probed cache desc. Optimize get_unmapped_area() to only colour align shared mappings. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: dma-mapping compile fixes.Paul Mundt2006-09-271-17/+25
| | | | | | | | | | | | Silly bug, make it build again.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Initial vsyscall page support.Paul Mundt2006-09-276-5/+55
| | | | | | | | | | | | | | | | | | | | This implements initial support for the vsyscall page on SH. At the moment we leave it configurable due to having nommu to support from the same code base. We hook it up for the signal trampoline return at present, with more to be added later, once uClibc catches up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Clean up PAGE_SIZE definition for assembly use.Paul Mundt2006-09-271-0/+6
| | | | | | | | | | | | | | We want to be able to use PAGE_SIZE all over the place, this is the same approach adopted by other architectures.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Support for L2 cache on newer SH-4A CPUs.Paul Mundt2006-09-272-4/+6
| | | | | | | | | | | | | | This implements preliminary support for the L2 caches found on newer SH-4A CPUs. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Update kexec support for API changes.Paul Mundt2006-09-271-6/+3Star
| | | | | | | | | | | | This was falling a bit behind.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Optimized readsl()/writesl() support.Paul Mundt2006-09-271-0/+6
| | | | | | | | | | | | Implement optimized copies of readsl()/writesl(). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Report movli.l/movco.l capabilities.Paul Mundt2006-09-271-0/+8
| | | | | | | | | | | | | | Add llsc to cpu_flags[] and comment cpu-features.h. Signed-off-by: Jamie Lenehan <nynaeve@twibble.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: CPU flags in AT_HWCAP in ELF auxvt.Paul Mundt2006-09-273-15/+22
| | | | | | | | | | | | Encode processor flags in AT_HWCAP in the ELF auxiliary vector. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add support for 4K stacks.Paul Mundt2006-09-272-1/+20
| | | | | | | | | | | | | | | | | | This enables support for 4K stacks on SH. Currently this depends on DEBUG_KERNEL, but likely all boards will switch to this as the default in the future. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: stack debugging support.Paul Mundt2006-09-272-5/+9
| | | | | | | | | | | | This adds a DEBUG_STACK_USAGE and DEBUG_STACKOVERFLOW for SH. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: machvec rework.Paul Mundt2006-09-271-2/+5
| | | | | | | | | | | | | | | | | | Some more machvec overhauling and setup code cleanup. Kill off get_system_type() and platform_setup(), we can do these both through the machvec. While we're add it, kill off more useless mach.c's and drop some legacy cruft from setup.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Solution Engine SH7343 board support.Paul Mundt2006-09-272-0/+84
| | | | | | | | | | | | This adds support for the SE7343 board. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Kill off dead boards.Paul Mundt2006-09-2711-457/+0Star
| | | | | | | | | | | | | | None of these have been maintained in years, and no one seems to be interested in doing so, so just get rid of them. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: New atomic ops for SH-4A movli.l/movco.lPaul Mundt2006-09-271-9/+96
| | | | | | | | | | | | | | SH-4A implements LL/SC instructions, so we implement a simple set of atomic operations using these. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Kill off the rest of the legacy rtc mess.Paul Mundt2006-09-272-190/+0Star
| | | | | | | | | | | | | | With the new RTC class driver, we can get rid of most of the old left over cruft. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: SHMIN board support.Takashi YOSHII2006-09-271-0/+9
| | | | | | | | | | | | | | This adds support for the SHMIN SH7706 board. Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add support for SH7706/SH7710/SH7343 CPUs.Paul Mundt2006-09-278-15/+459
| | | | | | | | | | | | | | This adds support for the aforementioned CPU subtypes, and cleans up some build issues encountered as a result. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * serial: Add SERIAL_SH_SCI_NR_UARTS for sh-sci.Paul Mundt2006-09-271-0/+34
| | | | | | | | | | | | | | | | sh-sci needs to be able to define its number of ports to support, we do this with a config option, like most other ports do. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: pselect6 and ppoll, along with signal trampoline rework.Paul Mundt2006-09-272-32/+36
| | | | | | | | | | | | This implements support for ppoll() and pselect6().. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: __addr_ok() and other misc nommu fixups.Yoshinori Sato2006-09-273-5/+13
| | | | | | | | | | | | | | A few more outstanding nommu fixups.. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Various nommu fixes.Yoshinori Sato2006-09-275-13/+28
| | | | | | | | | | | | | | | | This fixes up some of the various outstanding nommu bugs on SH. Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Make PAGE_OFFSET configurable.Paul Mundt2006-09-271-1/+1
| | | | | | | | | | | | | | | | nommu needs to be able to shift PAGE_OFFSET, so we switch it to a non-user-visible CONFIG_PAGE_OFFSET and use that in the few places where it matters. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Move voyagergx_reg.h to a more sensible place.Paul Mundt2006-09-271-1/+1
| | | | | | | | | | | | | | Other boards require this as well, so move it out of the rts7751r2d directory. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: math-emu supportTakashi YOSHII2006-09-271-0/+86
| | | | | | | | | | | | | | This implements initial math-emu support, aimed primarily at SH-3. Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Rename rtc_get/set_time() to avoid RTC_CLASS conflict.Paul Mundt2006-09-271-2/+2
| | | | | | | | | | | | | | We have a clash with RTC_CLASS over these names, so we change them.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fixup __strnlen_user() behaviour.Paul Mundt2006-09-273-54/+19Star
| | | | | | | | | | | | | | | | | | | | Drop TIF_USERSPACE and add addr_limit to the thread_info struct. Subsequently, use that for address checking in strnlen_user() to ward off bogus -EFAULTs. Make __strnlen_user() return 0 on exception, rather than -EFAULT. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: More cosmetic cleanups and trivial fixes.Paul Mundt2006-09-274-31/+13Star
| | | | | | | | | | | | Nothing exciting here, just trivial fixes.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Consolidated SH7751/SH7780 PCI support.Paul Mundt2006-09-272-3/+37
| | | | | | | | | | | | | | | | This cleans up quite a lot of the PCI mess that we currently have, and attempts to consolidate the duplication in the SH7780 and SH7751 PCI controllers. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: kgdb stub cleanups.Paul Mundt2006-09-271-0/+15
| | | | | | | | | | | | | | | | Some kgdb cleanup. Move hexchars/highhex/lowhex to the header, so it can be reused by sh-sci. Also drop silly ctrl_inl/outl() overloading being done by the kgdb stub. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: APM/PM support.Andriy Skulysh2006-09-277-3/+151
| | | | | | | | | | | | | | | | | | This adds some simple PM stubs and the basic APM interfaces, primarily for use by hp6xx, where the existing userland expects it. Signed-off-by: Andriy Skulysh <askulysh@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Free up some and document PTEL flags.Paul Mundt2006-09-271-31/+45
| | | | | | | | | | | | | | | | Drop _PAGE_SHARED/_PAGE_U0_SHARED and document Linux PTE encodings in the PTEL value. Preserve the swap cache entry encoding semantics for now, though it will need rework to free up _PAGE_WT from _PAGE_FILE. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: xchg()/__xchg() always_inline fixes for gcc4.Paul Mundt2006-09-271-25/+32
| | | | | | | | | | | | | | Make __xchg() a macro, so that gcc 4.0 doesn't blow up thanks to always_inline.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Cleanup and document register bank usage.Paul Mundt2006-09-272-3/+31
| | | | | | | | | | | | | | Initial register bank cleanup. Make SR.RB configurable, and add some preliminary documentation on register bank usage within the kernel. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add support for R7780RP and R7780MP boards.Paul Mundt2006-09-2710-15/+236
| | | | | | | | | | | | | | This adds support for the Renesas SH7780 development boards, R7780RP and R7780MP. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Store Queue API rework.Paul Mundt2006-09-271-18/+5Star
| | | | | | | | | | | | | | | | | | | | | | | | Rewrite the store queue API for a per-cpu interface in the driver model. The old miscdevice is dropped, due to TASK_SIZE limitations, and no one was using it anyways. Carve up and allocate store queue space with a bitmap, back sq mapping objects with a slab cache, and let userspace worry about its own prefetching. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Board updates for I/O routine rework.Paul Mundt2006-09-2714-213/+29Star
| | | | | | | | | | | | | | This updates the various boards for some of the recent I/O routine updates. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fixup SHMLBA definition for SH7705.Paul Mundt2006-09-275-81/+38Star
| | | | | | | | | | | | | | We need this set to something sensible anywhere were we have an aliasing dcache.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: ioremap() overhaul.Paul Mundt2006-09-272-1/+13
| | | | | | | | | | | | | | | | | | | | ioremap() overhaul. Add support for transparent PMB mapping, get rid of p3_ioremap(), etc. Also drop ioremap() and iounmap() routines from the machvec, as everyone can use the generic ioremap() API instead. For PCI memory apertures and other special cases, use the pci_iomap() API, as boards are already required to get the mapping right there. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: page table alloc cleanups and page fault optimizations.Paul Mundt2006-09-277-102/+73Star
| | | | | | | | | | | | | | | | | | | | | | Cleanup of page table allocators, using generic folded PMD and PUD helpers. TLB flushing operations are moved to a more sensible spot. The page fault handler is also optimized slightly, we no longer waste cycles on IRQ disabling for flushing of the page from the ITLB, since we're already under CLI protection by the initial exception handler. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: SH-4A Privileged Space Mapping Buffer (PMB) support.Paul Mundt2006-09-271-1/+47
| | | | | | | | | | | | | | Add support for 32-bit physical addressing through the SH-4A Privileged Space Mapping Buffer (PMB). Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Titan board support.Jamie Lenehan2006-09-271-0/+43
| | | | | | | | | | | | | | Add support for the titan board. Signed-off-by: Jamie Lenehan <lenehan@twibble.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Add control register barriers.Paul Mundt2006-09-272-13/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently when making changes to control registers, we typically need some time for changes to take effect (8 nops, generally). However, for sh4a we simply need to do an icbi.. This is a simple patch for implementing a general purpose ctrl_barrier() which functions as a control register write barrier. There's some additional documentation in the patch itself, but it's pretty self explanatory. There were also some places where we were not doing the barrier, which didn't seem to have any adverse effects on legacy parts, but certainly did on sh4a. It's safer to have the barrier in place for legacy parts as well in these cases, though this does make flush_tlb_all() more expensive (by an order of 8 nops). We can ifdef around the flush_tlb_all() case for now if it's clear that all legacy parts won't have a problem with this. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: landisk board support.kogiidena2006-09-273-0/+137
| | | | | | | | | | | | | | This adds support for the I-O DATA Landisk. Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix libata build.Paul Mundt2006-09-272-9/+9
| | | | | | | | | | | | | | | | Drop virt_to_bus() from sg_dma_address() so libata builds. While we're at it, move sg_dma_address() and sg_dma_len() from pci.h to scatterlist.h. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Fix fatal oops in copy_user_page() on sh4a (SH7780).Paul Mundt2006-09-271-4/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had a pretty interesting oops happening, where copy_user_page() was down()'ing p3map_sem[] with a bogus offset (particularly, an offset that hadn't been initialized with sema_init(), due to the mismatch between cpu_data->dcache.n_aliases and what was assumed based off of the old CACHE_ALIAS value). Luckily, spinlock debugging caught this for us, and so we drop the old hardcoded CACHE_ALIAS for sh4 completely and rely on the run-time probed cpu_data->dcache.alias_mask. This in turn gets the p3map_sem[] index right, and everything works again. While we're at it, also convert to 4-level page tables.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Wire up new syscalls.Paul Mundt2006-09-271-2/+24
| | | | | | | | | | | | The syscall table has lagged behind a bit, wire up the new ones.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: remove cpu_online() definition from <asm/smp.h>Alexey Dobriyan2006-09-271-5/+0Star
| | | | | | | | | | | | | | | | It's defined in <linux/cpumask.h> and log is horribly flooded by "redefined" messages. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| * sh: Support for SH7770/SH7780 CPU subtypes.Paul Mundt2006-09-272-0/+6
| | | | | | | | | | | | Merge support for SH7770 and SH7780 SH-4A subtypes. Signed-off-by: Paul Mundt <lethal@linux-sh.org>