Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-08-01 Thread Shawn Anastasio
On 8/1/23 7:20 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> @@ -11,16 +13,19 @@ ENTRY(start) >> FIXUP_ENDIAN >> >> /* set up the TOC pointer */ >> -LOAD_IMM32(%r2, .TOC.) >> +bcl 20, 31, .+4 >> +1: mflr%r12 >> +addis %r2, %r12, .TOC.

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-08-01 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > @@ -11,16 +13,19 @@ ENTRY(start) > FIXUP_ENDIAN > > /* set up the TOC pointer */ > -LOAD_IMM32(%r2, .TOC.) > +bcl 20, 31, .+4 > +1: mflr%r12 > +addis %r2, %r12, .TOC.-1b@ha > +addi%r2, %r2, .TOC.-1b@l >

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-31 Thread Jan Beulich
On 31.07.2023 21:09, Shawn Anastasio wrote: > On 7/31/23 10:58 AM, Jan Beulich wrote: >> On 28.07.2023 23:35, Shawn Anastasio wrote: >>> --- a/xen/arch/ppc/ppc64/head.S >>> +++ b/xen/arch/ppc/ppc64/head.S >>> @@ -1,9 +1,11 @@ >>> /* SPDX-License-Identifier: GPL-2.0-or-later */ >>> >>> #include

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-31 Thread Shawn Anastasio
On 7/31/23 10:58 AM, Jan Beulich wrote: > On 28.07.2023 23:35, Shawn Anastasio wrote: >> --- a/xen/arch/ppc/ppc64/head.S >> +++ b/xen/arch/ppc/ppc64/head.S >> @@ -1,9 +1,11 @@ >> /* SPDX-License-Identifier: GPL-2.0-or-later */ >> >> #include >> +#include >> >> .section .text.header, "a

Re: [PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-31 Thread Jan Beulich
On 28.07.2023 23:35, Shawn Anastasio wrote: > --- a/xen/arch/ppc/ppc64/head.S > +++ b/xen/arch/ppc/ppc64/head.S > @@ -1,9 +1,11 @@ > /* SPDX-License-Identifier: GPL-2.0-or-later */ > > #include > +#include > > .section .text.header, "ax", %progbits > > + > ENTRY(start) Nit: Stray c

[PATCH 2/5] xen/ppc: Switch to medium PIC code model

2023-07-28 Thread Shawn Anastasio
Switch Xen to the medium PIC code model on Power. Among other things, this allows us to be load address agnostic and will open the door to booting on bare metal PowerNV systems that don't use OpenFirmware. Also update XEN_VIRT_START to 0xc000, which is equivalent to address 0x0 when th