@@ -12,21 +12,11 @@
#include <linux/console.h>
#include <linux/init.h>
-extern void printch(int);
-
-static void early_write(const char *s, unsigned n)
-{
- while (n-- > 0) {
- if (*s == '\n')
- printch('\r');
- printch(*s);
- s++;
- }
-}
+void xen_raw_console_write(const char *str);
static void early_console_write(struct console *con, const char *s, unsigned n)
{
- early_write(s, n);
+ xen_raw_console_write(s);
}
static struct console early_console_dev = {
@@ -642,7 +642,7 @@ void xen_raw_console_write(const char *str)
ssize_t len = strlen(str);
int rc = 0;
- if (xen_domain()) {
+ if (1 || xen_domain()) {
rc = dom0_write_console(0, str, len);
#ifdef CONFIG_X86
if (rc == -ENOSYS && xen_hvm_domain())