Skip to content

Commit

Permalink
Fix build with CONFIG_PRINTK disabled.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent e50c0a8 commit ac130ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/asm-mips/asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ symbol = value
/*
* Print formatted string
*/
#ifdef CONFIG_PRINTK
#define PRINT(string) \
.set push; \
.set reorder; \
PTR_LA a0,8f; \
jal printk; \
.set pop; \
TEXT(string)
#else
#define PRINT(string)
#endif

#define TEXT(msg) \
.pushsection .data; \
Expand Down

0 comments on commit ac130ac

Please sign in to comment.