awkernel_lib/src/context/x86_64.rs.
- A context can be properly saved and restored.
This specification is similar to aarch64.tla. Please see it beforehand.
save_context and restore_context are functions to save current context and restore it, respectively.
They are implemented in x86 assembly (System V calling convension), and specified by procedures in PlusCal.
The subject described above is verified as follows.
assert registers = ctx_start;
Context, which is a structure, defined in awkernel_lib/src/context/x86_64.rs can be represented by a sequence in TLA+ as follows.
[x \in 0..(SIZE_CONTEXT - 1) |-> 0]
