[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 7/8] PPC: switch entry point annotations to common model


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 10 Jul 2023 10:56:40 +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=c/xR6YkWfKWV2eWIcLISE9nlBCFQDkrQgA4AhpXFs/s=; b=lwMzKG62PzYz2I4EwF3zFqhFpADK0C7AwcfJVIPCXPO0JENLH3ok024POdCuoE9DWgWr7RchKlyuw3Mfch7/kpMva7AgqW+cPfEDP5kRoyDjHeR5Hi4/qEG6zGqCjSZ5ex7j4TrZsFJeGVBim9VPxh7dARcdHlf0al49/IMVIlb5PqIFNLQPFbPQ6S8aL6bTR8/a+3PTv2Tdb1yvjAxBKp+VNyRWG7FZbiMwRdr/ukPwXvYdJci4SOUNyZQyL0rEtDIU177trmN7DozW6mb0GkCMrA9D6w0a/vM+2eFBt+Z4C0FZ8UAPbTksSgq2rrWEknlFWsJB4WBN+lQrhX3j5g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kbc1KKsKJgEyrBjg5ntpwXl0dwQGj2DHkhDarLkIpZ2CDX5KWgxtpjt87qob0R1GJ3D6abnIB9rPJIHBC8KDbaCuV5NtKZcZ84qcyackOQKYtMaEDDcABVT1+mQjexXIYZCfyoA0v+5XYlp24o8UCFn0tcPnANFVk5Iv7gZ1EQS/mWJAUqYd5LPv+Y80CbzySPo6F9nk1jemXJCFbtIBuPL30qENHemBWxFtt0iocWZ50oA4yVflaP7mgf20PL8VuvRUcLgtlbIiOfT29569ERWvwGP5mVKdZ+GnQH7ldHEuyPviSIkap2gqcqom+LVqPxL/Dqkg9fTNOOy4ClB7xw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 10 Jul 2023 08:56:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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 <jbeulich@xxxxxxxx>
---
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 <xen/linkage.h>
+
     .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)




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.