[SDK:REACTOS][CMLIB][BOOT] Get rid of the FreeLdr-specific __FREELDR_H define, and use the standard NT _BLDR_ instead.

This standard _BLDR_ define is already defined for both FreeLdr and
boot/environ UEFI bootloader lib, so no actual behavioural changes
should occur.
This commit is contained in:
Hermès Bélusca-Maïto 2022-03-20 16:45:51 +01:00
parent 44a6987493
commit 9d3c3a757a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 5 additions and 6 deletions

View file

@ -42,7 +42,6 @@
#include <GlobalVariable.h>
/* Registry Headers */
#define __FREELDR_H
#include <cmlib.h>
/* DEFINES *******************************************************************/

View file

@ -70,7 +70,7 @@ LpcWriteRegister(UCHAR Register, UCHAR Value)
WRITE_PORT_UCHAR((PUCHAR)(LPC_IO_BASE + 1), Value);
}
#ifndef __FREELDR_H
#ifndef _BLDR_
FORCEINLINE
ULONG
LpcDetectSuperIO(VOID)
@ -105,7 +105,7 @@ LpcGetIoBase()
return Base;
}
#ifndef __FREELDR_H
#ifndef _BLDR_
FORCEINLINE
ULONG
LpcGetIoBaseMPU()
@ -128,7 +128,7 @@ LpcGetIrqPrimary()
return LpcReadRegister(LPC_CONFIG_DEVICE_INTERRUPT_PRIMARY);
}
#ifndef __FREELDR_H
#ifndef _BLDR_
FORCEINLINE
ULONG
LpcGetIrqSecondary()

View file

@ -214,7 +214,7 @@
#include "hivedata.h"
#include "cmdata.h"
#if defined(_TYPEDEFS_HOST_H) || defined(__FREELDR_H) // || defined(_BLDR_)
#if defined(_TYPEDEFS_HOST_H) || defined(_BLDR_)
#define PCM_KEY_SECURITY_CACHE_ENTRY PVOID
#define PCM_KEY_CONTROL_BLOCK PVOID
@ -224,7 +224,7 @@
#define CMP_SECURITY_HASH_LISTS 64
// #endif // Commented out until one finds a way to properly include
// this header in freeldr and in ntoskrnl.
// this header in the bootloader and in ntoskrnl.
//
// Use Count Log and Entry