Re: [PATCH v5 4/5] xen/riscv: introduce early_printk basic stuff

2023-01-20 Thread Julien Grall
Hi, On 20/01/2023 00:48, Andrew Cooper wrote: On 19/01/2023 2:07 pm, Oleksii Kurochko wrote: diff --git a/xen/arch/riscv/early_printk.c b/xen/arch/riscv/early_printk.c new file mode 100644 index 00..6f590e712b --- /dev/null +++ b/xen/arch/riscv/early_printk.c @@ -0,0 +1,45 @@ +/* SPDX-L

Re: [PATCH v5 4/5] xen/riscv: introduce early_printk basic stuff

2023-01-19 Thread Andrew Cooper
On 19/01/2023 2:07 pm, Oleksii Kurochko wrote: > diff --git a/xen/arch/riscv/early_printk.c b/xen/arch/riscv/early_printk.c > new file mode 100644 > index 00..6f590e712b > --- /dev/null > +++ b/xen/arch/riscv/early_printk.c > @@ -0,0 +1,45 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/*

[PATCH v5 4/5] xen/riscv: introduce early_printk basic stuff

2023-01-19 Thread Oleksii Kurochko
Because printk() relies on a serial driver (like the ns16550 driver) and drivers require working virtual memory (ioremap()) there is not print functionality early in Xen boot. The patch introduces the basic stuff of early_printk functionality which will be enough to print 'hello from C environment