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.
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
>
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
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
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
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