diff options
Diffstat (limited to 'arch/alpha/lib/srm_puts.c')
-rw-r--r-- | arch/alpha/lib/srm_puts.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/alpha/lib/srm_puts.c b/arch/alpha/lib/srm_puts.c new file mode 100644 index 000000000000..7b60a6f75a78 --- /dev/null +++ b/arch/alpha/lib/srm_puts.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | * arch/alpha/lib/srm_puts.c | ||
3 | */ | ||
4 | |||
5 | #include <linux/string.h> | ||
6 | #include <asm/console.h> | ||
7 | |||
8 | long | ||
9 | srm_puts(const char *str, long len) | ||
10 | { | ||
11 | long remaining, written; | ||
12 | |||
13 | if (!callback_init_done) | ||
14 | return len; | ||
15 | |||
16 | for (remaining = len; remaining > 0; remaining -= written) | ||
17 | { | ||
18 | written = callback_puts(0, str, remaining); | ||
19 | written &= 0xffffffff; | ||
20 | str += written; | ||
21 | } | ||
22 | return len; | ||
23 | } | ||