From d54b6f01ae2f3d9b4cb002d677fffaaa449819fd Mon Sep 17 00:00:00 2001 From: "Andrea P." Date: Tue, 10 Jun 2025 16:01:58 +0000 Subject: [PATCH] fix: __pre_init example was not overriding default __pre_init --- cortex-m-rt/examples/pre_init.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cortex-m-rt/examples/pre_init.rs b/cortex-m-rt/examples/pre_init.rs index 935db547..01869bb4 100644 --- a/cortex-m-rt/examples/pre_init.rs +++ b/cortex-m-rt/examples/pre_init.rs @@ -13,6 +13,9 @@ use rt::entry; // For example, it can be used to disable the watchdog. core::arch::global_asm! { r#" +.global __pre_init +.type __pre_init,%function +.thumb_func __pre_init: // Do what you need to do before RAM is initialized. bx lr