mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
- Remove Freeldr's dependency on windef.h
- Explicitly include winerror.h svn path=/trunk/; revision=37641
This commit is contained in:
parent
4409645578
commit
ed46b7621c
10 changed files with 30 additions and 11 deletions
|
@ -25,6 +25,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* non-standard specifier from windef.h -- please deprecate */
|
||||||
|
#undef PACKED
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define PACKED __attribute__((packed))
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
UCHAR Signature[4]; // (ret) signature ("VESA")
|
UCHAR Signature[4]; // (ret) signature ("VESA")
|
||||||
|
|
|
@ -22,6 +22,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* non-standard specifier from windef.h -- please deprecate */
|
||||||
|
#undef PACKED
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define PACKED __attribute__((packed))
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
UCHAR PacketSize; // 00h - Size of packet (10h or 18h)
|
UCHAR PacketSize; // 00h - Size of packet (10h or 18h)
|
||||||
|
|
|
@ -22,6 +22,12 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
/* non-standard specifier from windef.h -- please deprecate */
|
||||||
|
#undef PACKED
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define PACKED __attribute__((packed))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define VIDEOPORT_PALETTE_READ 0x03C7
|
#define VIDEOPORT_PALETTE_READ 0x03C7
|
||||||
#define VIDEOPORT_PALETTE_WRITE 0x03C8
|
#define VIDEOPORT_PALETTE_WRITE 0x03C8
|
||||||
#define VIDEOPORT_PALETTE_DATA 0x03C9
|
#define VIDEOPORT_PALETTE_DATA 0x03C9
|
||||||
|
|
|
@ -182,7 +182,7 @@ FILE* Ext2OpenFile(PCSTR FileName)
|
||||||
*/
|
*/
|
||||||
BOOLEAN Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
|
BOOLEAN Ext2LookupFile(PCSTR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
|
||||||
{
|
{
|
||||||
UINT i;
|
UINT32 i;
|
||||||
ULONG NumberOfPathParts;
|
ULONG NumberOfPathParts;
|
||||||
CHAR PathPart[261];
|
CHAR PathPart[261];
|
||||||
PVOID DirectoryBuffer;
|
PVOID DirectoryBuffer;
|
||||||
|
|
|
@ -784,7 +784,7 @@ static BOOLEAN FatXSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG Dir
|
||||||
*/
|
*/
|
||||||
BOOLEAN FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer)
|
BOOLEAN FatLookupFile(PCSTR FileName, PFAT_FILE_INFO FatFileInfoPointer)
|
||||||
{
|
{
|
||||||
UINT i;
|
UINT32 i;
|
||||||
ULONG NumberOfPathParts;
|
ULONG NumberOfPathParts;
|
||||||
CHAR PathPart[261];
|
CHAR PathPart[261];
|
||||||
PVOID DirectoryBuffer;
|
PVOID DirectoryBuffer;
|
||||||
|
@ -922,9 +922,9 @@ void FatParseShortFileName(PCHAR Buffer, PDIRENTRY DirEntry)
|
||||||
BOOLEAN FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
|
BOOLEAN FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
|
||||||
{
|
{
|
||||||
ULONG fat = 0;
|
ULONG fat = 0;
|
||||||
UINT FatOffset;
|
UINT32 FatOffset;
|
||||||
UINT ThisFatSecNum;
|
UINT32 ThisFatSecNum;
|
||||||
UINT ThisFatEntOffset;
|
UINT32 ThisFatEntOffset;
|
||||||
|
|
||||||
DbgPrint((DPRINT_FILESYSTEM, "FatGetFatEntry() Retrieving FAT entry for cluster %d.\n", Cluster));
|
DbgPrint((DPRINT_FILESYSTEM, "FatGetFatEntry() Retrieving FAT entry for cluster %d.\n", Cluster));
|
||||||
|
|
||||||
|
|
|
@ -172,7 +172,7 @@ static PVOID IsoBufferDirectory(ULONG DirectoryStartSector, ULONG DirectoryLengt
|
||||||
*/
|
*/
|
||||||
static BOOLEAN IsoLookupFile(PCSTR FileName, PISO_FILE_INFO IsoFileInfoPointer)
|
static BOOLEAN IsoLookupFile(PCSTR FileName, PISO_FILE_INFO IsoFileInfoPointer)
|
||||||
{
|
{
|
||||||
UINT i;
|
UINT32 i;
|
||||||
ULONG NumberOfPathParts;
|
ULONG NumberOfPathParts;
|
||||||
CHAR PathPart[261];
|
CHAR PathPart[261];
|
||||||
PVOID DirectoryBuffer;
|
PVOID DirectoryBuffer;
|
||||||
|
|
|
@ -84,6 +84,7 @@
|
||||||
#include <ver.h>
|
#include <ver.h>
|
||||||
#include <cmdline.h>
|
#include <cmdline.h>
|
||||||
#include <bget.h>
|
#include <bget.h>
|
||||||
|
#include <winerror.h>
|
||||||
/* Needed by boot manager */
|
/* Needed by boot manager */
|
||||||
#include <bootmgr.h>
|
#include <bootmgr.h>
|
||||||
#include <oslist.h>
|
#include <oslist.h>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
// ReactOS Loading Functions
|
// ReactOS Loading Functions
|
||||||
//
|
//
|
||||||
///////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////
|
||||||
VOID LoadAndBootWindows(PCSTR OperatingSystemName, WORD OperatingSystemVersion);
|
VOID LoadAndBootWindows(PCSTR OperatingSystemName, USHORT OperatingSystemVersion);
|
||||||
|
|
||||||
/* Entry-point to kernel */
|
/* Entry-point to kernel */
|
||||||
typedef VOID (NTAPI *KERNEL_ENTRY_POINT) (PLOADER_PARAMETER_BLOCK LoaderBlock);
|
typedef VOID (NTAPI *KERNEL_ENTRY_POINT) (PLOADER_PARAMETER_BLOCK LoaderBlock);
|
||||||
|
|
|
@ -476,8 +476,8 @@ ULONG MmFindAvailablePagesBeforePage(PVOID PageLookupTable, ULONG TotalPageCount
|
||||||
|
|
||||||
VOID MmFixupSystemMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG* MapCount)
|
VOID MmFixupSystemMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG* MapCount)
|
||||||
{
|
{
|
||||||
UINT Index;
|
UINT32 Index;
|
||||||
UINT Index2;
|
UINT32 Index2;
|
||||||
|
|
||||||
// Loop through each entry in the array
|
// Loop through each entry in the array
|
||||||
for (Index=0; Index<*MapCount; Index++)
|
for (Index=0; Index<*MapCount; Index++)
|
||||||
|
|
|
@ -77,7 +77,7 @@ WinLdrInitializePhase1(PLOADER_PARAMETER_BLOCK LoaderBlock,
|
||||||
PCHAR Options,
|
PCHAR Options,
|
||||||
PCHAR SystemPath,
|
PCHAR SystemPath,
|
||||||
PCHAR BootPath,
|
PCHAR BootPath,
|
||||||
WORD VersionToBoot)
|
USHORT VersionToBoot)
|
||||||
{
|
{
|
||||||
/* Examples of correct options and paths */
|
/* Examples of correct options and paths */
|
||||||
//CHAR Options[] = "/DEBUGPORT=COM1 /BAUDRATE=115200";
|
//CHAR Options[] = "/DEBUGPORT=COM1 /BAUDRATE=115200";
|
||||||
|
@ -417,7 +417,7 @@ PVOID WinLdrLoadModule(PCSTR ModuleName, ULONG *Size,
|
||||||
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
LoadAndBootWindows(PCSTR OperatingSystemName, WORD OperatingSystemVersion)
|
LoadAndBootWindows(PCSTR OperatingSystemName, USHORT OperatingSystemVersion)
|
||||||
{
|
{
|
||||||
CHAR MsgBuffer[256];
|
CHAR MsgBuffer[256];
|
||||||
CHAR SystemPath[512], SearchPath[512];
|
CHAR SystemPath[512], SearchPath[512];
|
||||||
|
|
Loading…
Reference in a new issue