mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
do not zero late resource memory on boot
This commit is contained in:
parent
1fe9767eba
commit
9f092efe24
1 changed files with 10 additions and 2 deletions
|
@ -32,7 +32,11 @@ pub fn codegen(
|
||||||
cross_initialized: false,
|
cross_initialized: false,
|
||||||
} => (
|
} => (
|
||||||
util::cfg_core(*core, app.args.cores),
|
util::cfg_core(*core, app.args.cores),
|
||||||
util::link_section("data", *core),
|
if expr.is_none() {
|
||||||
|
util::link_section_uninit(Some(*core))
|
||||||
|
} else {
|
||||||
|
util::link_section("data", *core)
|
||||||
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
// shared `static`s and cross-initialized resources need to be in `.shared` memory
|
// shared `static`s and cross-initialized resources need to be in `.shared` memory
|
||||||
|
@ -42,7 +46,11 @@ pub fn codegen(
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
None,
|
if expr.is_none() {
|
||||||
|
util::link_section_uninit(None)
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
},
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue