summaryrefslogtreecommitdiff
path: root/cactus
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2017-12-11 14:50:00 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2017-12-12 14:09:35 +0000
commit00dc84188ea8cbc89d25cb00d794b5393f6c7cc7 (patch)
treeb743eca2d28bd99e9cdfa0da7d25a644abb1566a /cactus
parent5ce20dbe987d619fc4e2cd6f6a4efa84eb24e857 (diff)
Cactus: Return -1 when initialisation fails
According to the SP_EVENT_COMPLETE specification, the secure partition can either return: - 0 to indicate it has successfully initialized; - A negative value to indicate an error; - A positive value to pass a specific Event Status code. Therefore, returning 1 in case of error violates the specification. This patch changes it to -1. Change-Id: I73566bb164e0d26509af5a09304ea0082ea492dd Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'cactus')
-rw-r--r--cactus/aarch64/cactus_entrypoint.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/cactus/aarch64/cactus_entrypoint.S b/cactus/aarch64/cactus_entrypoint.S
index aeab6de..1eaa6bb 100644
--- a/cactus/aarch64/cactus_entrypoint.S
+++ b/cactus/aarch64/cactus_entrypoint.S
@@ -110,7 +110,7 @@ func cactus_entrypoint
.return_error:
/* Tell SPM that the initialization failed. */
mov_imm x0, SP_EVENT_COMPLETE_AARCH64
- mov x1, #1
+ mov x1, #-1
svc #0
/* Loop forever */