[FREELDR]

- Move some code where it should better belong to.
- Add few source code file headers.
- Add missing partition IDs.

svn path=/trunk/; revision=70682
This commit is contained in:
Hermès Bélusca-Maïto 2016-02-03 14:07:18 +00:00
parent 7e33c2343e
commit 9f8022a2b3
6 changed files with 51 additions and 16 deletions

View file

@ -16,6 +16,11 @@
PCONFIGURATION_COMPONENT_DATA FldrArcHwTreeRoot; PCONFIGURATION_COMPONENT_DATA FldrArcHwTreeRoot;
// ARC Disk Information
ARC_DISK_SIGNATURE reactos_arc_disk_info[32];
ULONG reactos_disk_count = 0;
CHAR reactos_arc_strings[32][256];
/* FUNCTIONS ******************************************************************/ /* FUNCTIONS ******************************************************************/
#define TAG_HW_COMPONENT_DATA 'DCwH' #define TAG_HW_COMPONENT_DATA 'DCwH'

View file

@ -1,10 +1,10 @@
/* /*
* PROJECT: ReactOS Kernel * PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory * LICENSE: GPL - See COPYING in the top level directory
* FILE: boot/freeldr/freeldr/arch/i386/halstub.c * FILE: boot/freeldr/freeldr/arch/i386/halstub.c
* PURPOSE: I/O Stub HAL Routines * PURPOSE: I/O Stub HAL Routines
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
*/ */
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/

View file

@ -1,3 +1,13 @@
/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: boot/freeldr/freeldr/arch/i386/ntoskrnl.c
* PURPOSE: NTOS glue routines for the MINIHAL library
* PROGRAMMERS: Hervé Poussineau <hpoussin@reactos.org>
*/
/* INCLUDES ******************************************************************/
#include <ntoskrnl.h> #include <ntoskrnl.h>
/* For KeStallExecutionProcessor */ /* For KeStallExecutionProcessor */
@ -5,6 +15,8 @@
#include <arch/pc/pcbios.h> #include <arch/pc/pcbios.h>
#endif #endif
/* FUNCTIONS *****************************************************************/
VOID VOID
NTAPI NTAPI
KeInitializeEvent( KeInitializeEvent(
@ -37,7 +49,6 @@ KeSetTimeIncrement(
{ {
} }
NTKERNELAPI
VOID VOID
FASTCALL FASTCALL
IoAssignDriveLetters( IoAssignDriveLetters(
@ -48,7 +59,6 @@ IoAssignDriveLetters(
{ {
} }
NTKERNELAPI
NTSTATUS NTSTATUS
FASTCALL FASTCALL
IoSetPartitionInformation( IoSetPartitionInformation(
@ -60,7 +70,18 @@ IoSetPartitionInformation(
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
NTKERNELAPI /*
* NTSTATUS
* FASTCALL
* IoReadPartitionTable(
* IN PDEVICE_OBJECT DeviceObject,
* IN ULONG SectorSize,
* IN BOOLEAN ReturnRecognizedPartitions,
* OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer);
*
* See boot/freeldr/freeldr/disk/partition.c
*/
NTSTATUS NTSTATUS
FASTCALL FASTCALL
IoWritePartitionTable( IoWritePartitionTable(
@ -68,12 +89,11 @@ IoWritePartitionTable(
IN ULONG SectorSize, IN ULONG SectorSize,
IN ULONG SectorsPerTrack, IN ULONG SectorsPerTrack,
IN ULONG NumberOfHeads, IN ULONG NumberOfHeads,
IN struct _DRIVE_LAYOUT_INFORMATION *PartitionBuffer) IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
{ {
return STATUS_NOT_IMPLEMENTED; return STATUS_NOT_IMPLEMENTED;
} }
NTHALAPI
VOID VOID
NTAPI NTAPI
KeStallExecutionProcessor( KeStallExecutionProcessor(

View file

@ -24,11 +24,6 @@
/* GLOBALS ********************************************************************/ /* GLOBALS ********************************************************************/
// ARC Disk Information
ARC_DISK_SIGNATURE reactos_arc_disk_info[32];
ULONG reactos_disk_count = 0;
CHAR reactos_arc_strings[32][256];
typedef typedef
VOID VOID
(*OS_LOADING_METHOD)(IN OperatingSystemItem* OperatingSystem, (*OS_LOADING_METHOD)(IN OperatingSystemItem* OperatingSystem,

View file

@ -89,6 +89,7 @@ typedef struct _MASTER_BOOT_RECORD
#define PARTITION_EXTENDED 0x05 // Extended partition entry #define PARTITION_EXTENDED 0x05 // Extended partition entry
#define PARTITION_HUGE 0x06 // Huge partition MS-DOS V4 #define PARTITION_HUGE 0x06 // Huge partition MS-DOS V4
#define PARTITION_IFS 0x07 // IFS Partition #define PARTITION_IFS 0x07 // IFS Partition
#define PARTITION_OS2BOOTMGR 0x0A // OS/2 Boot Manager/OPUS/Coherent swap
#define PARTITION_FAT32 0x0B // FAT32 #define PARTITION_FAT32 0x0B // FAT32
#define PARTITION_FAT32_XINT13 0x0C // FAT32 using extended int13 services #define PARTITION_FAT32_XINT13 0x0C // FAT32 using extended int13 services
#define PARTITION_XINT13 0x0E // Win95 partition using extended int13 services #define PARTITION_XINT13 0x0E // Win95 partition using extended int13 services
@ -97,6 +98,12 @@ typedef struct _MASTER_BOOT_RECORD
#define PARTITION_PREP 0x41 // PowerPC Reference Platform (PReP) Boot Partition #define PARTITION_PREP 0x41 // PowerPC Reference Platform (PReP) Boot Partition
#define PARTITION_LDM 0x42 // Logical Disk Manager partition #define PARTITION_LDM 0x42 // Logical Disk Manager partition
#define PARTITION_UNIX 0x63 // Unix #define PARTITION_UNIX 0x63 // Unix
#define VALID_NTFT 0xC0 // NTFT uses high order bits
#define PARTITION_NTFT 0x80 // NTFT partition
#ifdef __REACTOS__
#define PARTITION_OLD_LINUX 0x43
#define PARTITION_LINUX 0x83
#endif
/////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////
// //

View file

@ -1,3 +1,11 @@
/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL - See COPYING in the top level directory
* FILE: boot/freeldr/freeldr/include/ntoskrnl.h
* PURPOSE: NTOS glue routines for the MINIHAL library
* PROGRAMMERS: Hervé Poussineau <hpoussin@reactos.org>
*/
#include <ntdef.h> #include <ntdef.h>
#undef _NTHAL_ #undef _NTHAL_
//#undef DECLSPEC_IMPORT //#undef DECLSPEC_IMPORT