aboutsummaryrefslogtreecommitdiff
path: root/src/target.rs
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2026-11-21 13:39:55 -0500
committerIan McIntyre <me@mciantyre.dev>2026-11-22 10:47:30 -0500
commitea60b60f3ff579cd175abecde49d2d9397420dc0 (patch)
treebce393fb98a32c1ee563ebcfdadeddef8e76cd52 /src/target.rs
parent1087e9bb7cd31e6fd88532ead08a927168e36de7 (diff)
Prototype secondary core supportHEADmain
Haven't tested the included examples on hardware. It's just here so I can define an inspect_elf test. Out of tree, there's a basic example on an 1170EVK.
Diffstat (limited to 'src/target.rs')
-rw-r--r--src/target.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target.rs b/src/target.rs
index 5e298e6..5cf6215 100644
--- a/src/target.rs
+++ b/src/target.rs
@@ -92,6 +92,12 @@ global_asm! {r#"
.endm
__pre_init:
+ # Are we the secondary core? If so, only
+ # perform the section copies.
+ ldr r0, =__imxrt_rt_core
+ cmp r0, #0
+ bne 1000f
+
ldr r0, =__imxrt_rt_v0.2 @ Need to know which chip family we're initializing.
ldr r1, =0x1180
cmp r0, r1 @ Is this an 1180?