-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lennard Gäher <l.gaeher@posteo.de>
- Loading branch information
Showing
12 changed files
with
84 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ log | |
rustc-ice-* | ||
refinedrust | ||
generated_code | ||
generated_code.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
; Add project-wide flags here. | ||
(dirs :standard \ refinedrust) | ||
(dirs :standard \ refinedrust generated_code.bak) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Verification of the Security Monitor | ||
|
||
This directory contains work-in-progress on verifying the security monitor. | ||
Currently, the verification is in early stages. | ||
|
||
This document will be updated with details on the verified components and assurances as the verification effort progresses. | ||
|
||
For now, the [setup](setup.md) document describes how to setup the verification toolchain on your system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
From refinedrust Require Import typing. | ||
|
||
(* This reflects the page sizes in [core/mmu/page_size.rs] *) | ||
Inductive page_size : Set := | ||
| Size4KiB | ||
| Size2MiB | ||
| Size1GiB | ||
| Size512GiB | ||
| Size128TiB. | ||
|
||
Definition page_size_to_nat (sz : page_size) : nat := | ||
match sz with | ||
| Size4KiB => 8 * 512 | ||
| Size2MiB => 8 * 512 * 512 | ||
| Size1GiB => 8 * 512 * 512 * 512 | ||
| Size512GiB => 8 * 512 * 512 * 512 | ||
| Size128TiB => 8 * 512 * 512 * 512 * 512 * 256 | ||
end. | ||
Definition page_size_to_Z (sz : page_size) : Z := | ||
page_size_to_nat sz. | ||
|
||
(* Pages should be aligned to the size of the page *) | ||
Definition page_size_align_log (sz : page_size) : nat := | ||
match sz with | ||
| Size4KiB => 12 | ||
| Size2MiB => 21 | ||
| Size1GiB => 30 | ||
| Size512GiB => 39 | ||
| Size128TiB => 47 | ||
end. | ||
|
||
Definition mk_page_layout (sz : page_size) : layout := | ||
Layout (page_size_to_nat sz) (page_size_align_log sz). |
This file was deleted.
Oops, something went wrong.