Skip to content

Commit 1ad3ca4

Browse files
gaojiaqi7jyao1
authored andcommitted
td-payload: public the MEMORY_MAP
Exposing the memory map allows the payload to use raw memory information. Signed-off-by: Jiaqi Gao <[email protected]>
1 parent 493639f commit 1ad3ca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

td-payload/src/mm/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub const FIRMWARE_BASE: usize = 0xFF00_0000;
3939
pub const FIRMWARE_SIZE: usize = 0x100_0000;
4040

4141
lazy_static! {
42-
static ref MEMORY_MAP: Mutex<[E820Entry; E820_TABLE_SIZE]> =
42+
pub static ref MEMORY_MAP: Mutex<[E820Entry; E820_TABLE_SIZE]> =
4343
Mutex::new([E820Entry::default(); E820_TABLE_SIZE]);
4444
}
4545
static END_OF_RAM: Once<usize> = Once::new();

0 commit comments

Comments
 (0)