3 ;******************************************************************************
5 ; (C) Copyright MICROSOFT Corp. 1986
7 ; Title: MEMM - MICROSOFT Expanded Memory Manager 386
9 ; Module: VDMSEL.INC - Selector Definitions for MEMM
17 ;******************************************************************************
21 ; DATE REVISION DESCRIPTION
22 ; -------- -------- -------------------------------------------------------
24 ; 05/12/86 A Cleanup and segment reorganization
25 ; 06/07/86 C merged with module from Rick
26 ; 06/28/86 0.02 Name change from MEMM386 to MEMM
27 ; 07/10/86 0.05 Changed CODE_GSEL to RCODEA_GSEL
28 ; 07/20/88 Remove debugger selectors
30 ;******************************************************************************
39 ; These are the fixed selector numbers for the GDT and LDT
41 ; All are declared with RPL = 0 so they can easily be used
44 ; Do not change anything without consulting files which include
45 ; this one. Add new selectors to the end and update the
46 ; gdt declaration and initialisation code elsewhere.
49 ; Define LDT and GDT table bits
55 ; Define GDT selectors
57 GDTD_GSEL equ 008h OR TAB_GDT ; gdt data alias
58 IDTD_GSEL equ 010h OR TAB_GDT ; idt data alias
59 LDT_GSEL equ 018h OR TAB_GDT ; ldt
60 LDTD_GSEL equ 020h OR TAB_GDT ; ldt data alias
61 TSS_GSEL equ 028h OR TAB_GDT ; tss
62 TSSD_GSEL equ 030h OR TAB_GDT ; tss data alias
63 RM_IDT_GSEL equ 038h OR TAB_GDT ; real mode idt (locn 0)
64 ROMDATA_GSEL equ 040h OR TAB_GDT ; maps 40:0 - DON'T CHANGE!!
65 VDMC_GSEL equ 048h OR TAB_GDT ; VDM Code selector
66 VDMD_GSEL equ 050h OR TAB_GDT ; VDM Data Selector
67 VDMS_GSEL equ 058h OR TAB_GDT ; VDM stack selector
68 MONO_GSEL equ 060h OR TAB_GDT ; monochrome display memory
69 COLOUR_GSEL equ 068h OR TAB_GDT ; colour display memory
70 EGA1_GSEL equ 070h OR TAB_GDT ; first EGA sel
71 EGA2_GSEL equ 078h OR TAB_GDT ; second EGA sel
72 LOADALL_GSEL equ 080h OR TAB_GDT ; loadall buffer - DON'T CHANGE
73 ;DEBC_GSEL equ 088h or TAB_GDT ; debugger work descr
74 ;DEBD_GSEL equ 090h or TAB_GDT ; debugger work descr
75 ;DEBW1_GSEL equ 098h or TAB_GDT ; debugger work descr
76 ;DEBW2_GSEL equ 0A0h or TAB_GDT ; debugger work descr
77 DEB1_GSEL equ 088h or TAB_GDT ; deb386 word descr
78 DEB2_GSEL equ 090h or TAB_GDT ; deb386 word descr
79 DEB3_GSEL equ 098h or TAB_GDT ; deb386 word descr
80 DEB4_GSEL equ 0A0h or TAB_GDT ; deb386 word descr
81 DEB5_GSEL equ 0A8h or TAB_GDT ; deb386 word descr
82 DEBX_GSEL equ 0B0h or TAB_GDT ; deb386 descr for all of addressing space
83 K_PUTC286 equ 0B8h OR TAB_GDT ; 286 call gate to kputc
84 K_GETC286 equ 0C0h OR TAB_GDT ; 286 call gate to kgetc
85 RCODEA_GSEL equ 0C8h OR TAB_GDT ; data alias for R_CODE segment
86 VM1_GSEL equ 0D0h OR TAB_GDT ; scratch for vm handler
87 VM2_GSEL equ 0D8h OR TAB_GDT ; scratch for vm handler
88 MBSRC_GSEL equ 0E0h OR TAB_GDT ; source sel for move blk
89 MBTAR_GSEL equ 0E8h OR TAB_GDT ; target sel for move blk
90 PAGET_GSEL equ 0F0h OR TAB_GDT ; page table area sel
91 VDMCA_GSEL equ 0F8h OR TAB_GDT ; VDM code segment alias
92 EMM1_GSEL equ 100h OR TAB_GDT ; EMM scratch selector
93 EMM2_GSEL equ 108h OR TAB_GDT ; EMM scratch selector
94 OEM0_GSEL equ 110h OR TAB_GDT ; OEM specific selector
95 OEM1_GSEL equ 118h OR TAB_GDT ; OEM specific selector
96 OEM2_GSEL equ 120h OR TAB_GDT ; OEM specific selector
97 OEM3_GSEL equ 128h OR TAB_GDT ; OEM specific selector
98 USER1_GSEL equ 130h OR TAB_GDT ; USER data structure
100 .list ; end of VDMSEL.INC