Skip to content

Commit 5264483

Browse files
committed
test(port_arm): make the RAM region unshareable
Cortex-A9 MPCore treats all pages marked as Shared as Non-Cacheable in AMP mode.
1 parent 47a2330 commit 5264483

File tree

1 file changed

+3
-1
lines changed
  • src/constance_port_arm_test_driver/src

1 file changed

+3
-1
lines changed

src/constance_port_arm_test_driver/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ macro_rules! instantiate_test {
8080
const MEMORY_MAP: &'static [port::MemoryMapSection] = &[
8181
// On-chip RAM (10MB)
8282
port::MemoryMapSection::new(0x2000_0000..0x2050_0000, 0x2000_0000)
83+
.with_sharable(false)
8384
.with_executable(true)
8485
.with_writable(false),
85-
port::MemoryMapSection::new(0x2050_0000..0x20a0_0000, 0x2050_0000),
86+
port::MemoryMapSection::new(0x2050_0000..0x20a0_0000, 0x2050_0000)
87+
.with_sharable(false),
8688
// I/O areas
8789
port::MemoryMapSection::new(0x3fe0_0000..0x4000_0000, 0x3fe0_0000).as_device_memory(),
8890
port::MemoryMapSection::new(0xe800_0000..0xe830_0000, 0xe800_0000).as_device_memory(),

0 commit comments

Comments
 (0)