{"id":815068,"url":"http://patchwork.ozlabs.org/api/1.2/patches/815068/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1505758708-29213-2-git-send-email-philipp.tomsich@theobroma-systems.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505758708-29213-2-git-send-email-philipp.tomsich@theobroma-systems.com>","list_archive_url":null,"date":"2017-09-18T18:18:24","name":"[U-Boot,v2,1/5] arm: make save_boot_params_ret prototype visible for AArch64","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"38c6a663623bc47765c23a01627aa28e0117fb2a","submitter":{"id":53488,"url":"http://patchwork.ozlabs.org/api/1.2/people/53488/?format=json","name":"Philipp Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"delegate":{"id":69486,"url":"http://patchwork.ozlabs.org/api/1.2/users/69486/?format=json","username":"ptomsich","first_name":"Philipp","last_name":"Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1505758708-29213-2-git-send-email-philipp.tomsich@theobroma-systems.com/mbox/","series":[{"id":3697,"url":"http://patchwork.ozlabs.org/api/1.2/series/3697/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3697","date":"2017-09-18T18:18:23","name":"rockchip: back-to-bootrom: replace assembly-implementation with C-code","version":2,"mbox":"http://patchwork.ozlabs.org/series/3697/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815068/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815068/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwvVL5jsSz9s7m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 04:22:02 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 8B4A3C21D9E; Mon, 18 Sep 2017 18:19:17 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id D55FBC21D8D;\n\tMon, 18 Sep 2017 18:18:41 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 182E8C21C2B; Mon, 18 Sep 2017 18:18:38 +0000 (UTC)","from mail.theobroma-systems.com (vegas.theobroma-systems.com\n\t[144.76.126.164])\n\tby lists.denx.de (Postfix) with ESMTPS id E884CC21C41\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 18:18:37 +0000 (UTC)","from [86.59.122.178] (port=34776 helo=android.lan)\n\tby mail.theobroma-systems.com with esmtpsa\n\t(TLS1.2:RSA_AES_128_CBC_SHA256:128)\n\t(Exim 4.80) (envelope-from <philipp.tomsich@theobroma-systems.com>)\n\tid 1du0cs-00053h-J6; Mon, 18 Sep 2017 20:18:34 +0200"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=0.0 required=5.0 tests=none autolearn=unavailable\n\tautolearn_force=no version=3.4.0","From":"Philipp Tomsich <philipp.tomsich@theobroma-systems.com>","To":"u-boot@lists.denx.de","Date":"Mon, 18 Sep 2017 20:18:24 +0200","Message-Id":"<1505758708-29213-2-git-send-email-philipp.tomsich@theobroma-systems.com>","X-Mailer":"git-send-email 2.1.4","In-Reply-To":"<1505758708-29213-1-git-send-email-philipp.tomsich@theobroma-systems.com>","References":"<1505758708-29213-1-git-send-email-philipp.tomsich@theobroma-systems.com>","Cc":"Stephen Warren <swarren@nvidia.com>,\n\tKlaus Goger <klaus.goger@theobroma-systems.com>,\n\tAndy Yan <andy.yan@rock-chips.com>","Subject":"[U-Boot] [PATCH v2 1/5] arm: make save_boot_params_ret prototype\n\tvisible for AArch64","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"The save_boot_params_ret() prototype (for those of us, that have a\nvalid SP on entry and can implement save_boot_params() in C), was\npreviously only defined for !defined(CONFIG_ARM64).\n\nThis moves the declaration to a common block to ensure the prototype\nis available to everyone that might need it.\n\nSigned-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>\n---\n\nChanges in v2: None\n\n arch/arm/include/asm/system.h | 62 +++++++++++++++++++++----------------------\n 1 file changed, 31 insertions(+), 31 deletions(-)","diff":"diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h\nindex 79bd19a..e2af296 100644\n--- a/arch/arm/include/asm/system.h\n+++ b/arch/arm/include/asm/system.h\n@@ -332,37 +332,6 @@ void psci_arch_init(void);\n \n #ifndef __ASSEMBLY__\n \n-/**\n- * save_boot_params() - Save boot parameters before starting reset sequence\n- *\n- * If you provide this function it will be called immediately U-Boot starts,\n- * both for SPL and U-Boot proper.\n- *\n- * All registers are unchanged from U-Boot entry. No registers need be\n- * preserved.\n- *\n- * This is not a normal C function. There is no stack. Return by branching to\n- * save_boot_params_ret.\n- *\n- * void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3);\n- */\n-\n-/**\n- * save_boot_params_ret() - Return from save_boot_params()\n- *\n- * If you provide save_boot_params(), then you should jump back to this\n- * function when done. Try to preserve all registers.\n- *\n- * If your implementation of save_boot_params() is in C then it is acceptable\n- * to simply call save_boot_params_ret() at the end of your function. Since\n- * there is no link register set up, you cannot just exit the function. U-Boot\n- * will return to the (initialised) value of lr, and likely crash/hang.\n- *\n- * If your implementation of save_boot_params() is in assembler then you\n- * should use 'b' or 'bx' to return to save_boot_params_ret.\n- */\n-void save_boot_params_ret(void);\n-\n #ifdef CONFIG_ARMV7_LPAE\n void switch_to_hypervisor_ret(void);\n #endif\n@@ -556,6 +525,37 @@ void mmu_page_table_flush(unsigned long start, unsigned long stop);\n \n #ifndef __ASSEMBLY__\n /**\n+ * save_boot_params() - Save boot parameters before starting reset sequence\n+ *\n+ * If you provide this function it will be called immediately U-Boot starts,\n+ * both for SPL and U-Boot proper.\n+ *\n+ * All registers are unchanged from U-Boot entry. No registers need be\n+ * preserved.\n+ *\n+ * This is not a normal C function. There is no stack. Return by branching to\n+ * save_boot_params_ret.\n+ *\n+ * void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3);\n+ */\n+\n+/**\n+ * save_boot_params_ret() - Return from save_boot_params()\n+ *\n+ * If you provide save_boot_params(), then you should jump back to this\n+ * function when done. Try to preserve all registers.\n+ *\n+ * If your implementation of save_boot_params() is in C then it is acceptable\n+ * to simply call save_boot_params_ret() at the end of your function. Since\n+ * there is no link register set up, you cannot just exit the function. U-Boot\n+ * will return to the (initialised) value of lr, and likely crash/hang.\n+ *\n+ * If your implementation of save_boot_params() is in assembler then you\n+ * should use 'b' or 'bx' to return to save_boot_params_ret.\n+ */\n+void save_boot_params_ret(void);\n+\n+/**\n  * Change the cache settings for a region.\n  *\n  * \\param start\t\tstart address of memory region to change\n","prefixes":["U-Boot","v2","1/5"]}