MIPS: eBPF: Fix icache flush end address
[linux/fpc-iii.git] / arch / mips / paravirt / serial.c
bloba37b6f9f0ede1228abf925524cd392ad6ee7268e
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2013 Cavium, Inc.
7 */
9 #include <linux/kernel.h>
10 #include <linux/virtio_console.h>
11 #include <linux/kvm_para.h>
12 #include <asm/setup.h>
15 * Emit one character to the boot console.
17 void prom_putchar(char c)
19 kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, 0 /* port 0 */,
20 (unsigned long)&c, 1 /* len == 1 */);
23 #ifdef CONFIG_VIRTIO_CONSOLE
24 static int paravirt_put_chars(u32 vtermno, const char *buf, int count)
26 kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, vtermno,
27 (unsigned long)buf, count);
29 return count;
32 static int __init paravirt_cons_init(void)
34 virtio_cons_early_init(paravirt_put_chars);
35 return 0;
37 core_initcall(paravirt_cons_init);
39 #endif