Эх сурвалжийг харах

Increase heap size to 16 MiB.

Andrew Walbran 1 жил өмнө
parent
commit
1f6a428235

+ 1 - 1
examples/aarch64/crosvm.ld

@@ -1,4 +1,4 @@
 MEMORY
 {
-	image : ORIGIN = 0x80200000, LENGTH = 2M
+	image : ORIGIN = 0x80200000, LENGTH = 32M
 }

+ 1 - 1
examples/aarch64/qemu.ld

@@ -1,4 +1,4 @@
 MEMORY
 {
-	image : ORIGIN = 0x40080000, LENGTH = 2M
+	image : ORIGIN = 0x40080000, LENGTH = 32M
 }

+ 1 - 1
examples/aarch64/src/main.rs

@@ -51,7 +51,7 @@ pub const UART_BASE_ADDRESS: usize = 0x3f8;
 #[global_allocator]
 static HEAP_ALLOCATOR: LockedHeap<32> = LockedHeap::new();
 
-static mut HEAP: [u8; 65536] = [0; 65536];
+static mut HEAP: [u8; 0x1000000] = [0; 0x1000000];
 
 #[no_mangle]
 extern "C" fn main(x0: u64, x1: u64, x2: u64, x3: u64) {