X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-v850%2Fsystem.h;h=7091af4b786677ca176f08d01127cc6f69361185;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=072a997dc5a9638bc47b986c316e12aad8bf7a65;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-v850/system.h b/include/asm-v850/system.h index 072a997dc..7091af4b7 100644 --- a/include/asm-v850/system.h +++ b/include/asm-v850/system.h @@ -18,8 +18,6 @@ #include -#define prepare_to_switch() do { } while (0) - /* * switch_to(n) should switch tasks to task ptr, first checking that * ptr isn't the current task, in which case it does nothing. @@ -81,7 +79,7 @@ static inline int irqs_disabled (void) ((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr)))) #define tas(ptr) (xchg ((ptr), 1)) -extern inline unsigned long __xchg (unsigned long with, +static inline unsigned long __xchg (unsigned long with, __volatile__ void *ptr, int size) { unsigned long tmp, flags; @@ -108,4 +106,6 @@ extern inline unsigned long __xchg (unsigned long with, return tmp; } +#define arch_align_stack(x) (x) + #endif /* __V850_SYSTEM_H__ */