Re: [PATCH v2 2/2] xen/ppc: Implement a basic exception handler

2023-10-25 Thread Shawn Anastasio
On 10/20/23 1:22 AM, Jan Beulich wrote: > On 19.10.2023 22:02, Shawn Anastasio wrote: >> On 10/18/23 10:43 AM, Jan Beulich wrote: >>> On 13.10.2023 20:13, Shawn Anastasio wrote: --- a/xen/arch/ppc/setup.c +++ b/xen/arch/ppc/setup.c @@ -11,6 +11,15 @@ /* Xen stack for bringing u

Re: [PATCH v2 2/2] xen/ppc: Implement a basic exception handler

2023-10-19 Thread Jan Beulich
On 19.10.2023 22:02, Shawn Anastasio wrote: > On 10/18/23 10:43 AM, Jan Beulich wrote: >> On 13.10.2023 20:13, Shawn Anastasio wrote: >>> --- a/xen/arch/ppc/setup.c >>> +++ b/xen/arch/ppc/setup.c >>> @@ -11,6 +11,15 @@ >>> /* Xen stack for bringing up the first CPU. */ >>> unsigned char __initdat

Re: [PATCH v2 2/2] xen/ppc: Implement a basic exception handler

2023-10-19 Thread Shawn Anastasio
On 10/18/23 10:43 AM, Jan Beulich wrote: > On 13.10.2023 20:13, Shawn Anastasio wrote: >> --- /dev/null >> +++ b/xen/arch/ppc/ppc64/exceptions-asm.S >> @@ -0,0 +1,129 @@ >> +/* SPDX-License-Identifier: GPL-2.0-or-later */ >> + >> +#include >> +#include >> + >> +.section .text.exceptions, "ax"

Re: [PATCH v2 2/2] xen/ppc: Implement a basic exception handler

2023-10-18 Thread Jan Beulich
On 13.10.2023 20:13, Shawn Anastasio wrote: > --- /dev/null > +++ b/xen/arch/ppc/ppc64/exceptions-asm.S > @@ -0,0 +1,129 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ > + > +#include > +#include > + > +.section .text.exceptions, "ax", %progbits > + > +/* Helper to dump CPU state t

[PATCH v2 2/2] xen/ppc: Implement a basic exception handler

2023-10-13 Thread Shawn Anastasio
Implement a basic exception handler that dumps the CPU state to the console, as well as the code required to set the correct exception vector table's base address in setup.c. Signed-off-by: Shawn Anastasio --- v2: - Place {h_,}exception_common in .text.exceptions section - Use assembler macro