diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-02-11 22:46:19 +0100 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2008-03-13 14:10:57 +0100 |
commit | e153fa1406b68460e0a8e498a2b83d50584cc40a (patch) | |
tree | 43821d612e44dca64e41c46b469975d565734c01 /include/asm-avr32 | |
parent | d241d9f4344c328b53bdfe927ca56a274614f7f6 (diff) |
avr32: Use better asm constraint in prefetch()
The pref instruction takes a displacement. Use it.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r-- | include/asm-avr32/processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-avr32/processor.h b/include/asm-avr32/processor.h index 49a88f5a9d2f..2abd3de6b4b4 100644 --- a/include/asm-avr32/processor.h +++ b/include/asm-avr32/processor.h @@ -169,7 +169,7 @@ extern void show_stack_log_lvl(struct task_struct *tsk, unsigned long sp, static inline void prefetch(const void *x) { const char *c = x; - asm volatile("pref %0" : : "r"(c)); + asm volatile("pref %0" : : "RKs16"(*c)); } #define PREFETCH_STRIDE L1_CACHE_BYTES |