OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [system.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef __ASM_ARM_SYSTEM_H
2
#define __ASM_ARM_SYSTEM_H
3
 
4
#include <linux/kernel.h>
5
#include <asm/proc-fns.h>
6
 
7
extern void arm_malalignedptr(const char *, void *, volatile void *);
8
extern void arm_invalidptr(const char *, int);
9
 
10
#define xchg(ptr,x) \
11
        ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
12
 
13
#define tas(ptr) (xchg((ptr),1))
14
 
15
/*
16
 * switch_to(prev, next) should switch from task `prev' to `next'
17
 * `prev' will never be the same as `next'.
18
 *
19
 * `next' and `prev' should be struct task_struct, but it isn't always defined
20
 */
21
#define switch_to(prev,next) processor._switch_to(prev,next)
22
 
23
/*
24
 * Include processor dependent parts
25
 */
26
#include <asm/proc/system.h>
27
#include <asm/arch/system.h>
28
 
29
#define mb() __asm__ __volatile__ ("" : : : "memory")
30
#define nop() __asm__ __volatile__("mov r0,r0\n\t");
31
 
32
extern asmlinkage void __backtrace(void);
33
 
34
#endif
35
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.