Skip to content

Commit

Permalink
[MIPS] Use "R" constraint for cache_op.
Browse files Browse the repository at this point in the history
Gcc might emit an absolute address for the the "m" constraint which
gas unfortunately does not permit.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Apr 19, 2006
1 parent e4ac58a commit 675055b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-mips/r4kcache.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
" cache %0, %1 \n" \
" .set pop \n" \
: \
: "i" (op), "m" (*(unsigned char *)(addr)))
: "i" (op), "R" (*(unsigned char *)(addr)))

static inline void flush_icache_line_indexed(unsigned long addr)
{
Expand Down

0 comments on commit 675055b

Please sign in to comment.