Commit b2f32bc6 authored by Alexandre Julliard's avatar Alexandre Julliard

Moved system.dll implementation to dlls/kernel.

parent 52397422
......@@ -47,7 +47,8 @@ C_SRCS = \
wowthunk.c
C_SRCS16 = \
registry16.c
registry16.c \
system.c
RC_SRCS = kernel.rc
......
......@@ -38,7 +38,6 @@ C_SRCS = \
$(TOPOBJDIR)/misc/main.c \
$(TOPOBJDIR)/misc/options.c \
$(TOPOBJDIR)/misc/registry.c \
$(TOPOBJDIR)/misc/system.c \
$(TOPOBJDIR)/misc/version.c \
$(TOPOBJDIR)/msdos/dosmem.c \
$(TOPOBJDIR)/msdos/dpmi.c \
......
......@@ -59,6 +59,19 @@ inline static void *get_stack( CONTEXT86 *context )
return wine_ldt_get_ptr( context->SegSs, context->Esp );
}
/***********************************************************************
* timer_thread
*/
static DWORD CALLBACK timer_thread( void *dummy )
{
for (;;)
{
Sleep(55);
DOSMEM_Tick( 0 );
}
}
/***********************************************************************
* INSTR_ReplaceSelector
*
......@@ -86,9 +99,13 @@ static BOOL INSTR_ReplaceSelector( CONTEXT86 *context, WORD *sel )
if (*sel == 0x40)
{
#if 0 /* hack until this is moved to kernel */
static WORD sys_timer = 0;
if (!sys_timer)
sys_timer = CreateSystemTimer( 55, DOSMEM_Tick );
#endif
static HANDLE sys_thread;
if (!sys_thread) sys_thread = CreateThread( NULL, 0, timer_thread, NULL, 0, NULL );
*sel = DOSMEM_BiosDataSeg;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment