File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 238
238
//! `__EXCEPTIONS` in the `.vector_table` section.
239
239
//!
240
240
//! - `__pre_init`. This is a function to be run before RAM is initialized. It defaults pointing at
241
- //! `0` and if not changed to point to another address, usually by calling the `pre_init!` macro,
242
- //! the `_pre_init` function is skipped.
241
+ //! `1` and if not changed to point to another address, usually by calling the `pre_init!` macro,
242
+ //! the `_pre_init` function is skipped. The function cannot default to `0` as the compiler
243
+ //! optimizes out the check for `0` under the assumption that a function pointer cannot point to
244
+ //! `0`.
243
245
//!
244
246
//! If you override any exception handler you'll find it as an unmangled symbol, e.g. `SysTick` or
245
247
//! `SVCall`, in the output of `objdump`,
You can’t perform that action at this time.
0 commit comments