2009-10-12 03:35:35 +00:00
|
|
|
/*
|
|
|
|
* 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)
|
2010-09-25 07:22:40 +00:00
|
|
|
* Eric Kohl
|
2009-10-12 03:35:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
|
|
|
#include <hal.h>
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
|
|
|
|
/*
|
2010-09-25 07:22:40 +00:00
|
|
|
* @implemented
|
2009-10-12 03:35:35 +00:00
|
|
|
*/
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
|
|
|
{
|
2010-09-25 07:22:40 +00:00
|
|
|
UCHAR StatusB;
|
|
|
|
|
|
|
|
/* Acquire the CMOS lock */
|
|
|
|
HalpAcquireSystemHardwareSpinLock();
|
|
|
|
|
|
|
|
/* Read Status Register B */
|
|
|
|
StatusB = HalpReadCmos(RTC_REGISTER_B);
|
|
|
|
|
|
|
|
/* Disable periodic interrupts */
|
|
|
|
StatusB = StatusB & ~RTC_REG_B_PI;
|
|
|
|
|
|
|
|
/* Write new value into Status Register B */
|
|
|
|
HalpWriteCmos(RTC_REGISTER_B, StatusB);
|
|
|
|
|
|
|
|
/* Release the CMOS lock */
|
|
|
|
HalpReleaseCmosSpinLock();
|
2009-10-12 03:35:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
|
|
|
|
{
|
2009-10-21 17:52:11 +00:00
|
|
|
UNIMPLEMENTED;
|
2009-10-12 03:35:35 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @unimplemented
|
|
|
|
*/
|
|
|
|
ULONG_PTR
|
|
|
|
NTAPI
|
|
|
|
HalSetProfileInterval(IN ULONG_PTR Interval)
|
|
|
|
{
|
2009-10-21 17:52:11 +00:00
|
|
|
UNIMPLEMENTED;
|
2009-10-12 03:35:35 +00:00
|
|
|
return Interval;
|
|
|
|
}
|