Skip to content

Commit

Permalink
Minor style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Alwin Joshy <[email protected]>
  • Loading branch information
alwin-joshy committed Aug 5, 2023
1 parent 79e9af3 commit 6a7e26c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libsel4/sel4_arch_include/aarch64/interfaces/sel4arch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@
</error>
</method>
<method id="ARMVspaceUnmap_Range" name="Unmap_Range"
manual_name="Unmap range" manual_label="vspace_unmap_range">
manual_name="Unmap Range" manual_label="vspace_unmap_range">
<brief>
Unmap a range within a vspace
</brief>>
</brief>
<description>
<docref>See <autoref label="ch:vspace"/>.</docref>
</description>
Expand Down
7 changes: 4 additions & 3 deletions src/arch/arm/64/kernel/vspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,7 @@ static exception_t decodeARMVSpaceRootInvocation(word_t invLabel, unsigned int l
cte_t *cte, cap_t cap, word_t *buffer)
{
switch (invLabel) {
case ARMVspaceUnmap_Range:
case ARMVspaceUnmap_Range:
case ARMVspaceRemap_Range: {
seL4_CPtr start;
seL4_Uint32 num;
Expand All @@ -1701,8 +1701,9 @@ static exception_t decodeARMVSpaceRootInvocation(word_t invLabel, unsigned int l
lookupCapAndSlot_ret_t lu_ret[MAX_BATCH];

/* Check that the correct number of arguments was passed in */
if ((invLabel == ARMVspaceRemap_Range && length < 3) || (invLabel == ARMVspaceUnmap_Range && length < 2)) {
userError("VSpaceRoot Range Operation: Truncated message. Expected %d args, recieved %d args", (invLabel == ARMVspaceRemap_Range) ? 3 : 2, length);
if ((invLabel == ARMVspaceRemap_Range && length < 3) || (invLabel == ARMVspaceUnmap_Range && length < 2)) {
userError("VSpaceRoot Range Operation: Truncated message. Expected %d args, recieved %d args",
(invLabel == ARMVspaceRemap_Range) ? 3 : 2, length);
current_syscall_error.type = seL4_TruncatedMessage;
return EXCEPTION_SYSCALL_ERROR;
}
Expand Down

0 comments on commit 6a7e26c

Please sign in to comment.