X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-cris%2Fsystem.h;h=b1c593b6dbff163df5118bc6ba8c5841148fd43a;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=f9cf802625745dc0305b250d8faff91c81ce57f5;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-cris/system.h b/include/asm-cris/system.h index f9cf80262..b1c593b6d 100644 --- a/include/asm-cris/system.h +++ b/include/asm-cris/system.h @@ -8,7 +8,6 @@ */ extern struct task_struct *resume(struct task_struct *prev, struct task_struct *next, int); -#define prepare_to_switch() do { } while(0) #define switch_to(prev,next,last) last = resume(prev,next, \ (int)&((struct task_struct *)0)->thread) @@ -41,7 +40,7 @@ extern struct task_struct *resume(struct task_struct *prev, struct task_struct * void disable_hlt(void); void enable_hlt(void); -extern inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) +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 */ @@ -69,4 +68,8 @@ extern inline unsigned long __xchg(unsigned long x, volatile void * ptr, int siz return x; } +#define arch_align_stack(x) (x) + +void default_idle(void); + #endif