Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6aa72490 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Add new segv type SEGV_CPERR.

The new 6.6 kernel headers added a new segv type, SEGV_CPERR. Add this
to the switch statement.

Test: Unit tests pass.
Change-Id: I77eb4748e51c7e7d7291bfd2180b0ccb3b5a6ded
parent 9eeebf70
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -382,8 +382,10 @@ const char* get_sigcode(const siginfo_t* si) {
          return "SEGV_MTEAERR";
        case SEGV_MTESERR:
          return "SEGV_MTESERR";
        case SEGV_CPERR:
          return "SEGV_CPERR";
      }
      static_assert(NSIGSEGV == SEGV_MTESERR, "missing SEGV_* si_code");
      static_assert(NSIGSEGV == SEGV_CPERR, "missing SEGV_* si_code");
      break;
    case SIGSYS:
      switch (si->si_code) {