vm86.h (90c6085a248f8f964588617f51329688bcc9f2bc) vm86.h (5ed92a8ab71f8865ba07811429c988c72299b315)
1#ifndef _ASM_X86_VM86_H
2#define _ASM_X86_VM86_H
3
4#include <asm/ptrace.h>
5#include <uapi/asm/vm86.h>
6
7/*
8 * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86

--- 15 unchanged lines hidden (view full) ---

24 unsigned short es, __esh;
25 unsigned short ds, __dsh;
26 unsigned short fs, __fsh;
27 unsigned short gs, __gsh;
28};
29
30struct vm86 {
31 struct vm86plus_struct __user *vm86_info;
1#ifndef _ASM_X86_VM86_H
2#define _ASM_X86_VM86_H
3
4#include <asm/ptrace.h>
5#include <uapi/asm/vm86.h>
6
7/*
8 * This is the (kernel) stack-layout when we have done a "SAVE_ALL" from vm86

--- 15 unchanged lines hidden (view full) ---

24 unsigned short es, __esh;
25 unsigned short ds, __dsh;
26 unsigned short fs, __fsh;
27 unsigned short gs, __gsh;
28};
29
30struct vm86 {
31 struct vm86plus_struct __user *vm86_info;
32 struct pt_regs *regs32;
32 struct pt_regs regs32;
33 unsigned long v86flags;
34 unsigned long v86mask;
35 unsigned long saved_sp0;
36
37 unsigned long flags;
38 unsigned long screen_bitmap;
39 unsigned long cpu_type;
40 struct revectored_struct int_revectored;
41 struct revectored_struct int21_revectored;
42 struct vm86plus_info_struct vm86plus;
43};
44
45#ifdef CONFIG_VM86
46
47void handle_vm86_fault(struct kernel_vm86_regs *, long);
48int handle_vm86_trap(struct kernel_vm86_regs *, long, int);
33 unsigned long v86flags;
34 unsigned long v86mask;
35 unsigned long saved_sp0;
36
37 unsigned long flags;
38 unsigned long screen_bitmap;
39 unsigned long cpu_type;
40 struct revectored_struct int_revectored;
41 struct revectored_struct int21_revectored;
42 struct vm86plus_info_struct vm86plus;
43};
44
45#ifdef CONFIG_VM86
46
47void handle_vm86_fault(struct kernel_vm86_regs *, long);
48int handle_vm86_trap(struct kernel_vm86_regs *, long, int);
49struct pt_regs *save_v86_state(struct kernel_vm86_regs *);
49void save_v86_state(struct kernel_vm86_regs *, int);
50
51struct task_struct;
52void release_vm86_irqs(struct task_struct *);
53
54#define free_vm86(t) do { \
55 struct thread_struct *__t = (t); \
56 if (__t->vm86 != NULL) { \
57 kfree(__t->vm86); \

--- 6 unchanged lines hidden (view full) ---

64#define handle_vm86_fault(a, b)
65#define release_vm86_irqs(a)
66
67static inline int handle_vm86_trap(struct kernel_vm86_regs *a, long b, int c)
68{
69 return 0;
70}
71
50
51struct task_struct;
52void release_vm86_irqs(struct task_struct *);
53
54#define free_vm86(t) do { \
55 struct thread_struct *__t = (t); \
56 if (__t->vm86 != NULL) { \
57 kfree(__t->vm86); \

--- 6 unchanged lines hidden (view full) ---

64#define handle_vm86_fault(a, b)
65#define release_vm86_irqs(a)
66
67static inline int handle_vm86_trap(struct kernel_vm86_regs *a, long b, int c)
68{
69 return 0;
70}
71
72static inline void save_v86_state(struct kernel_vm86_regs *a, int b) { }
73
72#define free_vm86(t) do { } while(0)
73
74#endif /* CONFIG_VM86 */
75
76#endif /* _ASM_X86_VM86_H */
74#define free_vm86(t) do { } while(0)
75
76#endif /* CONFIG_VM86 */
77
78#endif /* _ASM_X86_VM86_H */