]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Revert "Revert "putchar: hack it to directly call HYPERVISOR_console_write""
authorJulien Grall <julien.grall@linaro.org>
Mon, 30 Mar 2015 14:30:24 +0000 (15:30 +0100)
committerJulien Grall <julien.grall@linaro.org>
Sun, 12 Apr 2015 11:08:20 +0000 (12:08 +0100)
This reverts commit ed511ccbf87486f18da334cc6e8da54c79f4588a.

sys/kern/subr_prf.c

index 7e6fd0917530ca2e066a9098455263150bd1c900..4ae8b3984f498856bb2e2328867a0656857db9dc 100644 (file)
@@ -68,6 +68,7 @@ __FBSDID("$FreeBSD$");
  * ANSI and traditional C compilers.
  */
 #include <machine/stdarg.h>
+#include <xen/hypervisor.h>
 
 #define TOCONS 0x01
 #define TOTTY  0x02
@@ -457,6 +458,8 @@ putchar(int c, void *arg)
        struct tty *tp = ap->tty;
        int flags = ap->flags;
 
+       HYPERVISOR_console_write((char *)&c, 1);
+
        /* Don't use the tty code after a panic or while in ddb. */
        if (kdb_active) {
                if (c != '\0')