summaryrefslogtreecommitdiff
path: root/arch/um/include/shared/longjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/shared/longjmp.h')
-rw-r--r--arch/um/include/shared/longjmp.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/um/include/shared/longjmp.h b/arch/um/include/shared/longjmp.h
index 9bdddf4c405b..c53e43d980c8 100644
--- a/arch/um/include/shared/longjmp.h
+++ b/arch/um/include/shared/longjmp.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __UML_LONGJMP_H
#define __UML_LONGJMP_H
@@ -11,13 +12,12 @@ extern void longjmp(jmp_buf, int);
longjmp(*buf, val); \
} while(0)
-#define UML_SETJMP(buf) ({ \
- int n; \
- volatile int enable; \
- enable = get_signals(); \
- n = setjmp(*buf); \
- if(n != 0) \
- set_signals(enable); \
+#define UML_SETJMP(buf) ({ \
+ int n, enable; \
+ enable = um_get_signals(); \
+ n = setjmp(*buf); \
+ if(n != 0) \
+ um_set_signals_trace(enable); \
n; })
#endif