static void Sys_Init (void) { MaskExceptions (); Sys_SetFPCW (); #if !USE_UCLOCK_TIME dos_outportb(0x43, 0x34); // set system timer to mode 2 dos_outportb(0x40, 0); // for the Sys_DoubleTime() function dos_outportb(0x40, 0); #endif /* ! USE_UCLOCK_TIME */ Sys_InitTime (); _go32_interrupt_stack_size = 4 * 1024; _go32_rmcb_stack_size = 4 * 1024; }
/* * Sys_Init */ void Sys_Init( void ) { timeBeginPeriod( 1 ); Sys_InitTime(); Sys_InitThreads(); if( dedicated->integer ) { SetPriorityClass( GetCurrentProcess(), HIGH_PRIORITY_CLASS ); if( !AllocConsole() ) Sys_Error( "Couldn't create dedicated server console" ); // let QHOST hook in InitConProc( argc, argv ); } }
/* * Sys_Init */ void Sys_Init( void ) { Sys_InitTime(); }