Skip to content

Commit

Permalink
aarch64/vspace: add performASIDControl annotations
Browse files Browse the repository at this point in the history
Type and ghost state annotations for verification.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
  • Loading branch information
lsf37 committed Jan 9, 2024
1 parent c59e6ca commit 31da08f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/arch/arm/64/kernel/vspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1244,10 +1244,13 @@ static exception_t performPageGetAddress(pptr_t base_ptr, bool_t call)
static exception_t performASIDControlInvocation(void *frame, cte_t *slot,
cte_t *parent, asid_t asid_base)
{
/** AUXUPD: "(True, typ_region_bytes (ptr_val \<acute>frame) 12)" */
/** GHOSTUPD: "(True, gs_clear_region (ptr_val \<acute>frame) 12)" */
cap_untyped_cap_ptr_set_capFreeIndex(&(parent->cap),
MAX_FREE_INDEX(cap_untyped_cap_get_capBlockSize(parent->cap)));

memzero(frame, BIT(seL4_ASIDPoolBits));
/** AUXUPD: "(True, ptr_retyps 1 (Ptr (ptr_val \<acute>frame) :: asid_pool_C ptr))" */

cteInsert(
cap_asid_pool_cap_new(
Expand Down

0 comments on commit 31da08f

Please sign in to comment.