summaryrefslogtreecommitdiffstats
path: root/arch/blackfin
Commit message (Collapse)AuthorAgeFilesLines
* Blackfin: add support for restart_syscall()Mike Frysinger2010-03-091-0/+9
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: check for bad syscalls after tracing itMike Frysinger2010-03-091-9/+14
| | | | | | | We want to report all system calls (even invalid ones) to the tracing layers, so check the NR only after we've notified. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix single stepping over system callsMike Frysinger2010-03-094-3/+15
| | | | | | | | | | | | On Blackfin systems, the hardware single step exception triggers before the system call exception, so we need to save this info to process it later on. Otherwise, single stepping in userspace misses a few insns right after the system call. This is based a bit on the SuperH code added in commit 4b505db9c4c72dbd. Reported-by: Roland McGrath <roland@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: initial tracehook supportMike Frysinger2010-03-096-62/+144
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: initial regset supportMike Frysinger2010-03-093-31/+97
| | | | | | We don't support core dumps (yet?), but this should make things easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: simplify PTRACE_{PEEK,POKE}USR in preperation for regset supportMike Frysinger2010-03-092-67/+53
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: simplify SYSCFG code a bit and ignore attempts to change itMike Frysinger2010-03-091-18/+6
| | | | | | | | We don't want to let user space modify the SYSCFG register arbitrarily as the settings are system wide (SNEN/CNEN) and can cause misbehavior. The only other bit here (SSSTEP) has proper controls via PTRACE_SINGLESTEP. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: use generic ptrace_resume codeChristoph Hellwig2010-03-091-44/+0
| | | | | | | | | | | | | | | | Use the generic ptrace_resume code for PTRACE_SYSCALL, PTRACE_CONT, PTRACE_KILL and PTRACE_SINGLESTEP. This implies defining arch_has_single_step in <asm/ptrace.h> and implementing the user_enable_single_step and user_disable_single_step functions, which also causes the breakpoint information to be cleared on fork, which could be considered a bug fix. Also the TIF_SYSCALL_TRACE thread flag is now cleared on PTRACE_KILL which it previously wasn't which is consistent with all architectures using the modern ptrace code. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: add example AD715{0,2}/AD774{5,6,7} IIO resourcesBarry Song2010-03-091-0/+20
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: rewrite resync_core_{i,d}cache() SMP logic to avoid per_cpu dataGraf Yang2010-03-094-6/+13
| | | | | | | | | | | This functions are implicitly called by core functions like cpu_relax(), and since those functions may be called early on before common code has initialized the per-cpu data area, we need to tweak the stats gathering. Now the statistics are maintained in common bss which makes these funcs safe to use as soon as the C runtime env is setup. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add support for cpufreq on SMP systemsGraf Yang2010-03-094-66/+101
| | | | | Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: rename AD1938 to AD193X in board filesBarry Song2010-03-091-4/+4
| | | | | | | | The ASoC codec driver was generalized and renamed, so update the board resources accordingly. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add CALLER_ADDR ftrace macrosYi Li2010-03-091-0/+53
| | | | | | | | Since GCC doesn't support __builtin_frame_address(n) where n!=0, add our own function to walk the stack frame pointers. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: move KGDB selection to the way other arches do itMike Frysinger2010-03-092-3/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: split watchdog definitions into a dedicated header fileGraf Yang2010-03-092-15/+31
| | | | | | | This allows things to be shared between the different watchdog sources. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add dma_disable_irq_nosync() API for irq handlersBarry Song2010-03-091-0/+4
| | | | | | | Some IRQ handlers need to disable a DMA channel without waiting. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix whitespace damage in thread_info.hMike Frysinger2010-03-091-12/+11
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: support new ftrace frame pointer semanticsMike Frysinger2010-03-092-5/+13
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: implement ftrace mcount testMike Frysinger2010-03-092-1/+11
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: implement ndelay()Barry Song2010-03-091-2/+14
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: implement nmi_watchdog for SMP on BF561Graf Yang2010-03-098-1/+361
| | | | | Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: respect the L1 kconfig optimization in the MPU codeBarry Song2010-03-091-6/+12
| | | | | | | Restore support for CONFIG_EXCPT_IRQ_SYSC_L1 in the MPU CPLB manager. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp/bf527-ezkit: move ASoC SPORT resources to boards fileBarry Song2010-03-092-0/+49
| | | | | | | Rather than declaring pin resources in the drivers, do it in the board. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf548-ezkit: add ASoC CPU DAI resourcesBarry Song2010-03-091-0/+36
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: increase NR_IRQS beyond NR on-chip IRQsMichael Hennerich2010-03-099-8/+18
| | | | | | | This makes room for off-chip IRQ controllers. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fill out the signal si_addr when sending a SIGBUS/SIGSEGVBarry Song2010-03-091-3/+11
| | | | | | | | | Some userspace applications use this member in diagnosing crashes. It also makes some LTP tests pass (i.e. the Blackfin arch behaves more like everyone else). Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: move ADF7021 MAC storage into platform resourcesMike Frysinger2010-03-091-0/+8
| | | | | | | Just generate a random MAC on the demo board since the ADF702x lacks dedicated storage for such things. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add support for irqflags tracingYi Li2010-03-093-0/+34
| | | | | Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: tcm-bf518: new board portHarald Krapfenbauer2010-03-094-0/+2134
| | | | | Signed-off-by: Harald Krapfenbauer <harald.krapfenbauer@bluetechnix.at> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf537-stamp: declare parallel flash as ROM with XIP kernelBarry Song2010-03-091-0/+3
| | | | | | | | | When the kernel is executing out of parallel flash (XIP), we can't have the flash go into an erase/programming cycle, otherwise the instruction fetching steps fail and everything crashes. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf527-ezkit/bf537-stamp: add example SSM2602 I2C resourcesCliff Cai2010-03-092-0/+10
| | | | | Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix up mm locking in address dumpingGraf Yang2010-03-091-1/+13
| | | | | | | | | | The locking code in the address dumper needs to grab the mm's mmap_sem so that other CPUs do not get an inconsistent view. On UP systems this really wasn't a problem, but it is easy to trigger a race on SMP systems when another CPU removes a mapping. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: bf533-{ezkit,stamp}: add sound platform devicesBarry Song2010-03-092-0/+72
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: kgdb: mark all local funcs/structs staticMike Frysinger2010-03-091-5/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix decoding of opcodes 41-47 in decode_instruction()Roel Kluin2010-03-091-1/+1
| | | | | | | This condition allowed only decoding of opcode 0x0040 Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: initial XIP supportBarry Song2010-03-0913-29/+160
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix initial stack pointer setupBarry Song2010-03-091-8/+3
| | | | | | | | | | | | During very early init, the stack pointer is given a slightly incorrect value (&init_thread_union). The value is later adjusted to the right one during early init (&init_thread_union + THREAD_SIZE), but it is used a few times in between. While the few functions used don't actually put things onto the stack (due to optimization), it's best if we simply use the right value from the start. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix the section name of init_thread_unionBarry Song2010-03-091-1/+1
| | | | | | | | Use the common attribute rather than setting the section name directly. The common linker script defines expect the newer naming. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: replace harcoded define with proper THREAD_SIZE macroBarry Song2010-03-091-1/+1
| | | | | Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: fix relocation errors with large initramfs imagesJie Zhang2010-03-091-5/+8
| | | | | | | | | | | | Since we are now discarding .exit.text at runtime instead of link time, we need to place all .text sections ahead of the .data sections. Otherwise, a really large attached initramfs may cause link errors as it pushes the PC relative relocations behind the limits of the Blackfin ISA (~16meg). The instructions in the .exit.text are unable to call back into the .text sections leading to a link failure. Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: try to simplify interrupt ifdef uglinessYi Li2010-03-091-8/+13
| | | | | Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: simplify SMP handling in SRAM codeYi Li2010-03-091-18/+9
| | | | | | | | There is no need to use {get,put}_cpu() when we already have a spinlock to protect against multiple processors running simultaneously. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: add PM/CPU hotplug supportGraf Yang2010-03-097-13/+138
| | | | | Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: make core timers per-cpu clock events for HRTYi Li2010-03-097-123/+146
| | | | | | | | | | | | | | | SMP systems require per-cpu local clock event devices in order to enable HRT support. One a BF561, we can use local core timer for this purpose. Originally, there was one global core-timer clock event device set up for core A. To accomplish this feat, we need to split the gptimer0/core timer logic so that each is a standalone clock event. There is no requirement that we only have one clock event source anyways. Once we have this, we just define per-cpu clock event devices for each local core timer. Signed-off-by: Yi Li <yi.li@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: drop cpu_callin_map on SMP systemsGraf Yang2010-03-091-6/+3
| | | | | | | Common API already provides functions for managing online CPUs. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: SMP: add support for IRQ affinitySonic Zhang2010-03-091-4/+34
| | | | | | | | Now that the Blackfin IRQ controller supports this, drivers get the normal functionality of controlling which CPU to bind IRQs to. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: unify MMR helpersMike Frysinger2010-03-091-44/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: isram: add unlikely to sanity checksMike Frysinger2010-03-091-3/+3
| | | | | | | Don't want the compiler assuming the rare sanity checks are the norm and optimize for those paths. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: update defconfigsSonic Zhang2010-03-0912-1017/+1608
| | | | | | Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Blackfin: add optimized version of Hamming Weight functionsMichael Hennerich2010-03-092-22/+55
| | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
OpenPOWER on IntegriCloud