mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00

The get_thread_reg function is defined in the user code, and is
called by the kernel code. It should be declared in a shared header.
Fixes: dbba7f704a
("um: stop polluting the namespace with registers.h contents")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
13 lines
294 B
C
13 lines
294 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __X86_UM_SYSDEP_ARCHSETJMP_H
|
|
#define __X86_UM_SYSDEP_ARCHSETJMP_H
|
|
|
|
#ifdef __i386__
|
|
#include "archsetjmp_32.h"
|
|
#else
|
|
#include "archsetjmp_64.h"
|
|
#endif
|
|
|
|
unsigned long get_thread_reg(int reg, jmp_buf *buf);
|
|
|
|
#endif /* __X86_UM_SYSDEP_ARCHSETJMP_H */
|