From patchwork Mon Jul 10 08:56:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13306495 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24FD9EB64D9 for ; Mon, 10 Jul 2023 08:57:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.561122.877460 (Exim 4.92) (envelope-from ) id 1qImhK-0000vN-1T; Mon, 10 Jul 2023 08:56:46 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 561122.877460; Mon, 10 Jul 2023 08:56:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qImhJ-0000vG-V3; Mon, 10 Jul 2023 08:56:45 +0000 Received: by outflank-mailman (input) for mailman id 561122; Mon, 10 Jul 2023 08:56:44 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qImhI-000090-FT for xen-devel@lists.xenproject.org; Mon, 10 Jul 2023 08:56:44 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20615.outbound.protection.outlook.com [2a01:111:f400:7e1b::615]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b15cb6d7-1eff-11ee-b239-6b7b168915f2; Mon, 10 Jul 2023 10:56:44 +0200 (CEST) Received: from AS8PR04MB8788.eurprd04.prod.outlook.com (2603:10a6:20b:42f::21) by PAXPR04MB8255.eurprd04.prod.outlook.com (2603:10a6:102:1ce::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 08:56:42 +0000 Received: from AS8PR04MB8788.eurprd04.prod.outlook.com ([fe80::cbc0:69aa:c9a2:198e]) by AS8PR04MB8788.eurprd04.prod.outlook.com ([fe80::cbc0:69aa:c9a2:198e%7]) with mapi id 15.20.6565.016; Mon, 10 Jul 2023 08:56:42 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b15cb6d7-1eff-11ee-b239-6b7b168915f2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kbc1KKsKJgEyrBjg5ntpwXl0dwQGj2DHkhDarLkIpZ2CDX5KWgxtpjt87qob0R1GJ3D6abnIB9rPJIHBC8KDbaCuV5NtKZcZ84qcyackOQKYtMaEDDcABVT1+mQjexXIYZCfyoA0v+5XYlp24o8UCFn0tcPnANFVk5Iv7gZ1EQS/mWJAUqYd5LPv+Y80CbzySPo6F9nk1jemXJCFbtIBuPL30qENHemBWxFtt0iocWZ50oA4yVflaP7mgf20PL8VuvRUcLgtlbIiOfT29569ERWvwGP5mVKdZ+GnQH7ldHEuyPviSIkap2gqcqom+LVqPxL/Dqkg9fTNOOy4ClB7xw== 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=c/xR6YkWfKWV2eWIcLISE9nlBCFQDkrQgA4AhpXFs/s=; b=lwMzKG62PzYz2I4EwF3zFqhFpADK0C7AwcfJVIPCXPO0JENLH3ok024POdCuoE9DWgWr7RchKlyuw3Mfch7/kpMva7AgqW+cPfEDP5kRoyDjHeR5Hi4/qEG6zGqCjSZ5ex7j4TrZsFJeGVBim9VPxh7dARcdHlf0al49/IMVIlb5PqIFNLQPFbPQ6S8aL6bTR8/a+3PTv2Tdb1yvjAxBKp+VNyRWG7FZbiMwRdr/ukPwXvYdJci4SOUNyZQyL0rEtDIU177trmN7DozW6mb0GkCMrA9D6w0a/vM+2eFBt+Z4C0FZ8UAPbTksSgq2rrWEknlFWsJB4WBN+lQrhX3j5g== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c/xR6YkWfKWV2eWIcLISE9nlBCFQDkrQgA4AhpXFs/s=; b=iE3+MhXgnraMQ/sMwPAF1lQOq030esL6uo6gN3W7PECx+PD8N/UAqpwALoCo6Fj07Mzpj9qdLcmNzr+D497hscgLoHOaKq5GTrf7TObMktUfZgGYOAYYj6YcwLqT2v2zegqNiau8Gbll7pTjVM1VSsqoCwiqwz0weLcVdwju8bo0TlykGsuLmCE6yX8Y25rPIHxm4FZD8/quPXtEDDvZRFNiPT4bmv7FLKE/R1xmjXe90RGmlmW2tBSpf0XjR5Et1AUotAarSxagqc275psq4IaHK4MUWjOIa4612E2C7mGwZlhQrDIp/WMjvtgoDf7GOwLV1Sgf2aRz3zeOdfFsGA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Message-ID: <283fbba2-4d96-2ed0-4e0b-8d432c612667@suse.com> Date: Mon, 10 Jul 2023 10:56:40 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: [PATCH v3 7/8] PPC: switch entry point annotations to common model Content-Language: en-US From: Jan Beulich To: "xen-devel@lists.xenproject.org" Cc: Shawn Anastasio References: In-Reply-To: X-ClientProxiedBy: FR0P281CA0161.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::8) To AS8PR04MB8788.eurprd04.prod.outlook.com (2603:10a6:20b:42f::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8788:EE_|PAXPR04MB8255:EE_ X-MS-Office365-Filtering-Correlation-Id: acd97017-f6ca-4644-3057-08db812394af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jb1qfUgs4w1fY90Z1rsvsG/1iOWdHl2Vsdm7UhKZSmXimcUWPPqAdhR/vU9Kk0BUwmEsaVYrmrjPgnuueVKUhJimFOsBHFrfnG3xeKztpT/7OAufstyPZd/R23jxbhAkZZwkWsvqCQEzeBd8iEiCgAKVx2s84Pmt5Lq5/BRaSk+lX7oS4qug8SuvNrLmFbZKSWsMBybMWGqF7zn2GkyyTgR1vWHeddXdjnO0fYQ7qi2rixPNIYXiuv2OZgF2vJIpjSW5J2P7N0EiPgXaRqj83a2Sp2kCwgxf57MRAHNEYrDt0vyvYoHU6D+yPImPiEwfLJ+anY+/P3iZQOeljHTWDw6W73hIArDIPim7zhryhcNKz8j5f0WmpElvejvZcJIe2fpIXKjSrcFDiYYoT40BqaT9AG6TaHNt+Vv8HUWNWcJQhQAg6aS1KoWKnGCa8b0F83cnEaNoKmIs12E+enxfD/l06VSZOIrPg/LtQ/ab53TK67ccyUiaYS6NujSKfV/eWRcmeameik+sias/2YagaLBMwHLt8+dyLsDUXGQVHsjr/mmBws6U1l/G0IzYKSGtQz9I1uY+xrFTYzbHc/QE7+XbxC7itLumPkBsnbxKd3hgOsWJ+AM+G8IUVRryvepjwEOSqZ3SaiNXF26vqPwIRQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS8PR04MB8788.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(376002)(136003)(346002)(396003)(366004)(451199021)(186003)(26005)(6506007)(2616005)(6512007)(83380400001)(41300700001)(4326008)(6916009)(2906002)(66556008)(316002)(5660300002)(66476007)(8676002)(8936002)(478600001)(66946007)(6486002)(36756003)(38100700002)(31696002)(86362001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?jSoQYyKWzeyOlXJkYub2sr/25vTN?= =?utf-8?q?GESAVHNC5Z1G8nxLf33AWOFlPEbbjC0gbm0JbmRArQ81QGxOtXIIQptyKiWBW6pbU?= =?utf-8?q?mkiYTLTt8aclboqCSvMqpnh42XoNIF11cAItj2GUOa4IpNQbXQtj51D09532kSWty?= =?utf-8?q?qE3Z0pHPxTx5ZXpL6A9uiyRs30XafA2kL6PHteQ2szY/NcTMgffCBUzl4a6VTzJyI?= =?utf-8?q?ZgvZ6wG9kWo7wZnb8vNMkzjaNEfrLgd6ZwWIRuvjVEdlpO8TPGVMkqBNRFAa7u3Tx?= =?utf-8?q?cSKTky4f4bwpgpBfYn2M7r8/n7BDXcRQnalBiqFjK/ydokWJ0jwET1Y6YslkGFhq7?= =?utf-8?q?1ESDxJmp28sIKXP4u5ZAlJ+h0SzPZbQUEz1RsiZgQ7t/jJfvagD+U8GONfv4HrX+S?= =?utf-8?q?PNp4PyawlcJkb6xJiRVrmiLx5P1mTElWMHp7FG0/H9oXe05wudQiQSwH0whykZMUI?= =?utf-8?q?ba2yOzzSYhfZmhB9MdPzuRx4nsvoj8gL5dYhnbLKDYdUeopMA2MzMurG0mzG+/Cup?= =?utf-8?q?3C91iSNknrXlE6FhDTX09HW1Az1GkiYKzFA9iWPM0qZ/xUvgCnZw0ikgioNRExs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r?= =?utf-8?q?uQlk5ZOmlPKtJ6mnQ646dfZ8NpIsVz8LRi7Hh8HBemHSeY3xNkyK5BnIWm+QNj2Rm?= =?utf-8?q?GY+8Dftoz40h?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: acd97017-f6ca-4644-3057-08db812394af X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8788.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 08:56:42.2309 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: prxM7UAnXhvqIVNjvipszabTyUjWP4EhDwOecgCAO4acjTgmtkzQ/db2VQ4SvaoC+uE9MJQYv7Cgikm8dDRiRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8255 Use the generic framework in xen/linkage.h. No change in generated code except of course the converted symbol changes to be a hidden one. Signed-off-by: Jan Beulich --- v3: New. --- a/xen/arch/ppc/include/asm/config.h +++ b/xen/arch/ppc/include/asm/config.h @@ -31,12 +31,7 @@ /* Linkage for PPC */ #ifdef __ASSEMBLY__ -#define ALIGN .p2align 2 - -#define ENTRY(name) \ - .globl name; \ - ALIGN; \ - name: +#define CODE_ALIGN 4 #endif #define XEN_VIRT_START _AT(UL, 0x400000) --- a/xen/arch/ppc/ppc64/head.S +++ b/xen/arch/ppc/ppc64/head.S @@ -1,8 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ +#include + .section .text.header, "ax", %progbits -ENTRY(start) +FUNC(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 @@ -25,6 +27,4 @@ ENTRY(start) /* Now that the endianness is confirmed, continue */ 1: b 1b - - .size start, . - start - .type start, %function +END(start)