commit | d5d236365f8e4f02f7621f17c8a02b6728d2178a | [log] [tgz] |
---|---|---|
author | Zane Shelley <zshelle@us.ibm.com> | Tue Dec 13 09:34:31 2022 -0600 |
committer | Zane Shelley <zshelle@us.ibm.com> | Tue Dec 13 15:34:38 2022 -0600 |
tree | 8bcbc5d45f25b438b91d7d5326585637a6b92bf5 | |
parent | 79cfb64ab95351e76d10e1e404084adf12f63775 [diff] |
Remove use of std::unique_ptr The Hostboot user application has poor support for std::unique_ptr, particularly using std::unique_ptr and std::map. Their implementation of std::map does not have support for move-only objects like std::unique_ptr. At this time it is much easier to change the current use to std::shared_ptr. It is not as memory efficient, but will still work. The memory impact is minimal since we only plan to used these for each supported chip type, which we only have a few at this point. Signed-off-by: Zane Shelley <zshelle@us.ibm.com> Change-Id: Ibed3e72f6f2c52fc044a442a2893fb07a3fa5d73
This library is a common, portable code base for isolating errors reported by hardware registers on POWER Systems chips.
The primary consumers (and requirements drivers) will be:
See the primary API definitions for details on how to use this library.
This library can be integrated into a user application's source (either imported, or as a git subtree/submodule) or built as static library.
__HEI_ENABLE_HW_WRITE
: When defined, it will allow hardware write support. Note that the Chip Data Files will contain rules for clearing and masking register bits. Both of which will require modifying hardware registers, which is not allowed by user applications like OpenBMC or FSP firmware.src/include/
in the POWER Systems Hostboot firmware.For a standard OpenBMC release build, you want something like:
meson -Dtests=disabled <build_dir> ninja -C <build_dir> ninja -C <build_dir> install
For a test / debug build, a typical configuration is:
meson -Dtests=enabled <build_dir> ninja -C <build_dir> test