aboutsummaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm
AgeCommit message (Collapse)AuthorFilesLines
2012-03-06openrisc: remove semicolon from KSTK_ defsJonas Bonn1-2/+2
Things break rather ungracefully when a semicolon gets substituted into an expression... discovered while build-testing linux-next for 3.4 Signed-off-by: Jonas Bonn <[email protected]>
2012-03-06openrisc: sanitize use of orig_gpr11Jonas Bonn2-6/+7
The pt_regs struct had both a 'syscallno' field and an 'orig_gpr11' field and it wasn't really clear how these were supposed to be used. This patch removes the syscallno field altogether and makes orig_gpr11 work more like other architectures: keep track of syscall number in progress or hold -1 for non-syscall exceptions. Signed-off-by: Jonas Bonn <[email protected]>
2012-03-06openrisc: fix virt_addr_validJonas Bonn1-2/+1
virt_addr_valid() shouldn't be comparing the address to memory_end which is a phys_addr_t. Change this to do like other arches and check that the address falls within a valid page frame. Signed-off-by: Jonas Bonn <[email protected]>
2012-02-26irq_domain: Centralize definition of irq_dispose_mapping()Grant Likely1-9/+1
Several architectures define their own empty irq_dispose_mapping(). Since the irq_domain code is centralized now, there is little need to do so. This patch removes them and creates a new empty copy when !CONFIG_IRQ_DOMAIN is selected. The patch also means that IRQ_DOMAIN becomes selectable on all architectures. Signed-off-by: Grant Likely <[email protected]> Cc: Rob Herring <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Jonas Bonn <[email protected]> Cc: [email protected] Cc: [email protected]
2012-02-17openrisc: included linux/thread_info.h twiceDanny Kukawka1-1/+0
arch/openrisc/include/asm/uaccess.h: included 'linux/thread_info.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka <[email protected]> Signed-off-by: Jonas Bonn <[email protected]>
2012-02-17openrisc: Fix up audit_syscall_[entry|exit]() usageJonas Bonn1-1/+7
Commits d7e7528bcd456f5c36ad4a202ccfb43c5aa98bc4 and b05d8447e7821695bc2fa3359431f7a664232743 simplified the usage of the audit_syscall_[entry|exit] functions. Unfortunately, the OpenRISC architecture didn't get fixed up along with the other architectures when those patches were pushed. This makes the relevant changes to this architecture. Signed-off-by: Jonas Bonn <[email protected]>
2011-12-08memblock: Fix include breakages caused by 24aa07882bTejun Heo1-24/+0
24aa07882b (memblock, x86: Replace memblock_x86_reserve/free_range() with generic ones) removed arch/x86/include/asm/memblock.h and dropped its inclusion from include/linux/memblock.h which breaks other architectures which depended on the generic memblock.h pulling in the arch specific one. However, the proper fix isn't adding back the asm inclusion. memblock doesn't have any arch dependent part and doesn't need arch specific header file and asm/memblock.h files are either practically empty or contain mostly unrelated arch specific stuff. * In microblaze, sh, powerpc, sparc and openrisc, asm/memblock.h is either empty or just contains unused MEMBLOCK_DBG() macro. Remove them. * In arm and unicore32, asm/memblock.h contains arch specific stuff. Include it directly from its users. It might be a good idea to rename the header file to avoid confusion. Signed-off-by: Tejun Heo <[email protected]> Reported-by: "H. Peter Anvin" <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Russell King <[email protected]> Cc: Michal Simek <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mundt <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Guan Xuetao <[email protected]>
2011-09-27doc: fix broken referencesPaul Bolle1-1/+1
There are numerous broken references to Documentation files (in other Documentation files, in comments, etc.). These broken references are caused by typo's in the references, and by renames or removals of the Documentation files. Some broken references are simply odd. Fix these broken references, sometimes by dropping the irrelevant text they were part of. Signed-off-by: Paul Bolle <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
2011-09-11Add missing DMA opsJonas Bonn1-2/+57
For the initial architecture submission, not all of the DMA ops were implemented. This patch adds the *map_page and *map_sg variants of the DMA mapping ops. This patch is currently of interest mainly to some drivers that haven't been submitted upstream yet. Signed-off-by: Jonas Bonn <[email protected]>
2011-09-05openrisc: don't use pt_regs in struct sigcontextJonas Bonn1-6/+1
As it was decided not to export struct pt_regs to userspace, struct sigcontext shouldn't be using it either. The pt_regs struct for OpenRISC is kernel internal and the layout of the registers may change in the future. The struct user_regs_struct is what is guaranteed to remain stable, so struct sigcontext may use that instead. This patch removes the usage of struct pt_regs in struct sigcontext and makes according changes in signal.c to get the register layout right. The usp field is removed from the sigcontext structure as this information is already contained in the user_regs_struct. Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Emilio Cota <[email protected]>
2011-07-22OpenRISC: HeadersJonas Bonn21-0/+1392
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: GPIOJonas Bonn1-0/+65
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: Scheduling/Process managementJonas Bonn1-0/+134
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: System callsJonas Bonn3-0/+135
The OpenRISC Linux kernel conforms to the "generic" syscall interface which contains only the reduced set of syscalls deemed necessary for new architectures. Unfortunately, the uClibc port for OpenRISC does not fully support this reduced set; as such, an additional patch available out-of-tree needs to be applied to the kernel in order to use the current uClibc. This is just a temporary measure until the libc port can be straightened out; it is likely that OpenRISC will make the transition to glibc shortly where the generic syscall interface is better supported. Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: IRQJonas Bonn2-0/+56
This patch adds support for the OpenRISC PIC. Signed-off-by: Jonas Bonn <[email protected]> Cc: [email protected] Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: TimekeepingJonas Bonn1-0/+36
Implements support for the OpenRISC timer which is a 28 bit cycle counter that can be read out of a special purpose register. This counter is used as a both a clock event and clocksource device. Signed-off-by: Jonas Bonn <[email protected]> Cc: [email protected] Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: DMAJonas Bonn1-0/+134
Simple DMA implementation. Allows for allocation of coherent memory (simply uncached) for DMA operations. Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: PTraceJonas Bonn1-0/+131
This patch implements minimal PTrace support. The pt_regs structure is not exported to userspace for OpenRISC; rather, the GETREGSET mechanism is intended to be used and the registers, as such, exported in the core dump format which is ABI stable. This is in line with what is intended for new architectures as of 2.6.34 and has the advantage of permitting the layout of the registers on the kernel stack (as per pt_regs) to be freely modified. Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: Build infrastructureJonas Bonn1-0/+64
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: Signal handlingJonas Bonn1-0/+38
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: Memory managementJonas Bonn11-0/+1328
Signed-off-by: Jonas Bonn <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
2011-07-22OpenRISC: Device treeJonas Bonn1-0/+77
The OpenRISC architecture uses the device tree infrastructure for the platform description. This is currently limited to having a device tree built into the kernel, but work is underway within the OpenRISC project to define how this device tree blob should be passed into the kernel from an external resource. Patch contains a single example DTS file to go with the defconfig for or1ksim. Signed-off-by: Jonas Bonn <[email protected]> Cc: [email protected] Reviewed-by: Arnd Bergmann <[email protected]>