0005-add-TRAP_UNK-si_code-to-signal.h-from-linux-v4.18.patch 765 B

123456789101112131415161718192021222324252627
  1. From 0d22b4ab02ad516fa628c523e0c5597c6978467b Mon Sep 17 00:00:00 2001
  2. From: Szabolcs Nagy <nsz@port70.net>
  3. Date: Wed, 22 Aug 2018 17:10:55 +0000
  4. Subject: [PATCH 5/8] add TRAP_UNK si_code to signal.h from linux v4.18
  5. used for undiagnosed trap exceptions where linux previously set si_code to 0.
  6. new in linux commit db78e6a0a6f9f7d7277965600eeb1a5b3a6f55a8
  7. ---
  8. include/signal.h | 1 +
  9. 1 file changed, 1 insertion(+)
  10. diff --git a/include/signal.h b/include/signal.h
  11. index a4f85cca..5c48cb83 100644
  12. --- a/include/signal.h
  13. +++ b/include/signal.h
  14. @@ -233,6 +233,7 @@ void (*sigset(int, void (*)(int)))(int);
  15. #define TRAP_TRACE 2
  16. #define TRAP_BRANCH 3
  17. #define TRAP_HWBKPT 4
  18. +#define TRAP_UNK 5
  19. #define POLL_IN 1
  20. #define POLL_OUT 2
  21. #define POLL_MSG 3
  22. --
  23. 2.17.1