X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fboot%2Ffreeldr%2Ffreeldr%2Farch%2Fi386%2Fmachxbox.c;h=ba6eae8d82be790f77336c80bfd10279c43e1ec9;hp=dd44d36ab73a700dae0c817fdf9b78819baa399a;hb=b2a69d9d5e5ef68f0ffb314cc602642f8838bbc1;hpb=ed7c0b9e7c1e05ae675a964025f0d0e65e2f013c diff --git a/reactos/boot/freeldr/freeldr/arch/i386/machxbox.c b/reactos/boot/freeldr/freeldr/arch/i386/machxbox.c index dd44d36ab73..ba6eae8d82b 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/machxbox.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/machxbox.c @@ -17,14 +17,14 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include "freeldr.h" -#include "mm.h" -#include "machine.h" -#include "machxbox.h" +#include VOID -XboxMachInit(VOID) +XboxMachInit(const char *CmdLine) { + /* Set LEDs to red before anything is initialized */ + XboxSetLED("rrrr"); + /* Initialize our stuff */ XboxMemInit(); XboxVideoInit(); @@ -46,10 +46,19 @@ XboxMachInit(VOID) MachVtbl.VideoSync = XboxVideoSync; MachVtbl.VideoPrepareForReactOS = XboxVideoPrepareForReactOS; MachVtbl.GetMemoryMap = XboxMemGetMemoryMap; + MachVtbl.DiskGetBootVolume = i386DiskGetBootVolume; + MachVtbl.DiskGetSystemVolume = i386DiskGetSystemVolume; + MachVtbl.DiskGetBootPath = i386DiskGetBootPath; + MachVtbl.DiskGetBootDevice = i386DiskGetBootDevice; + MachVtbl.DiskBootingFromFloppy = i386DiskBootingFromFloppy; + MachVtbl.DiskNormalizeSystemPath = i386DiskNormalizeSystemPath; MachVtbl.DiskReadLogicalSectors = XboxDiskReadLogicalSectors; MachVtbl.DiskGetPartitionEntry = XboxDiskGetPartitionEntry; MachVtbl.DiskGetDriveGeometry = XboxDiskGetDriveGeometry; MachVtbl.DiskGetCacheableBlockCount = XboxDiskGetCacheableBlockCount; MachVtbl.RTCGetCurrentDateTime = XboxRTCGetCurrentDateTime; MachVtbl.HwDetect = XboxHwDetect; + + /* Set LEDs to orange after init */ + XboxSetLED("oooo"); }