From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zg8tmja2lje4os4yms4ymjma.icoremail.net (zg8tmja2lje4os4yms4ymjma.icoremail.net [206.189.21.223]) by mx.groups.io with SMTP id smtpd.web10.175190.1672206364262224201 for ; Tue, 27 Dec 2022 21:46:04 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: eswincomputing.com, ip: 206.189.21.223, mailfrom: zhangdongdong@eswincomputing.com) Received: from localhost.localdomain (unknown [10.12.130.38]) by app1 (Coremail) with SMTP id EwgMCgCX01AY2KtjD58AAA--.3699S5; Wed, 28 Dec 2022 13:46:01 +0800 (CST) From: "Dongdong Zhang" To: devel@edk2.groups.io Cc: zhuwenjun@eswincomputing.com, zhengyu@eswincomputing.com, jinyanjiang@eswincomputing.com, Dongdong Zhang Subject: [PATCH 1/1] Platform/RISC-V/PlatformPkg:fix image link error Date: Wed, 28 Dec 2022 13:45:50 +0800 Message-Id: <20221228054550.6530-2-zhangdongdong@eswincomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221228054550.6530-1-zhangdongdong@eswincomputing.com> References: <20221228054550.6530-1-zhangdongdong@eswincomputing.com> X-CM-TRANSID: EwgMCgCX01AY2KtjD58AAA--.3699S5 X-Coremail-Antispam: 1UD129KBjvJXoWxGry7Zw4DuFWDCF43JFWDJwb_yoW5WFyfpF 1agw4xAryDGr4Iv348J3W8Xr4UCrnYkF15Crn8tw1UC3s8Wr1qqry7Kan5Crn7Cw1kJw4j qFWYkws8Za98uaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBF14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_Jr4l82xGYIkIc2 x26xkF7I0E14v26r1Y6r1xM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0 Y4vE2Ix0cI8IcVAFwI0_tr0E3s1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j6F4UJw A2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oVCq3wAS 0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2 IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0 Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE-syl42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x0JUHHq7UUUUU= X-CM-SenderInfo: x2kd0wpgrqwvxrqjqvxvzl0uprps33xlqjhudrp/1tbiAgEOCmOrPIEfpQAAsI Edk2OpensbiPlatformWrapperLib Library and RiscVSpecialPlatformLib Library mark the serial number in the figure is opposite to the text description, fix it and adjust the text order. Signed-off-by: Dongdong Zhang --- Platform/RISC-V/PlatformPkg/Readme.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Platform/RISC-V/PlatformPkg/Readme.md b/Platform/RISC-V/PlatformPkg/Readme.md index 5a344a8..d7166ba 100644 --- a/Platform/RISC-V/PlatformPkg/Readme.md +++ b/Platform/RISC-V/PlatformPkg/Readme.md @@ -35,19 +35,21 @@ are from OpenSBI project. edk2 libraries are introduced as the wrapper libraries [Indicated as #2 in the figure](#risc-v-edk2-port-design-diagrams) > ***OpenSbiPlatformLib*** provides the generic RISC-V platform initialization code. Platform vendor can just utilize this library if they don't have additional requirements on the platform initialization. -##### RiscVSpecialPlatformLib Library -[Indicated as #3 in the figure](#risc-v-edk2-port-design-diagrams) -> The major use case of this library is to facilitate the interfaces for platform vendors to provide the special -platform initialization based on the generic platform initialization library. - ##### Edk2OpensbiPlatformWrapperLib Library -[Indicated as #4 in the figure](#risc-v-edk2-port-design-diagrams) + +[Indicated as #3 in the figure](#risc-v-edk2-port-design-diagrams) > In order to providing the flexibility to edk2 RISC-V firmware solution, ***Edk2OpensbiPlatformWrapperLib*** is the wrapper library of [OpenSbiPlatformLib](#OpenSbiPlatformLib-library) to provide the interfaces for OEM. The ***platform_ops_address***in the generic platform structure is replaced with ***Edk2OpensbiplatformOps*** in SEC module. The platform function invoked by OpenSBI core is hooked to ***Edk2OpensbiPlatformWrapperLib***. This gives a change to OEM for implementing platform-specific initialization before and after the generic platform code. OEM can override this library under their platform folder on demand without touching ***RiscVOpensbiLib*** library source files and other common source files. +##### RiscVSpecialPlatformLib Library + +[Indicated as #4 in the figure](#risc-v-edk2-port-design-diagrams) +> The major use case of this library is to facilitate the interfaces for platform vendors to provide the special +platform initialization based on the generic platform initialization library. + ##### Next Phase Address and Privilege Mode [Indicated as #5 in the figure](#risc-v-edk2-port-design-diagrams) > Once OpenSBI finishes the boot initialization, it will jump to the next phase with the default privilege set to -- 2.17.1