mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 23:46:39 +07:00
c7ea591c91
analog of [PATCH] i386: let usermode execute the "enter" instruction from circa 2006. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
19 lines
378 B
C
19 lines
378 B
C
#ifndef __UM_PROCESSOR_H
|
|
#define __UM_PROCESSOR_H
|
|
|
|
/* include faultinfo structure */
|
|
#include <sysdep/faultinfo.h>
|
|
|
|
#ifdef CONFIG_X86_32
|
|
# include "processor_32.h"
|
|
#else
|
|
# include "processor_64.h"
|
|
#endif
|
|
|
|
#define ARCH_IS_STACKGROW(address) \
|
|
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs))
|
|
|
|
#include <asm/processor-generic.h>
|
|
|
|
#endif
|