summaryrefslogtreecommitdiff
path: root/kern/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/macros.h')
-rw-r--r--kern/macros.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/macros.h b/kern/macros.h
index 6259dcee..6b203e52 100644
--- a/kern/macros.h
+++ b/kern/macros.h
@@ -43,6 +43,16 @@
#define DECL_CONST(x, s) x
#else /* __ASSEMBLER__ */
#define __DECL_CONST(x, s) x##s
+void cga_putc(char c);
+
+static inline void
+moo_print(const char *s)
+{
+ while (*s != '\0') {
+ cga_putc(*s);
+ s++;
+ }
+}
#define DECL_CONST(x, s) __DECL_CONST(x, s)
#endif /* __ASSEMBLER__ */