Changed RtlCopyMemory() from function to macro

Improved system service table code

svn path=/trunk/; revision=995
This commit is contained in:
Eric Kohl
2000-02-21 22:44:37 +00:00
parent 151f2f646e
commit d1341007cf
24 changed files with 645 additions and 732 deletions
-5
View File
@@ -74,11 +74,6 @@ VOID Hal_bios32_probe(VOID);
*/
BOOLEAN Hal_bios32_is_service_present(ULONG service);
NTSTATUS HalRegisterServiceTable(DWORD Mask,
DWORD Value,
PSERVICE_TABLE Table,
DWORD Count);
VOID HalInitializeDisplay (boot_param *bp);
VOID HalResetDisplay (VOID);
+13 -8
View File
@@ -3,11 +3,9 @@
#define __INTERNAL_SERVICE_H
typedef struct _SERVICE_TABLE
{
unsigned long ParametersSize;
unsigned long Function;
} SERVICE_TABLE, *PSERVICE_TABLE;
/* number of entries in the service descriptor tables */
#define SSDT_MAX_ENTRIES 4
#pragma pack(1)
@@ -22,16 +20,23 @@ typedef struct t_SSPT {
} SSPT, *PSSPT;
typedef struct t_KeServiceDescriptorTableEntry {
PSSDT pSSDT;
PSSDT SSDT;
unsigned long* ServiceCounterTable;
unsigned int NumberOfServices;
PSSPT pSSPT;
PSSPT SSPT;
} KE_SERVICE_DESCRIPTOR_TABLE_ENTRY, *PKE_SERVICE_DESCRIPTOR_TABLE_ENTRY;
#pragma pack()
NTSTATUS KeAddSystemServiceTable( int SSDTindex, PSSDT pSSDT, PSSPT pSSPT, ULONG* SyscallsCountTable );
BOOLEAN
KeAddSystemServiceTable (
PSSDT SSDT,
PULONG ServiceCounterTable,
ULONG NumberOfServices,
PSSPT SSPT,
ULONG TableIndex
);
#endif