Check for initial error state on startup

Since the error monitor is looking at GPIO edge events, an error
won't be detected if it is already asserted when the monintor
starts. This change detects if the host is already on when it
starts monitoring and will check if an error is already asserted.

Tested:
Injected an IERR while the error monitor was stopped. After
checking that the IERR pin was asserted, started the error monitor
and confirmed that the error was detected, logged, and handled
correctly.

Change-Id: Ie1e0238c914e6b2cda4b121f579776b813b191c1
Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
1 file changed
tree: b94f6635eb3c279c376e8322e32961f0596d2893
  1. service_files/
  2. src/
  3. .clang-format
  4. cmake-format.json
  5. CMakeLists.txt
  6. LICENSE
  7. MAINTAINERS
  8. README.md
README.md

host-error-monitor

The host-error-monitor application is intended to monitor various host error signals and take appropriate action (logging, crashdump, reset, etc.) when triggered.