{"id":814241,"url":"http://patchwork.ozlabs.org/api/patches/814241/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1505476946-64991-2-git-send-email-philipp.tomsich@theobroma-systems.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/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":"<1505476946-64991-2-git-send-email-philipp.tomsich@theobroma-systems.com>","list_archive_url":null,"date":"2017-09-15T12:02:24","name":"[U-Boot,1/3] 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/people/53488/?format=json","name":"Philipp Tomsich","email":"philipp.tomsich@theobroma-systems.com"},"delegate":{"id":69486,"url":"http://patchwork.ozlabs.org/api/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/1505476946-64991-2-git-send-email-philipp.tomsich@theobroma-systems.com/mbox/","series":[{"id":3289,"url":"http://patchwork.ozlabs.org/api/series/3289/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=3289","date":"2017-09-15T12:02:25","name":"rockchip: back-to-bootrom: replace assembly-implementation with C-code","version":1,"mbox":"http://patchwork.ozlabs.org/series/3289/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/814241/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/814241/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 3xtvH91pGHz9t2h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 22:05:25 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid E18B5C22001; Fri, 15 Sep 2017 12:03:34 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id A77EEC21F43;\n\tFri, 15 Sep 2017 12:02:52 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 0B38BC21D5D; Fri, 15 Sep 2017 12:02:48 +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 96FA2C21F58\n\tfor <u-boot@lists.denx.de>; Fri, 15 Sep 2017 12:02:35 +0000 (UTC)","from [86.59.122.178] (port=33028 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 1dspKK-00029w-Sa; Fri, 15 Sep 2017 14:02:33 +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":"Fri, 15 Sep 2017 14:02:24 +0200","Message-Id":"<1505476946-64991-2-git-send-email-philipp.tomsich@theobroma-systems.com>","X-Mailer":"git-send-email 2.1.4","In-Reply-To":"<1505476946-64991-1-git-send-email-philipp.tomsich@theobroma-systems.com>","References":"<1505476946-64991-1-git-send-email-philipp.tomsich@theobroma-systems.com>","Cc":"Albert Aribaud <albert.u.boot@aribaud.net>,\n\tKlaus Goger <klaus.goger@theobroma-systems.com>,\n\tAndy Yan <andy.yan@rock-chips.com>","Subject":"[U-Boot] [PATCH 1/3] 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\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","1/3"]}