aarch64/vspace: fix error reporting in decode

seL4_InvalidCapability expects invalidCapNumber to be set.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
Gerwin Klein
2024-01-25 19:20:16 +11:00
parent 9ec543ce5a
commit 241d8d12c7

View File

@@ -1521,7 +1521,7 @@ static exception_t decodeARMFrameInvocation(word_t invLabel, word_t length,
if (frame_asid != asid) {
userError("ARMPageMap: Attempting to remap a frame that does not belong to the passed address space");
current_syscall_error.type = seL4_InvalidCapability;
current_syscall_error.invalidArgumentNumber = 1;
current_syscall_error.invalidCapNumber = 1;
return EXCEPTION_SYSCALL_ERROR;
} else if (cap_frame_cap_get_capFMappedAddress(cap) != vaddr) {