| 1 | ;
|
|---|
| 2 | ; EMXDLL.INC
|
|---|
| 3 | ;
|
|---|
| 4 | ; Copyright (c) 1992-1995 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 | ; As special exception, emx.dll can be distributed without source code
|
|---|
| 24 | ; unless it has been changed. If you modify emx.dll, this exception
|
|---|
| 25 | ; no longer applies and you must remove this paragraph from all source
|
|---|
| 26 | ; files for emx.dll.
|
|---|
| 27 | ;
|
|---|
| 28 |
|
|---|
| 29 | OPTION PROC:PRIVATE
|
|---|
| 30 |
|
|---|
| 31 | ; ----------------------------------------------------------------------------
|
|---|
| 32 | ; Segments
|
|---|
| 33 | ; ----------------------------------------------------------------------------
|
|---|
| 34 |
|
|---|
| 35 | TEXT32 SEGMENT DWORD FLAT PUBLIC 'CODE'
|
|---|
| 36 | TEXT32 ENDS
|
|---|
| 37 |
|
|---|
| 38 | TEXT16 SEGMENT DWORD USE16 PUBLIC 'CODE'
|
|---|
| 39 | TEXT16 ENDS
|
|---|
| 40 |
|
|---|
| 41 | BSS16 SEGMENT DWORD USE16 PUBLIC 'BSS'
|
|---|
| 42 | BSS16 ENDS
|
|---|
| 43 |
|
|---|
| 44 | BSS32 SEGMENT DWORD FLAT PUBLIC 'BSS'
|
|---|
| 45 | BSS32 ENDS
|
|---|
| 46 |
|
|---|
| 47 | c_common SEGMENT DWORD FLAT PUBLIC 'BSS'
|
|---|
| 48 | c_common ENDS
|
|---|
| 49 |
|
|---|
| 50 | COMMON32 SEGMENT DWORD FLAT PUBLIC 'COMMON'
|
|---|
| 51 | COMMON32 ENDS
|
|---|
| 52 |
|
|---|
| 53 | DGROUP GROUP c_common
|
|---|
| 54 |
|
|---|
| 55 | ; ----------------------------------------------------------------------------
|
|---|
| 56 | ; Constants
|
|---|
| 57 | ; ----------------------------------------------------------------------------
|
|---|
| 58 |
|
|---|
| 59 | ;
|
|---|
| 60 | ; NOT FALSE will be used instead of TRUE to avoid size problems
|
|---|
| 61 | ;
|
|---|
| 62 | FALSE = 0
|
|---|
| 63 |
|
|---|
| 64 | __EMXDOS = FALSE
|
|---|
| 65 |
|
|---|
| 66 | SIGA_KILL = 0
|
|---|
| 67 | SIGA_IGNORE = 1
|
|---|
| 68 | SIGA_ACCEPT = 2
|
|---|
| 69 | SIGA_ERROR = 3
|
|---|
| 70 | SIGA_ACKNOWLEDGE = 4
|
|---|
| 71 |
|
|---|
| 72 | L_FLAG_DLL = 0001H ; Executable is a DLL
|
|---|
| 73 | L_FLAG_LINK386 = 0002H ; Linked by LINK386
|
|---|
| 74 |
|
|---|
| 75 | ; ----------------------------------------------------------------------------
|
|---|
| 76 | ; Structures
|
|---|
| 77 | ; ----------------------------------------------------------------------------
|
|---|
| 78 |
|
|---|
| 79 | LAYOUT_TABLE STRUC
|
|---|
| 80 | L_TEXT_BASE DD ?
|
|---|
| 81 | L_TEXT_END DD ?
|
|---|
| 82 | L_DATA_BASE DD ?
|
|---|
| 83 | L_DATA_END DD ?
|
|---|
| 84 | L_BSS_BASE DD ?
|
|---|
| 85 | L_BSS_END DD ?
|
|---|
| 86 | L_HEAP_BASE DD ?
|
|---|
| 87 | L_HEAP_END DD ?
|
|---|
| 88 | L_HEAP_BRK DD ?
|
|---|
| 89 | L_HEAP_OFF DD ?
|
|---|
| 90 | L_OS2_DLL DD ?
|
|---|
| 91 | L_STACK_BASE DD ?
|
|---|
| 92 | L_STACK_END DD ?
|
|---|
| 93 | L_FLAGS DD ?
|
|---|
| 94 | L_RESERVED DD 2 DUP (?)
|
|---|
| 95 | L_OPTIONS DB 64 DUP (?)
|
|---|
| 96 | LAYOUT_TABLE ENDS
|
|---|
| 97 |
|
|---|
| 98 | EXC_REGISTER STRUCT
|
|---|
| 99 | ES_PREV DD ?
|
|---|
| 100 | ES_HANDLER DD ?
|
|---|
| 101 | EXC_REGISTER ENDS
|
|---|
| 102 |
|
|---|
| 103 | TIB STRUCT
|
|---|
| 104 | TIB_EXC_CHAIN DD ?
|
|---|
| 105 | TIB_STACK_BASE DD ?
|
|---|
| 106 | TIB_STACK_END DD ?
|
|---|
| 107 | TIB_SYS_PTR DD ?
|
|---|
| 108 | TIB_VERSION DD ?
|
|---|
| 109 | TIB_USER_DATA DD ?
|
|---|
| 110 | TIB ENDS
|
|---|
| 111 |
|
|---|
| 112 | TIB2 STRUCT
|
|---|
| 113 | TID DWORD ?
|
|---|
| 114 | PRIORITY DWORD ?
|
|---|
| 115 | VERSION DWORD ?
|
|---|
| 116 | MC_COUNT WORD ?
|
|---|
| 117 | MC_FORCE_FLAG WORD ?
|
|---|
| 118 | TIB2 ENDS
|
|---|
| 119 |
|
|---|
| 120 | ;
|
|---|
| 121 | ; A REXX string (used by emxio.asm)
|
|---|
| 122 | ;
|
|---|
| 123 | RXSTRING STRUCT
|
|---|
| 124 | RXSTRLEN DWORD ?
|
|---|
| 125 | RXSTRPTR DWORD ?
|
|---|
| 126 | RXSTRING ENDS
|
|---|
| 127 |
|
|---|
| 128 |
|
|---|
| 129 | ; ----------------------------------------------------------------------------
|
|---|
| 130 | ; Macros
|
|---|
| 131 | ; ----------------------------------------------------------------------------
|
|---|
| 132 |
|
|---|
| 133 | DALIGN MACRO VAL:REQ
|
|---|
| 134 | ALIGN VAL
|
|---|
| 135 | ENDM
|
|---|
| 136 |
|
|---|
| 137 | TALIGN MACRO VAL:REQ
|
|---|
| 138 | ALIGN VAL
|
|---|
| 139 | ENDM
|
|---|
| 140 |
|
|---|
| 141 | ; End of EMXDLL.INC
|
|---|