#ifndef _ASM_X86_VM86_H
#define _ASM_X86_VM86_H
#include <asm/ptrace.h>
#include <uapi/asm/vm86.h>
struct kernel_vm86_regs { … };
struct vm86 { … };
#ifdef CONFIG_VM86
void handle_vm86_fault(struct kernel_vm86_regs *, long);
int handle_vm86_trap(struct kernel_vm86_regs *, long, int);
void save_v86_state(struct kernel_vm86_regs *, int);
struct task_struct;
#define free_vm86 …
#define FIRST_VM86_IRQ …
#define LAST_VM86_IRQ …
static inline int invalid_vm86_irq(int irq)
{
return irq < FIRST_VM86_IRQ || irq > LAST_VM86_IRQ;
}
void release_vm86_irqs(struct task_struct *);
#else
#define handle_vm86_fault(a, b) …
#define release_vm86_irqs(a) …
static inline int handle_vm86_trap(struct kernel_vm86_regs *a, long b, int c)
{ … }
static inline void save_v86_state(struct kernel_vm86_regs *a, int b) { … }
#define free_vm86(task) …
#endif
#endif