Changeset 667 for GPL/branches/uniaud32-next/drv32/init.c
- Timestamp:
- Jan 27, 2021, 9:35:47 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/drv32/init.c
r655 r667 39 39 #include <irqos2.h> 40 40 #include <osspci.h> 41 //#include <bsedos16.h>42 #ifdef KEE43 41 #include <kee.h> 44 #endif45 42 #include "parse.h" 46 43 #include "malloc.h" … … 103 100 int LockSegments(void) 104 101 { 105 #ifdef KEE106 102 KEEVMLock lock; 107 #else108 char lock[12];109 ULONG PgCount;110 #endif111 103 ULONG segsize; 112 104 … … 122 114 } 123 115 segsize &= ~0xFFF; 124 #ifdef KEE 116 125 117 if(KernVMLock(VMDHL_LONG, 126 118 (PVOID)((OffsetBeginDS32) & ~0xFFF), … … 129 121 (KEEVMPageList*)-1, 130 122 0)) { 131 #else132 if(DevVMLock(VMDHL_LONG,133 ((OffsetBeginDS32) & ~0xFFF),134 segsize,135 (LINEAR)-1,136 (LINEAR)lock,137 (LINEAR)&PgCount)) {138 #endif139 123 return(1); 140 124 } … … 147 131 } 148 132 segsize &= ~0xFFF; 149 #ifdef KEE 133 150 134 if(KernVMLock(VMDHL_LONG, 151 135 (PVOID)((OffsetBeginCS32) & ~0xFFF), … … 154 138 (KEEVMPageList*)-1, 155 139 0)) { 156 #else157 if(DevVMLock(VMDHL_LONG,158 ((OffsetBeginCS32) & ~0xFFF),159 segsize,160 (LINEAR)-1,161 (LINEAR)lock,162 (LINEAR)&PgCount)) {163 #endif164 140 return(1); 165 141 } … … 202 178 char debugmsg[64]; 203 179 char FAR48 *args; 204 205 #ifndef KEE206 GetTKSSBase();207 #endif208 180 209 181 DebugLevel = 1;
Note:
See TracChangeset
for help on using the changeset viewer.