-/* $Id: timer.c,v 1.45 2001/04/17 23:39:25 dwelch Exp $
+/* $Id: timer.c,v 1.46 2001/07/30 03:05:29 rex Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/*
* Number of timer interrupts since initialisation
*/
-volatile ULONGLONG KiTimerTicks;
+volatile ULONGLONG KeTickCount;
volatile ULONG KiRawTicks = 0;
/*
* TickCount (OUT) = Points to storage for the number of ticks
*/
{
- TickCount->QuadPart = KiTimerTicks;
+ TickCount->QuadPart = KeTickCount;
}
STATIC VOID
/*
* Increment the number of timers ticks
*/
- KiTimerTicks++;
+ KeTickCount++;
system_time = system_time + CLOCK_INCREMENT;
/*
-/* $Id: loader.c,v 1.83 2001/06/16 14:08:33 ekohl Exp $
+/* $Id: loader.c,v 1.84 2001/07/30 03:05:30 rex Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
/* MACROS ********************************************************************/
+#define KERNEL_MODULE_NAME L"ntoskrnl.exe"
#define MODULE_ROOT_NAME L"\\Modules\\"
#define FILESYSTEM_ROOT_NAME L"\\FileSystem\\"
NtoskrnlTextSection.Base = KERNEL_BASE;
NtoskrnlTextSection.Length = SectionList[0].Misc.VirtualSize +
SectionList[0].VirtualAddress;
- NtoskrnlTextSection.Name = L"ntoskrnl.exe";
+ NtoskrnlTextSection.Name = KERNEL_MODULE_NAME;
NtoskrnlTextSection.SymbolsBase = NULL;
NtoskrnlTextSection.SymbolsLength = 0;
InsertTailList(&ModuleTextListHead, &NtoskrnlTextSection.ListEntry);
/* Add module entry for NTOSKRNL */
wcscpy(NameBuffer, MODULE_ROOT_NAME);
- wcscat(NameBuffer, L"ntoskrnl.exe");
+ wcscat(NameBuffer, KERNEL_MODULE_NAME);
RtlInitUnicodeString (&ModuleName, NameBuffer);
DPRINT("Kernel's Module name is: %wZ\n", &ModuleName);
InsertTailList(&ModuleListHead,
&ModuleObject->ListEntry);
RtlCreateUnicodeString(&ModuleObject->FullName,
- L"ntoskrnl.exe");
+ KERNEL_MODULE_NAME);
LdrpBuildModuleBaseName(&ModuleObject->BaseName,
&ModuleObject->FullName);
/* Load symbols for ntoskrnl.exe and hal.dll because \SystemRoot
is created after their module entries */
- RtlInitUnicodeString(&ModuleName, L"ntoskrnl.exe");
+ RtlInitUnicodeString(&ModuleName, KERNEL_MODULE_NAME);
Status = LdrpFindModuleObject(&ModuleName, &ModuleObject);
if (NT_SUCCESS(Status)) {
pName = (PCHAR) DriverBase +
ImportModuleDirectory->dwRVAModuleName;
wcscpy(NameBuffer, MODULE_ROOT_NAME);
- for (Idx = 0; NameBuffer[Idx] != 0; Idx++)
- ;
- for (Idx2 = 0; pName[Idx2] != '\0'; Idx2++)
+ /*FIXME: (RJJ) hack: if HAL is needed for import, substitute the kernel */
+ /* this is necessary until we break the hal out of the kernel */
+ if (_stricmp (pName, "HAL.dll") == 0)
{
- NameBuffer[Idx + Idx2] = (WCHAR) pName[Idx2];
+ wcscat (NameBuffer, KERNEL_MODULE_NAME);
+ }
+ else
+ {
+ for (Idx = 0; NameBuffer[Idx] != 0; Idx++)
+ ;
+ for (Idx2 = 0; pName[Idx2] != '\0'; Idx2++)
+ {
+ NameBuffer[Idx + Idx2] = (WCHAR) pName[Idx2];
+ }
+ NameBuffer[Idx + Idx2] = 0;
}
- NameBuffer[Idx + Idx2] = 0;
RtlInitUnicodeString (&ModuleName, NameBuffer);
DPRINT("Import module: %wZ\n", &ModuleName);