{"id":810863,"url":"http://patchwork.ozlabs.org/api/patches/810863/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1504767608-8846-1-git-send-email-kever.yang@rock-chips.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":"<1504767608-8846-1-git-send-email-kever.yang@rock-chips.com>","list_archive_url":null,"date":"2017-09-07T07:00:00","name":"[U-Boot,1/3] spl: update bl31_entry() with new name and parameter","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"c353501ab15c725cd2a85d5aaaae4a67f0a9feef","submitter":{"id":64532,"url":"http://patchwork.ozlabs.org/api/people/64532/?format=json","name":"Kever Yang","email":"kever.yang@rock-chips.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/1504767608-8846-1-git-send-email-kever.yang@rock-chips.com/mbox/","series":[{"id":1917,"url":"http://patchwork.ozlabs.org/api/series/1917/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=1917","date":"2017-09-07T07:00:00","name":"[U-Boot,1/3] spl: update bl31_entry() with new name and parameter","version":1,"mbox":"http://patchwork.ozlabs.org/series/1917/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/810863/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/810863/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>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"NuvTXHH6\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xnrv54Q0Vz9sNd\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  7 Sep 2017 17:00:32 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid BE556C21E09; Thu,  7 Sep 2017 07:00:26 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 5969BC21C72;\n\tThu,  7 Sep 2017 07:00:24 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 4B7D4C21C40; Thu,  7 Sep 2017 07:00:23 +0000 (UTC)","from mail-pf0-f193.google.com (mail-pf0-f193.google.com\n\t[209.85.192.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 805F7C21C6D\n\tfor <u-boot@lists.denx.de>; Thu,  7 Sep 2017 07:00:22 +0000 (UTC)","by mail-pf0-f193.google.com with SMTP id a2so4127238pfj.4\n\tfor <u-boot@lists.denx.de>; Thu, 07 Sep 2017 00:00:22 -0700 (PDT)","from localhost.localdomain ([103.29.142.67])\n\tby smtp.gmail.com with ESMTPSA id\n\t5sm2197466pfr.151.2017.09.07.00.00.17\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 07 Sep 2017 00:00:19 -0700 (PDT)"],"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=RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_MSPIKE_H2,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=zmCnDPVX1Uexm87V7t7zABJnRGwo18DlP1peM2AGu6U=;\n\tb=NuvTXHH6QFymzCTuNdwFtJ4GXq1di7BsVzhaR6ntNZRweCb92s7BUnW9RAeUPsn3zz\n\ty6/3JH6lU3JWyoyts/Gb3n4qrK/XOarMOA33gjvx0Okbuh7FNsn0MwhYXG3OsdsdccnL\n\tgzAkJ5mhZkh2cfQPTJeW+LukRktDLYQlJXcFfLYO2m3Y6c4ud6yOSqRpo9IFLyHTNV2/\n\tEl6Td4FMX3st2bdfGg+dCNTrJo+LrYj/aXsG1GhCXoYz+zHWsR2hHgX2kkxQoXNVNWJ2\n\tqsXTT849GuPKbbiTus3GGpBcc1GbzspdV/kDMO0JhDpMD6zVMwxdn5sNpaJHDLp5rEDT\n\tirDw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=zmCnDPVX1Uexm87V7t7zABJnRGwo18DlP1peM2AGu6U=;\n\tb=fhc27NT9lw3JxnbkdpB5hyAzrd9EYNh64t1DRqNBBA+UbwIuKUMsNjuGIajfoVQSj3\n\tGU/pE2DffAtGdrG86jqFDLDClhq9ea40KgPIxzwS0Tx8v6W2rc1TDHiDMakJT0uhK67M\n\tuS3qigxuZJvcjtnt45VV8u1++I/hvKBcgC5PgrQB7dfBte70yql/j1vgNydL7QZLZbdG\n\t63LklbQp54OYk4nGkF+UMtkPa2AbFYx0crVrn3tJB2rPQxZjLt6zm+DI4ab+yEOSI/Dd\n\tgBFLST+7ZVxDy8hT2XbBsCr2rsFcvJUgFbdBZLkSBWawoI46s9ILnVJYD+JLqo0GiK0B\n\twZgg==","X-Gm-Message-State":"AHPjjUiRGze9z6j+AtLyMiBoYHOD74xgwJo+d96Q11i3INen4rRbslJn\n\tNS1KoOaO1aO1vMH8","X-Google-Smtp-Source":"ADKCNb5aw2Wpew6Y4uj2FWgjJeQD97iZuSNx7/IdL1x39n64KETY/JyCIJtuT4usg6MZVQW1j2FOLQ==","X-Received":"by 10.84.131.109 with SMTP id 100mr1941082pld.122.1504767620932; \n\tThu, 07 Sep 2017 00:00:20 -0700 (PDT)","From":"Kever Yang <kever.yang@rock-chips.com>","To":"u-boot@lists.denx.de","Date":"Thu,  7 Sep 2017 15:00:00 +0800","Message-Id":"<1504767608-8846-1-git-send-email-kever.yang@rock-chips.com>","X-Mailer":"git-send-email 1.9.1","Cc":"Stefan Agner <stefan.agner@toradex.com>","Subject":"[U-Boot] [PATCH 1/3] spl: update bl31_entry() with new name and\n\tparameter","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":"Rename the bl31_entry() function with 'spl_' prefix and add one\nparameter for bl31 entry address since we can get it from spl_image header.\n\nSigned-off-by: Kever Yang <kever.yang@rock-chips.com>\n---\n\n common/spl/spl.c     | 2 +-\n common/spl/spl_atf.c | 4 ++--\n include/spl.h        | 6 +++++-\n 3 files changed, 8 insertions(+), 4 deletions(-)","diff":"diff --git a/common/spl/spl.c b/common/spl/spl.c\nindex 6ff390c..1d8bbb2 100644\n--- a/common/spl/spl.c\n+++ b/common/spl/spl.c\n@@ -427,7 +427,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)\n \n \tif (CONFIG_IS_ENABLED(ATF_SUPPORT)) {\n \t\tdebug(\"loaded - jumping to U-Boot via ATF BL31.\\n\");\n-\t\tbl31_entry();\n+\t\tspl_bl31_entry((void *)spl_image.entry_point);\n \t}\n \n \tif (CONFIG_IS_ENABLED(OPTEE_SUPPORT)) {\ndiff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c\nindex 6e8f928..2f6fff9 100644\n--- a/common/spl/spl_atf.c\n+++ b/common/spl/spl_atf.c\n@@ -82,13 +82,13 @@ void raw_write_daif(unsigned int daif)\n \t__asm__ __volatile__(\"msr DAIF, %0\\n\\t\" : : \"r\" (daif) : \"memory\");\n }\n \n-void bl31_entry(void)\n+void spl_bl31_entry(void *entry_addr)\n {\n \tstruct bl31_params *bl31_params;\n \tvoid (*entry)(struct bl31_params *params, void *plat_params) = NULL;\n \n \tbl31_params = bl2_plat_get_bl31_params();\n-\tentry = (void *)CONFIG_SPL_ATF_TEXT_BASE;\n+\tentry = entry_addr;\n \n \traw_write_daif(SPSR_EXCEPTION_MASK);\n \tdcache_disable();\ndiff --git a/include/spl.h b/include/spl.h\nindex 13d46ed..d21a3d2 100644\n--- a/include/spl.h\n+++ b/include/spl.h\n@@ -267,7 +267,11 @@ int spl_dfu_cmd(int usbctrl, char *dfu_alt_info, char *interface, char *devstr);\n int spl_mmc_load_image(struct spl_image_info *spl_image,\n \t\t       struct spl_boot_device *bootdev);\n \n-void bl31_entry(void);\n+/**\n+ * spl_bl31_entry - entry function for ATF bl31\n+ * @entry_addr - entry address of bl31 text\n+ */\n+void spl_bl31_entry(void *entry_addr);\n \n /**\n  * spl_optee_entry - entry function for optee\n","prefixes":["U-Boot","1/3"]}