-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 297230 b: refs/heads/master c: b1a154d h: refs/heads/master v: v3
- Loading branch information
David Howells
committed
Mar 28, 2012
1 parent
0b43091
commit b240111
Showing
40 changed files
with
128 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 6a846f3f821a252762897751fa0aeb68dda635f5 | ||
refs/heads/master: b1a154dbf9ddbf396578642299ce75aa73d01763 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,6 @@ | |
|
||
#include <asm/etraxi2c.h> | ||
|
||
#include <asm/system.h> | ||
#include <asm/io.h> | ||
#include <asm/delay.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef __ASM_CRIS_BARRIER_H | ||
#define __ASM_CRIS_BARRIER_H | ||
|
||
#define nop() __asm__ __volatile__ ("nop"); | ||
|
||
#define barrier() __asm__ __volatile__("": : :"memory") | ||
#define mb() barrier() | ||
#define rmb() mb() | ||
#define wmb() mb() | ||
#define read_barrier_depends() do { } while(0) | ||
#define set_mb(var, value) do { var = value; mb(); } while (0) | ||
|
||
#ifdef CONFIG_SMP | ||
#define smp_mb() mb() | ||
#define smp_rmb() rmb() | ||
#define smp_wmb() wmb() | ||
#define smp_read_barrier_depends() read_barrier_depends() | ||
#else | ||
#define smp_mb() barrier() | ||
#define smp_rmb() barrier() | ||
#define smp_wmb() barrier() | ||
#define smp_read_barrier_depends() do { } while(0) | ||
#endif | ||
|
||
#endif /* __ASM_CRIS_BARRIER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef __ASM_CRIS_CMPXCHG__ | ||
#define __ASM_CRIS_CMPXCHG__ | ||
|
||
#include <linux/irqflags.h> | ||
|
||
static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) | ||
{ | ||
/* since Etrax doesn't have any atomic xchg instructions, we need to disable | ||
irq's (if enabled) and do it with move.d's */ | ||
unsigned long flags,temp; | ||
local_irq_save(flags); /* save flags, including irq enable bit and shut off irqs */ | ||
switch (size) { | ||
case 1: | ||
*((unsigned char *)&temp) = x; | ||
x = *(unsigned char *)ptr; | ||
*(unsigned char *)ptr = *((unsigned char *)&temp); | ||
break; | ||
case 2: | ||
*((unsigned short *)&temp) = x; | ||
x = *(unsigned short *)ptr; | ||
*(unsigned short *)ptr = *((unsigned short *)&temp); | ||
break; | ||
case 4: | ||
temp = x; | ||
x = *(unsigned long *)ptr; | ||
*(unsigned long *)ptr = temp; | ||
break; | ||
} | ||
local_irq_restore(flags); /* restore irq enable bit */ | ||
return x; | ||
} | ||
|
||
#define xchg(ptr,x) \ | ||
((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) | ||
|
||
#define tas(ptr) (xchg((ptr),1)) | ||
|
||
#include <asm-generic/cmpxchg-local.h> | ||
|
||
/* | ||
* cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make | ||
* them available. | ||
*/ | ||
#define cmpxchg_local(ptr, o, n) \ | ||
((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ | ||
(unsigned long)(n), sizeof(*(ptr)))) | ||
#define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) | ||
|
||
#ifndef CONFIG_SMP | ||
#include <asm-generic/cmpxchg.h> | ||
#endif | ||
|
||
#endif /* __ASM_CRIS_CMPXCHG__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef __ASM_CRIS_EXEC_H | ||
#define __ASM_CRIS_EXEC_H | ||
|
||
#define arch_align_stack(x) (x) | ||
|
||
#endif /* __ASM_CRIS_EXEC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef __ASM_CRIS_SWITCH_TO_H | ||
#define __ASM_CRIS_SWITCH_TO_H | ||
|
||
/* the switch_to macro calls resume, an asm function in entry.S which does the actual | ||
* task switching. | ||
*/ | ||
|
||
extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int); | ||
#define switch_to(prev,next,last) last = resume(prev,next, \ | ||
(int)&((struct task_struct *)0)->thread) | ||
|
||
#endif /* __ASM_CRIS_SWITCH_TO_H */ |
Oops, something went wrong.