buffer: bugfixes and cleanups

- Added clarifying comments regarding the different offsets
- Fixed an instance in wraparoundRead where we updated the readPtr
  with the relative offset
- Added additional checks in initialization to check for buffer size
- Use the queueSize for buffer initialization opposed to the memory
  region size for the whole MMIO

Tested: Unit tested

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: Ib175ed1c9c129c0f9d2b4f9737e2d394f160434d
3 files changed
tree: 2d222ffe0523b94355f0ef7390972cf6b1753214
  1. include/
  2. service_files/
  3. src/
  4. subprojects/
  5. test/
  6. .clang-format
  7. .clang-tidy
  8. .gitignore
  9. LICENSE
  10. MAINTAINERS
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
README.md

bios-bmc-smm-error-logger

This daemon will follow the design doc: https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/52109

More detailed implementation details will also be placed here in the future