OpenCBM
processor.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version
5  * 2 of the License, or (at your option) any later version.
6  *
7  * Copyright 2005 Spiro Trikaliotis
8  *
9  */
10 
19 #include <ntddk.h>
20 #include "cbm_driver.h"
21 
30 ULONG
32 {
33 #ifdef COMPILE_W98_API
34  return 0;
35 #else
36  return KeGetCurrentProcessorNumber();
37 #endif
38 }
39 
56 ULONG
58 {
59 #ifdef COMPILE_W98_API
60 
61  return 1;
62 
63 #elif COMPILE_W2K_API
64 
65  return *KeNumberProcessors;
66 
67 #else
68 
69  return KeNumberProcessors;
70 
71 #endif
72 }
ULONG CbmGetNumberProcessors(VOID)
Get the number of processors in the system.
Definition: processor.c:57
ULONG CbmGetCurrentProcessorNumber(VOID)
Wrapper for KeGetCurrentProcessorNumber()
Definition: processor.c:31
Definitions for the opencbm driver.