mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
61 lines
1.2 KiB
C
61 lines
1.2 KiB
C
/*
|
|
* PROJECT: ReactOS HAL
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: hal/halx86/generic/profil.c
|
|
* PURPOSE: System Profiling
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include <hal.h>
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
VOID
|
|
NTAPI
|
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
VOID
|
|
NTAPI
|
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return;
|
|
}
|
|
|
|
/*
|
|
* @unimplemented
|
|
*/
|
|
ULONG_PTR
|
|
NTAPI
|
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
|
{
|
|
UNIMPLEMENTED;
|
|
return Interval;
|
|
}
|
|
|
|
ULONG HalpDecrementerRoll = 0;
|
|
|
|
LARGE_INTEGER
|
|
KeQueryPerformanceCounter(PLARGE_INTEGER PerformanceFrequency)
|
|
{
|
|
LARGE_INTEGER Result;
|
|
/* for now */
|
|
if(PerformanceFrequency) PerformanceFrequency->QuadPart = 100000000;
|
|
Result.HighPart = HalpDecrementerRoll;
|
|
Result.LowPart = __rdtsc();
|
|
return Result;
|
|
}
|