From ba789770bc33e8748bb1c9af7bad866d0f20b2dc Mon Sep 17 00:00:00 2001 From: Sandrine Bailleux Date: Thu, 3 Nov 2016 14:26:37 +0000 Subject: [PATCH] Porting guide: Improve bl1_plat_mem_check() doc This patch fixes the type of the return value of bl1_plat_mem_check() in the porting guide. It also specifies the expected return value. Change-Id: I7c437342b8bfb1e621d74b2edf0aaf97b913216a Signed-off-by: Sandrine Bailleux --- docs/porting-guide.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/porting-guide.md b/docs/porting-guide.md index aa014f159..7534e395f 100644 --- a/docs/porting-guide.md +++ b/docs/porting-guide.md @@ -1087,13 +1087,15 @@ The default implementation spins forever. Argument : uintptr_t mem_base, unsigned int mem_size, unsigned int flags - Return : void + Return : int BL1 calls this function while handling FWU copy and authenticate SMCs. The platform must ensure that the provided `mem_base` and `mem_size` are mapped into BL1, and that this memory corresponds to either a secure or non-secure memory region as indicated by the security state of the `flags` argument. +This function must return 0 on success, a non-null error code otherwise. + The default implementation of this function asserts therefore platforms must override it when using the FWU feature.