[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5245FD71.3080408@linaro.org>
Date: Fri, 27 Sep 2013 22:49:37 +0100
From: Julien Grall <julien.grall@...aro.org>
To: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
ian.campbell@...rix.com, linux-kernel@...r.kernel.org,
xen-devel@...ts.xenproject.org
Subject: Re: [Xen-devel] [PATCH] xen/hvc-console: Make it work with HVM guests.
On 09/27/2013 10:25 PM, Konrad Rzeszutek Wilk wrote:
> @@ -641,7 +641,20 @@ struct console xenboot_console = {
>
> void xen_raw_console_write(const char *str)
> {
> - dom0_write_console(0, str, strlen(str));
> + ssize_t len = strlen(str);
> + int rc = 0;
> +
> + if (xen_domain()) {
> + dom0_write_console(0, str, len);
> + if (rc == -ENOSYS && xen_hvm_domain())
> + goto outb_print;
> +
> + } else if (xen_cpuid_base()) {
> + int i;
> +outb_print:
> + for (i = 0; i < len; i++)
> + outb(str[i], 0xe9);
> + }
> }
xen_cpuid_base and outb(0xe9) is x86 specific and won't compile on ARM.
You need to add ifdef around.
--
Julien Grall
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists