diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-08 01:07:43 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-09 03:09:22 -0600 |
commit | e232ee375afdf8da50757b3c423dc69fef07de5d (patch) | |
tree | 6a599a5a82adba8e84586684c1c72d65b80dab98 | |
parent | ddb67e1d0c133cbb59ee3708edf3a2c1feefeec6 (diff) |
stack.c.gen: APP: The entry-point is _entry_point, not _reset_handler
-rwxr-xr-x | build-aux/stack.c.gen | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index d9d128a..5bdb23c 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -1034,6 +1034,7 @@ class PicoSDKPlugin: synthetic_node("isr_pendsv", 0, {"__unhandled_user_irq"}), synthetic_node("isr_systick", 0, {"__unhandled_user_irq"}), synthetic_node(f"__unhandled_user_irq", 0), + synthetic_node("_entry_point", 0, {"_reset_handler"}), synthetic_node("_reset_handler", 0, {"runtime_init", "main", "exit"}), ] @@ -1351,7 +1352,7 @@ def main( return lib9p_plugin.thread_count(name) return 1 if str(name.base()) == ( - "_reset_handler" if arg_pico_platform == "rp2040" else "main" + "_entry_point" if arg_pico_platform == "rp2040" else "main" ): return 1 return 0 @@ -1486,7 +1487,7 @@ def main( name = str(funcname.base()) base = val.nstatic size = base + intrstack - if name in ("main", "_reset_handler"): + if name in ("main", "_entry_point"): main = CrRow(name=name, cnt=1, base=base, size=size) else: size = next_power_of_2(size + stack_guard_size) - stack_guard_size |