commit | 09a2f4c76a4a096a80465de590c7fddc2bf52746 | [log] [tgz] |
---|---|---|
author | Ewout van Bekkum <ewout@google.com> | Tue Jan 11 14:36:59 2022 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 11 23:19:28 2022 +0000 |
tree | e0089292428154274195ac0b35365a1d96dfc62d | |
parent | 7bb790b97ffe67246cc52a851d36246eb5365b1d [diff] |
pw_cpu_exception_cortex_m: Remove packed attributes from structs Removes the packed attributes from the CpuState structs to ensure they can be safely directly accessed without a risk of unaligned access to satisfy `-Werror=address-of-packed-member`. To ensure it continues to be correct compared to our assembly, static_asserts were added to verify there is no unexpected padding. Change-Id: I3bd24adea17e8d8c3d0240a8182658489ca9baa0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/78184 Reviewed-by: Armando Montanez <amontanez@google.com> Commit-Queue: Ewout van Bekkum <ewout@google.com> Pigweed-Auto-Submit: Ewout van Bekkum <ewout@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/