mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
cleanup loader
add a note about the dirty flag - it's not "dead" per se, I think it is helpful to leave a bread crumb for future hw revs that might have hardware-enforced dirty bit setting on the PTE.
This commit is contained in:
parent
dff4dded64
commit
640ee93820
2 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,10 @@ pub const FLG_D: usize = 0x80;
|
|||
pub const FLG_P: usize = 0x200;
|
||||
|
||||
pub const SWAP_FLG_WIRED: u32 = 0x1_00;
|
||||
// Note: this flag is currently not used. It was an aborted attempt to do
|
||||
// auto-write on dirty page but due to lack of hw synchronization we couldn't
|
||||
// guarantee atomicity. Flag can be removed or re-used in the future if another
|
||||
// attempt is tried on a system that has hardware dirty page updating.
|
||||
pub const SWAP_FLG_DIRTY: u32 = 0x2_00;
|
||||
pub const FLG_SWAP_USED: u32 = 0x8000_0000;
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ struct SignatureInFlash {
|
|||
pub signature: [u8; 64],
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
pub enum KeyPress {
|
||||
Up,
|
||||
|
|
|
|||
Loading…
Reference in a new issue