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.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/um/include/shared/longjmp.h b/arch/um/include/shared/longjmp.h
index b3315c1f198b..c53e43d980c8 100644
--- a/arch/um/include/shared/longjmp.h
+++ b/arch/um/include/shared/longjmp.h
@@ -12,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