mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:25:56 +00:00
[NTVDM]
- Temporarily hack the boot sequence to floppy, then hard disk. See r69421; will be improved in the future. - Complete the BIOS 16-bit bootstrap code. svn path=/trunk/; revision=69422
This commit is contained in:
parent
59136514da
commit
1f6976b003
2 changed files with 6 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
||||||
#include "cpu/cpu.h" // for EMULATOR_FLAG_CF
|
#include "cpu/cpu.h" // for EMULATOR_FLAG_CF
|
||||||
#include "cpu/bop.h"
|
#include "cpu/bop.h"
|
||||||
#include "int32.h"
|
#include "int32.h"
|
||||||
|
#include <isvbop.h>
|
||||||
|
|
||||||
#include <bios/bios.h>
|
#include <bios/bios.h>
|
||||||
#include <bios/rom.h>
|
#include <bios/rom.h>
|
||||||
|
@ -155,7 +156,8 @@ static const BYTE PostCode[] =
|
||||||
{
|
{
|
||||||
LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), BOP_RESET, // Call BIOS POST
|
LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), BOP_RESET, // Call BIOS POST
|
||||||
0xCD, BIOS_BOOTSTRAP_LOADER, // INT 0x19
|
0xCD, BIOS_BOOTSTRAP_LOADER, // INT 0x19
|
||||||
// LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), BOP_UNSIMULATE
|
0xCD, BIOS_ROM_BASIC, // INT 0x18
|
||||||
|
LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), BOP_UNSIMULATE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -483,6 +483,9 @@ VOID CmosInitialize(VOID)
|
||||||
CmosMemory.ShutdownStatus = 0x00;
|
CmosMemory.ShutdownStatus = 0x00;
|
||||||
CmosMemory.EquipmentList = CMOS_EQUIPMENT_LIST;
|
CmosMemory.EquipmentList = CMOS_EQUIPMENT_LIST;
|
||||||
|
|
||||||
|
// HACK: For the moment, set the boot sequence to: 1-Floppy, 2-Hard Disk .
|
||||||
|
CmosMemory.Regs[CMOS_REG_SYSOP] |= (1 << 5);
|
||||||
|
|
||||||
/* Memory settings */
|
/* Memory settings */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue