Changeset 8436
- Timestamp:
- May 16, 2002, 3:45:32 PM (23 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/kernel32/winexepe2lx.cpp ¶
r6211 r8436 1 /* $Id: winexepe2lx.cpp,v 1.1 0 2001-07-08 02:49:47 birdExp $ */1 /* $Id: winexepe2lx.cpp,v 1.11 2002-05-16 13:45:32 sandervl Exp $ */ 2 2 3 3 /* … … 28 28 #include <win32k.h> 29 29 #include "winexepe2lx.h" 30 #include <cpuhlp.h> 31 #include <wprocess.h> 32 #include <win32api.h> 30 33 31 34 #include "cio.h" // I/O … … 33 36 #include "conwin.h" // Windows Header for console only 34 37 #include "console.h" 38 39 #include "exceptions.h" 40 #include "exceptutil.h" 35 41 36 42 #define DBG_LOCALLOG DBG_winexepe2lx … … 198 204 return FALSE; 199 205 } 200 206 //****************************************************************************** 207 //****************************************************************************** 208 ULONG Win32Pe2LxExe::start() 209 { 210 WINEXCEPTION_FRAME exceptFrame; 211 ULONG rc; 212 213 dprintf(("Start executable %X\n", WinExe)); 214 215 fExeStarted = TRUE; 216 217 //Allocate TLS index for this module 218 tlsAlloc(); 219 tlsAttachThread(); //setup TLS (main thread) 220 221 //Note: The Win32 exception structure references by FS:[0] is the same 222 // in OS/2 223 OS2SetExceptionHandler((void *)&exceptFrame); 224 USHORT sel = SetWin32TIB(isPEImage() ? TIB_SWITCH_FORCE_WIN32 : TIB_SWITCH_DEFAULT); 225 226 //Set FPU control word to 0x27F (same as in NT) 227 CONTROL87(0x27F, 0xFFF); 228 dprintf(("KERNEL32: Win32ExeBase::start exe at %08xh\n", 229 (void*)entryPoint )); 230 rc = CallEntryPoint(entryPoint, NULL); 231 232 SetFS(sel); //restore FS 233 234 OS2UnsetExceptionHandler((void *)&exceptFrame); 235 236 ExitProcess(rc); 237 return rc; 238 } 239 //****************************************************************************** 240 //****************************************************************************** -
TabularUnified trunk/src/kernel32/winexepe2lx.h ¶
r6211 r8436 1 /* $Id: winexepe2lx.h,v 1. 4 2001-07-08 02:49:47 birdExp $ */1 /* $Id: winexepe2lx.h,v 1.5 2002-05-16 13:45:32 sandervl Exp $ */ 2 2 3 3 /* … … 32 32 static BOOL earlyInit(); 33 33 34 virtual ULONG start(); 35 34 36 public: 35 37 static BOOL fEarlyInit;
Note:
See TracChangeset
for help on using the changeset viewer.