[CMAKE]
[reactos.git] / hal / halx86 / generic / profil.c
1 /*
2 * PROJECT: ReactOS HAL
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: hal/halx86/generic/profil.c
5 * PURPOSE: System Profiling
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 * Eric Kohl
8 */
9
10 /* INCLUDES ******************************************************************/
11
12 #include <hal.h>
13 #define NDEBUG
14 #include <debug.h>
15
16 /* FUNCTIONS *****************************************************************/
17
18 /*
19 * @implemented
20 */
21 VOID
22 NTAPI
23 HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
24 {
25 UCHAR StatusB;
26
27 /* Acquire the CMOS lock */
28 HalpAcquireSystemHardwareSpinLock();
29
30 /* Read Status Register B */
31 StatusB = HalpReadCmos(RTC_REGISTER_B);
32
33 /* Disable periodic interrupts */
34 StatusB = StatusB & ~RTC_REG_B_PI;
35
36 /* Write new value into Status Register B */
37 HalpWriteCmos(RTC_REGISTER_B, StatusB);
38
39 /* Release the CMOS lock */
40 HalpReleaseCmosSpinLock();
41 }
42
43 /*
44 * @unimplemented
45 */
46 VOID
47 NTAPI
48 HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
49 {
50 UNIMPLEMENTED;
51 return;
52 }
53
54 /*
55 * @unimplemented
56 */
57 ULONG_PTR
58 NTAPI
59 HalSetProfileInterval(IN ULONG_PTR Interval)
60 {
61 UNIMPLEMENTED;
62 return Interval;
63 }