golden hour
/usr/include/asm
⬆️ Go Up
Upload
File/Folder
Size
Actions
a.out.h
756 B
Del
OK
amd_hsmp.h
11.28 KB
Del
OK
auxvec.h
546 B
Del
OK
bitsperlong.h
321 B
Del
OK
boot.h
323 B
Del
OK
bootparam.h
8.31 KB
Del
OK
bpf_perf_event.h
40 B
Del
OK
byteorder.h
200 B
Del
OK
debugreg.h
3.25 KB
Del
OK
e820.h
2.52 KB
Del
OK
errno.h
31 B
Del
OK
fcntl.h
31 B
Del
OK
hw_breakpoint.h
69 B
Del
OK
hwcap2.h
324 B
Del
OK
ioctl.h
31 B
Del
OK
ioctls.h
32 B
Del
OK
ipcbuf.h
32 B
Del
OK
ist.h
854 B
Del
OK
kvm.h
20.4 KB
Del
OK
kvm_para.h
4.22 KB
Del
OK
kvm_perf.h
388 B
Del
OK
ldt.h
1.28 KB
Del
OK
mce.h
1.69 KB
Del
OK
mman.h
413 B
Del
OK
msgbuf.h
1.05 KB
Del
OK
msr.h
346 B
Del
OK
mtrr.h
3.9 KB
Del
OK
param.h
31 B
Del
OK
perf_regs.h
1.37 KB
Del
OK
poll.h
30 B
Del
OK
posix_types.h
224 B
Del
OK
posix_types_32.h
765 B
Del
OK
posix_types_64.h
609 B
Del
OK
posix_types_x32.h
581 B
Del
OK
prctl.h
1.08 KB
Del
OK
processor-flags.h
6.97 KB
Del
OK
ptrace-abi.h
1.99 KB
Del
OK
ptrace.h
1.46 KB
Del
OK
resource.h
34 B
Del
OK
sembuf.h
1.04 KB
Del
OK
setup.h
6 B
Del
OK
sgx.h
8.15 KB
Del
OK
shmbuf.h
1.29 KB
Del
OK
sigcontext.h
9.5 KB
Del
OK
sigcontext32.h
271 B
Del
OK
siginfo.h
422 B
Del
OK
signal.h
2.02 KB
Del
OK
socket.h
32 B
Del
OK
sockios.h
33 B
Del
OK
stat.h
3.06 KB
Del
OK
statfs.h
416 B
Del
OK
svm.h
9.59 KB
Del
OK
swab.h
724 B
Del
OK
termbits.h
34 B
Del
OK
termios.h
33 B
Del
OK
types.h
31 B
Del
OK
ucontext.h
2.07 KB
Del
OK
unistd.h
623 B
Del
OK
unistd_32.h
11.8 KB
Del
OK
unistd_64.h
9.7 KB
Del
OK
unistd_x32.h
17.01 KB
Del
OK
vm86.h
3.11 KB
Del
OK
vmx.h
7.29 KB
Del
OK
vsyscall.h
263 B
Del
OK
Edit: vm86.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_X86_VM86_H #define _ASM_X86_VM86_H /* * I'm guessing at the VIF/VIP flag usage, but hope that this is how * the Pentium uses them. Linux will return from vm86 mode when both * VIF and VIP is set. * * On a Pentium, we could probably optimize the virtual flags directly * in the eflags register instead of doing it "by hand" in vflags... * * Linus */ #include <asm/processor-flags.h> #define BIOSSEG 0x0f000 #define CPU_086 0 #define CPU_186 1 #define CPU_286 2 #define CPU_386 3 #define CPU_486 4 #define CPU_586 5 /* * Return values for the 'vm86()' system call */ #define VM86_TYPE(retval) ((retval) & 0xff) #define VM86_ARG(retval) ((retval) >> 8) #define VM86_SIGNAL 0 /* return due to signal */ #define VM86_UNKNOWN 1 /* unhandled GP fault - IO-instruction or similar */ #define VM86_INTx 2 /* int3/int x instruction (ARG = x) */ #define VM86_STI 3 /* sti/popf/iret instruction enabled virtual interrupts */ /* * Additional return values when invoking new vm86() */ #define VM86_PICRETURN 4 /* return due to pending PIC request */ #define VM86_TRAP 6 /* return due to DOS-debugger request */ /* * function codes when invoking new vm86() */ #define VM86_PLUS_INSTALL_CHECK 0 #define VM86_ENTER 1 #define VM86_ENTER_NO_BYPASS 2 #define VM86_REQUEST_IRQ 3 #define VM86_FREE_IRQ 4 #define VM86_GET_IRQ_BITS 5 #define VM86_GET_AND_RESET_IRQ 6 /* * This is the stack-layout seen by the user space program when we have * done a translation of "SAVE_ALL" from vm86 mode. The real kernel layout * is 'kernel_vm86_regs' (see below). */ struct vm86_regs { /* * normal regs, with special meaning for the segment descriptors.. */ long ebx; long ecx; long edx; long esi; long edi; long ebp; long eax; long __null_ds; long __null_es; long __null_fs; long __null_gs; long orig_eax; long eip; unsigned short cs, __csh; long eflags; long esp; unsigned short ss, __ssh; /* * these are specific to v86 mode: */ unsigned short es, __esh; unsigned short ds, __dsh; unsigned short fs, __fsh; unsigned short gs, __gsh; }; struct revectored_struct { unsigned long __map[8]; /* 256 bits */ }; struct vm86_struct { struct vm86_regs regs; unsigned long flags; unsigned long screen_bitmap; /* unused, preserved by vm86() */ unsigned long cpu_type; struct revectored_struct int_revectored; struct revectored_struct int21_revectored; }; /* * flags masks */ #define VM86_SCREEN_BITMAP 0x0001 /* no longer supported */ struct vm86plus_info_struct { unsigned long force_return_for_pic:1; unsigned long vm86dbg_active:1; /* for debugger */ unsigned long vm86dbg_TFpendig:1; /* for debugger */ unsigned long unused:28; unsigned long is_vm86pus:1; /* for vm86 internal use */ unsigned char vm86dbg_intxxtab[32]; /* for debugger */ }; struct vm86plus_struct { struct vm86_regs regs; unsigned long flags; unsigned long screen_bitmap; unsigned long cpu_type; struct revectored_struct int_revectored; struct revectored_struct int21_revectored; struct vm86plus_info_struct vm86plus; }; #endif /* _ASM_X86_VM86_H */
Save