[FREELDR] Formatting only.

This commit is contained in:
Hermès Bélusca-Maïto 2019-08-31 00:34:57 +02:00
parent 98a44b4f9b
commit 602fc29ad4
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
27 changed files with 21 additions and 36 deletions

View file

@ -22,10 +22,8 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);
#define MILLISEC (10)
#define PRECISION (8)

View file

@ -19,8 +19,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);
BOOLEAN AcpiPresent = FALSE;

View file

@ -21,7 +21,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);
static BOOLEAN

View file

@ -21,7 +21,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);
FIND_PCI_BIOS FindPciBios = NULL;

View file

@ -20,7 +20,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);
#include <pshpack2.h>

View file

@ -20,7 +20,6 @@
#include <cportlib/cportlib.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);

View file

@ -19,7 +19,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HWDETECT);

View file

@ -22,7 +22,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(DISK);
#include <pshpack2.h>

View file

@ -26,7 +26,6 @@
#include <arch/pc/x86common.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(MEMORY);
#define ULONGLONG_ALIGN_DOWN_BY(size, align) \

View file

@ -20,6 +20,7 @@
#include <suppress.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(UI);
#define VIDEOPORT_PALETTE_READ 0x03C7
#define VIDEOPORT_PALETTE_WRITE 0x03C8
@ -50,8 +51,6 @@
#define VERTRES_350_SCANLINES 0x01
#define VERTRES_400_SCANLINES 0x02
DBG_DEFAULT_CHANNEL(UI);
#include <pshpack2.h>
typedef struct
{

View file

@ -21,7 +21,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(DISK);
CHAR FrldrBootPath[MAX_PATH] = "";

View file

@ -21,7 +21,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(DISK);
#define MaxDriveNumber 0xFF

View file

@ -10,6 +10,9 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(SCSIPORT);
#define _SCSIPORT_
#include <ntddk.h>
@ -48,15 +51,11 @@
#undef ScsiPortReadRegisterUlong
#undef ScsiPortReadRegisterUshort
#include <debug.h>
#define SCSI_PORT_NEXT_REQUEST_READY 0x0008
#define TAG_SCSI_DEVEXT 'DscS'
#define TAG_SCSI_ACCESS_RANGES 'AscS'
DBG_DEFAULT_CHANNEL(SCSIPORT);
/* GLOBALS ********************************************************************/
#ifdef _M_IX86
@ -1631,7 +1630,7 @@ LoadBootDeviceDriver(VOID)
return EIO;
/* Add the PE part of freeldr.sys to the list of loaded executables, it
contains Scsiport* exports, imported by ntbootdd.sys */
contains ScsiPort* exports, imported by ntbootdd.sys */
Success = WinLdrAllocateDataTableEntry(&ModuleListHead, "scsiport.sys",
"FREELDR.SYS", &__ImageBase, &FreeldrDTE);
if (!Success)

View file

@ -18,8 +18,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(CACHE);
// Returns a pointer to a CACHE_BLOCK structure

View file

@ -18,8 +18,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(CACHE);
///////////////////////////////////////////////////////////////////////////////////////

View file

@ -8,8 +8,8 @@
/* Some code was taken from u-boot, https://github.com/u-boot/u-boot/tree/master/fs/btrfs */
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
#define TAG_BTRFS_INFO 'IftB'

View file

@ -19,8 +19,8 @@
#ifndef _M_ARM
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
BOOLEAN Ext2OpenVolume(PEXT2_VOLUME_INFO Volume);

View file

@ -21,7 +21,6 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
ULONG FatDetermineFatType(PFAT_BOOTSECTOR FatBootSector, ULONGLONG PartitionSectorCount);

View file

@ -20,14 +20,14 @@
#ifndef _M_ARM
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
#define SECTORSIZE 2048
#define TAG_ISO_BUFFER 'BosI'
#define TAG_ISO_FILE 'FosI'
DBG_DEFAULT_CHANNEL(FILESYSTEM);
static BOOLEAN IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectoryLength, PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer)
{
PDIR_RECORD Record;

View file

@ -26,7 +26,9 @@
#ifndef _M_ARM
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
#define TAG_NTFS_CONTEXT 'CftN'
#define TAG_NTFS_LIST 'LftN'
@ -37,8 +39,6 @@
#define TAG_NTFS_VOLUME 'VftN'
#define TAG_NTFS_DATA 'DftN'
DBG_DEFAULT_CHANNEL(FILESYSTEM);
typedef struct _NTFS_VOLUME_INFO
{
NTFS_BOOTSECTOR BootSector;

View file

@ -20,12 +20,11 @@
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(FILESYSTEM);
#define TAG_PXE_FILE 'FexP'
#define NO_FILE ((ULONG)-1)
DBG_DEFAULT_CHANNEL(FILESYSTEM);
static IP4 _ServerIP = { 0, };
static ULONG _OpenFile = NO_FILE;
static CHAR _OpenFileName[128];

View file

@ -18,6 +18,7 @@
*/
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(INIFILE);

View file

@ -18,8 +18,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(INIFILE);
BOOLEAN IniOpenSection(PCSTR SectionName, ULONG_PTR* SectionId)

View file

@ -18,8 +18,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(INIFILE);
LIST_ENTRY IniFileSectionListHead;

View file

@ -18,12 +18,12 @@
*/
#include <freeldr.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(HEAP);
#define FREELDR_HEAP_VERIFIER
DBG_DEFAULT_CHANNEL(HEAP);
#define REDZONE_MARK 0xCCCCCCCCCCCCCCCCULL
#define REDZONE_ALLOCATION 24
#define REDZONE_LOW_OFFSET 16

View file

@ -19,8 +19,8 @@
*/
#include <freeldr.h>
#include <debug.h>
#include <debug.h>
DBG_DEFAULT_CHANNEL(MEMORY);
PVOID PageLookupTableAddress = NULL;

View file

@ -12,7 +12,6 @@
#include "winldr.h"
#include <debug.h>
DBG_DEFAULT_CHANNEL(WINDOWS);
extern ULONG LoaderPagesSpanned;