mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 02:05:29 +07:00
0dafcbe128
UML enables TRACE_IRQFLAGS_SUPPORT but doesn't actually implement
it. It seems to have been added for lockdep support, but that can't
actually really work well without IRQ flags tracing, as is also
very noisily reported when enabling CONFIG_DEBUG_LOCKDEP.
Implement it now.
Fixes: 711553efa5
("[PATCH] uml: declare in Kconfig our partial LOCKDEP support")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
25 lines
446 B
C
25 lines
446 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __UML_LONGJMP_H
|
|
#define __UML_LONGJMP_H
|
|
|
|
#include <sysdep/archsetjmp.h>
|
|
#include <os.h>
|
|
|
|
extern int setjmp(jmp_buf);
|
|
extern void longjmp(jmp_buf, int);
|
|
|
|
#define UML_LONGJMP(buf, val) do { \
|
|
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_trace(enable); \
|
|
n; })
|
|
|
|
#endif
|