We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
size
init_shared_memory
1 parent dec6f6b commit 36a9200Copy full SHA for 36a9200
td-payload/src/mm/shared.rs
@@ -11,6 +11,10 @@ use crate::arch::shared::decrypt;
11
static SHARED_MEMORY_ALLOCATOR: LockedHeap = LockedHeap::empty();
12
13
pub fn init_shared_memory(start: u64, size: usize) {
14
+ if size % SIZE_4K != 0 {
15
+ panic!("Failed to initialize shared memory: size needs to be aligned with 0x1000");
16
+ }
17
+
18
// Set the shared memory region to be shared
19
decrypt(start, size);
20
// Initialize the shared memory allocator
0 commit comments