Added freeldr and hal from PPC branch, along with needed headers and
[reactos.git] / reactos / hal / halppc / 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 */
8
9 /* INCLUDES ******************************************************************/
10
11 #include <hal.h>
12 #define NDEBUG
13 #include <debug.h>
14
15 /* FUNCTIONS *****************************************************************/
16
17 /*
18 * @unimplemented
19 */
20 VOID
21 NTAPI
22 HalStopProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
23 {
24 KEBUGCHECK(0);
25 return;
26 }
27
28 /*
29 * @unimplemented
30 */
31 VOID
32 NTAPI
33 HalStartProfileInterrupt(IN KPROFILE_SOURCE ProfileSource)
34 {
35 KEBUGCHECK(0);
36 return;
37 }
38
39 /*
40 * @unimplemented
41 */
42 ULONG_PTR
43 NTAPI
44 HalSetProfileInterval(IN ULONG_PTR Interval)
45 {
46 KEBUGCHECK(0);
47 return Interval;
48 }
49
50 ULONG HalpDecrementerRoll = 0;
51
52 LARGE_INTEGER
53 KeQueryPerformanceCounter(PLARGE_INTEGER PerformanceFrequency)
54 {
55 LARGE_INTEGER Result;
56 /* for now */
57 if(PerformanceFrequency) PerformanceFrequency->QuadPart = 100000000;
58 Result.HighPart = HalpDecrementerRoll;
59 Result.LowPart = __rdtsc();
60 return Result;
61 }