Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.04 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.04 KB

AArch64 Exception Handler

Target

awkernel_lib/src/context/aarch64.rs.

Subjects to be Verified

  1. A context can be properly saved and restored.

Result

result

Detail

This specification is similar to exception.tla. Please see exception.tla before read this.

Target Functions

save_context and restore_context are functions to save current context and restore it, respectively. They are implemented in AArch64 assembly, and specified by procedures in PlusCal.

The subject described above is verified as follows.

assert registers = ctx_start;

Context

Context, which is a structure, defined in awkernel_lib/src/context/aarch64.rs can be represented by a sequence in TLA+ as follows.

[x \in 0..(SIZE_CONTEXT - 1) |-> 0]

Context::gp_regs::x0 in Rust can be thus accessed as Context[16 * 5] in TLA+, where 16 * 5 is the offset address.