diff options
author | 2020-07-16 11:49:12 +0000 | |
---|---|---|
committer | 2020-07-16 11:49:12 +0000 | |
commit | d91e843707932da5361fc5134e64e8e9a6c4301d (patch) | |
tree | bbb266a8aee5f19b1f844bd95e7ab1228eea4e7e /src/peripheral/test.rs | |
parent | ec2e1783faebb70991b36f7c7644864da4d2b466 (diff) | |
parent | 9c3bbc2e50a5be9d5d3bf878c639b9c9fcbf9c3e (diff) | |
download | cortex-m-d91e843707932da5361fc5134e64e8e9a6c4301d.tar.gz cortex-m-d91e843707932da5361fc5134e64e8e9a6c4301d.tar.zst cortex-m-d91e843707932da5361fc5134e64e8e9a6c4301d.zip |
Merge #246
246: Always link pre-built asm, required for new cache management functions r=therealprof a=adamgreig
In #234 we added new `__enable_icache` and `__enable_dcache` assembly routines, but without providing an inline assembly version, to reduce duplication and since there wasn't an expected performance impact. However, our build.rs currently only links the pre-built object if the `inline-asm` feature is disabled, which means currently you can't call `enable_icache()` and use `inline-asm` at the same time.
This PR makes us always link against the pre-built objects (for thumb targets) even if `inline-asm` is used; the pre-built object would only be used for the cache management routines at present but we may want to put more routines into the assembly blob only in the future.
Closes #245.
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'src/peripheral/test.rs')
0 files changed, 0 insertions, 0 deletions