]> Zhao Yanbai Git Server - minix.git/commitdiff
Clean up traces from long-gone sys_int86 interface 37/3337/1
authorAntoine Leca <Antoine.Leca.1@gmail.com>
Wed, 20 Jul 2016 15:43:35 +0000 (17:43 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Wed, 20 Jul 2016 17:00:44 +0000 (19:00 +0200)
Change-Id: I773ab67342be852cc74f76b4fcbb338c9cb11f7e

distrib/sets/lists/minix-comp/md.i386
minix/commands/service/parse.c
minix/include/arch/i386/include/Makefile
minix/include/arch/i386/include/int86.h [deleted file]
minix/include/minix/com.h
minix/include/minix/syslib.h
minix/lib/libsys/arch/i386/Makefile.inc
minix/lib/libsys/arch/i386/sys_int86.c [deleted file]

index 78d78305fd971349ef6d588b52b686b08e53af2d..a7f9af7761c40d44cdb0f4744b68a5d877ef49b8 100644 (file)
 ./usr/include/i386/ibcs2_machdep.h                      minix-comp
 ./usr/include/i386/ieee.h                               minix-comp
 ./usr/include/i386/ieeefp.h                             minix-comp
-./usr/include/i386/int86.h                              minix-comp
+./usr/include/i386/int86.h                              minix-comp     obsolete
 ./usr/include/i386/int_const.h                          minix-comp
 ./usr/include/i386/int_fmtio.h                          minix-comp
 ./usr/include/i386/int_limits.h                         minix-comp
index af2d349ef5a9730873ae86f16f6b35917e233683..dfae9e3c37c7e5411f121d38fe2d2982603a0271 100644 (file)
@@ -835,7 +835,6 @@ struct
        { "UMAP_REMOTE",        SYS_UMAP_REMOTE },
        { "VUMAP",              SYS_VUMAP },
        { "IRQCTL",             SYS_IRQCTL },
-       { "INT86",              SYS_INT86 },
        { "DEVIO",              SYS_DEVIO },
        { "SDEVIO",             SYS_SDEVIO },
        { "VDEVIO",             SYS_VDEVIO },
index 1fa8a6df50ae8bab6e325b72b9cd5c285526b58c..196c83a887750e8cbdc341d392ca1ff70cd0f0cd 100644 (file)
@@ -2,7 +2,7 @@
 INCSDIR= /usr/include/i386
 
 INCS=  archconst.h archtypes.h bios.h cmos.h \
-       diskparm.h elf.h fpu.h int86.h interrupt.h \
+       diskparm.h elf.h fpu.h interrupt.h \
        ipcconst.h memory.h partition.h \
        pci_amd.h pci.h pci_intel.h pci_sis.h \
        pci_via.h ports.h stackframe.h vm.h
diff --git a/minix/include/arch/i386/include/int86.h b/minix/include/arch/i386/include/int86.h
deleted file mode 100644 (file)
index 30d6fa6..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*     int86.h - 8086 interrupt types                  Author: Kees J. Bot
- *                                                             3 May 2000
- */
-
-/* Registers used in an PC real mode call for BIOS or DOS services.  A
- * driver is called through the vector if the interrupt number is zero.
- */
-union reg86 {
-    struct l {
-       u32_t   ef;                     /* 32 bit flags (output only) */
-       u32_t   vec;                    /* Driver vector (input only) */
-       u32_t   _ds_es[1];
-       u32_t   eax;                    /* 32 bit general registers */
-       u32_t   ebx;
-       u32_t   ecx;
-       u32_t   edx;
-       u32_t   esi;
-       u32_t   edi;
-       u32_t   ebp;
-    } l;
-    struct w {
-       u16_t   f, _ef[1];              /* 16 bit flags (output only) */
-       u16_t   off, seg;               /* Driver vector (input only) */
-       u16_t   ds, es;                 /* DS and ES real mode segment regs */
-       u16_t   ax, _eax[1];            /* 16 bit general registers */
-       u16_t   bx, _ebx[1];
-       u16_t   cx, _ecx[1];
-       u16_t   dx, _edx[1];
-       u16_t   si, _esi[1];
-       u16_t   di, _edi[1];
-       u16_t   bp, _ebp[1];
-    } w;
-    struct b {
-       u8_t    intno, _intno[3];       /* Interrupt number (input only) */
-       u8_t    _vec[4];
-       u8_t    _ds_es[4];
-       u8_t    al, ah, _eax[2];        /* 8 bit general registers */
-       u8_t    bl, bh, _ebx[2];
-       u8_t    cl, ch, _ecx[2];
-       u8_t    dl, dh, _edx[2];
-       u8_t    _esi[4];
-       u8_t    _edi[4];
-       u8_t    _ebp[4];
-    } b;
-};
-
-struct reg86u { union reg86 u; };      /* Better for forward declarations */
-
-/* Parameters passed on ioctls to the memory task. */
-
-struct mio_int86 {             /* MIOCINT86 */
-       union reg86 reg86;              /* x86 registers as above */
-       u16_t   off, seg;               /* Address of kernel buffer */
-       void    *buf;                   /* User data buffer */
-       size_t  len;                    /* Size of user buffer */
-};
-
-struct mio_ldt86 {             /* MIOCGLDT86, MIOCSLDT86 */
-       size_t  idx;                    /* Index in process' LDT */
-       u16_t   entry[4];               /* One LDT entry to get or set. */
-};
index f6a72863063d63a4b13f680a3bdf1b2ec6ffc13a..35367e9ea9f327ec4e2ab64593fd9575a371298a 100644 (file)
 #  define SYS_VUMAP      (KERNEL_CALL + 18)    /* sys_vumap() */
 
 #  define SYS_IRQCTL     (KERNEL_CALL + 19)    /* sys_irqctl() */
-#  define SYS_INT86      (KERNEL_CALL + 20)    /* sys_int86() */
+
 #  define SYS_DEVIO      (KERNEL_CALL + 21)    /* sys_devio() */
 #  define SYS_SDEVIO     (KERNEL_CALL + 22)    /* sys_sdevio() */
 #  define SYS_VDEVIO     (KERNEL_CALL + 23)    /* sys_vdevio() */
index 6f884508d59465fe77720a7b4b3df7e67553df06..1b5ebf11afc72be116015243d1e4feacdcc4cea9 100644 (file)
@@ -15,7 +15,6 @@
 #include <machine/mcontext.h>
 
 /* Forward declaration */
-struct reg86u;
 struct rs_pci;
 struct rusage;
 
@@ -55,7 +54,6 @@ int sys_privquery_mem(endpoint_t proc_ep, phys_bytes physstart,
        phys_bytes physlen);
 int sys_setgrant(cp_grant_t *grants, int ngrants);
 
-int sys_int86(struct reg86u *reg86p);
 int sys_vm_setbuf(phys_bytes base, phys_bytes size, phys_bytes high);
 int sys_vm_map(endpoint_t proc_ep, int do_map, phys_bytes base,
        phys_bytes size, phys_bytes offset);
index 9b9aa2d383a7c4dd5cff2fcb822bd48b0c7aebdc..19f85b7e0010ddaf2c5e790f240606c9d56de079 100644 (file)
@@ -11,7 +11,6 @@ SRCS+=  \
         spin.c \
         sys_eniop.c \
         sys_in.c \
-        sys_int86.c \
         sys_out.c \
         sys_readbios.c \
         sys_sdevio.c \
diff --git a/minix/lib/libsys/arch/i386/sys_int86.c b/minix/lib/libsys/arch/i386/sys_int86.c
deleted file mode 100644 (file)
index f697819..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "syslib.h"
-
-/*===========================================================================*
- *                                sys_int86                                 *
- *===========================================================================*/
-int sys_int86(reg86p)
-struct reg86u *reg86p;
-{
-    message m;
-    int result;
-
-    m.m1_p1= (char *)reg86p;
-
-    result = _kernel_call(SYS_INT86, &m);
-    return(result);
-}
-