[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/4] xen: Add files needed for minimal ppc64le build
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 19 Jun 2023 10:02:55 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bFLs2u+MvIE0Y53QNtOLCyCeJWpX9UpW9vCkROIod50=; b=cz42zEgHlDj0gND76CMvQhNRcTEuXeK/ycJ52VlTE20QEdUbicuI5dWNRzHcs6uLUPe2BmduuI+Kq0dd9+4Xh3wYQWqpVA/bB4mAfs0web9jc0cPWV4oZsSj4jLcWch81OUIRJttCkDfixbIfWgB4utHH7xlNR9rkFOJBCnFCyVhWVGJe1sVIVyYDmMv7yIIijhxA8/HL9KG+7lZ1J4RrX/8Y2f6Q9uNR13z4VQRqyinXja6TqTcSMSIkKBOvIHwKYUoDIVt+/3bX9uKRStCkabzaCaCEp1qx402Xv8NlqI55k/i1rG0X99rmxoc9aRJwfUqUl5+3Tzs7LHWX3wEOQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LNL2bOaaJDy+6bkDR2GgYizsVwZB02My2SsxsIvnd5J3qusT1J4mOJZlVEooDvf0OSoL/gi8ZW8MiajpN3zgNTGKOJSY1hEV7BlepWnpXa3oEF5yTsnWx2E33Ns+GaVMoef/fyDtedYV84ueR6LIG975AbTs4NCBu0NvYvgkWTFHl4kbvtgXsVsCwyqpE4x4wesUNLtnZ8dEMgtMNSyBFIY7okIsWa3KSUh2mpZhXmdP0za3GFbfBy6rLtySBcuEyRZczD9gmyZHBHm7BmkcI/EcEZceqD96LvAvNA+VAw8CqdGopWaGUdNM5a7IE9I7XRYSadWDeTtauhvPL5PRbw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: tpearson@xxxxxxxxxxxxxxxxxxxxx, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 19 Jun 2023 08:02:59 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 16.06.2023 22:27, Andrew Cooper wrote:
> On 16/06/2023 6:48 pm, Shawn Anastasio wrote:
>> diff --git a/xen/arch/ppc/ppc64/head.S b/xen/arch/ppc/ppc64/head.S
>> new file mode 100644
>> index 0000000000..0b289c713a
>> --- /dev/null
>> +++ b/xen/arch/ppc/ppc64/head.S
>> @@ -0,0 +1,27 @@
>> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>> +
>> +.section .text.header, "ax", %progbits
>> +
>> +ENTRY(start)
>> + /*
>> + * Depending on how we were booted, the CPU could be running in either
>> + * Little Endian or Big Endian mode. The following trampoline from Linux
>> + * cleverly uses an instruction that encodes to a NOP if the CPU's
>> + * endianness matches the assumption of the assembler (LE, in our case)
>> + * or a branch to code that performs the endian switch in the other
>> case.
>> + */
>
> Sorry, I also meant to ask. How prevalent is Big Endian in practice in
> the Power world?
>
> It's another area (like 4k pages) where I expect there to be plenty of
> fun to be had with the codebase.
Why? I'd expect "fun" if ppc was meaning to run in big-endian mode.
Jan
|