aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/pre_init.rs
diff options
context:
space:
mode:
authorGravatar Gabriel Smith <ga29smith@gmail.com> 2018-08-12 15:23:49 -0400
committerGravatar Gabriel Smith <ga29smith@gmail.com> 2018-08-12 15:29:08 -0400
commitf3fa545b978a6d5d29d0bcdc78aca03518183bdc (patch)
tree785595fa2f2fae32d2653b6ec790da673efb00ed /cortex-m-rt/examples/pre_init.rs
parent06ce316ad44f6eaac497d43c392703e326b50944 (diff)
downloadcortex-m-f3fa545b978a6d5d29d0bcdc78aca03518183bdc.tar.gz
cortex-m-f3fa545b978a6d5d29d0bcdc78aca03518183bdc.tar.zst
cortex-m-f3fa545b978a6d5d29d0bcdc78aca03518183bdc.zip
Change the sentinel value for __pre_init to something other than 1
The sentinel value of 0, while nice, was being optimized out as the compiler assumed that the function pointer would never be 0. Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
Diffstat (limited to 'cortex-m-rt/examples/pre_init.rs')
0 files changed, 0 insertions, 0 deletions