source: vendor/emx/current/src/dos/segments.inc

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1;
2; SEGMENTS.INC -- Manage segments
3;
4; Copyright (c) 1991-1999 by Eberhard Mattes
5;
6; This file is part of emx.
7;
8; emx is free software; you can redistribute it and/or modify it
9; under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2, or (at your option)
11; any later version.
12;
13; emx is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16; GNU General Public License for more details.
17;
18; You should have received a copy of the GNU General Public License
19; along with emx; see the file COPYING. If not, write to
20; the Free Software Foundation, 59 Temple Place - Suite 330,
21; Boston, MA 02111-1307, USA.
22;
23; See emx.asm for a special exception.
24;
25
26A_DATA32 = 4093H ; Accessed, writable, expand up, big
27A_READ32 = 4091H ; Accessed, expand up, big
28A_CODE32 = 409BH ; Accessed, readable, non-conforming, default=32
29A_LDT = 0082H ; LDT
30A_TSS = 0089H ; TSS
31
32DPL_0 = 0000H
33DPL_1 = 0020H
34DPL_2 = 0040H
35DPL_3 = 0060H
36
37
38 IFNDEF __SEGMENTS
39
40SV_DATA SEGMENT
41
42 EXTRN NEW_TSS:BYTE
43 EXTRN G_PHYS_BASE:DWORD
44
45SV_DATA ENDS
46
47SV_CODE SEGMENT
48
49 EXTRN CREATE_SEG:NEAR, SV_SEGMENT:NEAR
50 EXTRN SEG_SIZE:NEAR, SEG_BASE:NEAR, SEG_ATTR:NEAR
51 EXTRN GET_BASE:NEAR, NULL_SEG:NEAR, GET_LIN:NEAR
52 EXTRN GET_DESC:NEAR, INIT_TSS:NEAR, ADD_PAGES:NEAR
53 EXTRN ACCESS_LOWMEM:NEAR, MAP_PHYS:NEAR
54
55SV_CODE ENDS
56
57INIT_CODE SEGMENT
58
59 EXTRN INIT_DESC:NEAR
60 EXTRN RM_SEG_BASE:NEAR
61 EXTRN RM_SEG_SIZE:NEAR
62
63INIT_CODE ENDS
64
65 ENDIF
Note: See TracBrowser for help on using the repository browser.