Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/loader/chain.c
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | if (*((uint16_t *)PTOV(mem + DOSMAGICOFFSET)) != DOSMAGIC) { | ||||
command_errmsg = "wrong magic"; | command_errmsg = "wrong magic"; | ||||
return (CMD_ERROR); | return (CMD_ERROR); | ||||
} | } | ||||
relocater_data[0].src = mem; | relocater_data[0].src = mem; | ||||
relocater_data[0].dest = 0x7C00; | relocater_data[0].dest = 0x7C00; | ||||
relocater_data[0].size = SECTOR_SIZE; | relocater_data[0].size = SECTOR_SIZE; | ||||
relocator_edx = bd_unit2bios(rootdev->d_unit); | relocator_edx = bd_unit2bios(rootdev->dd.d_unit); | ||||
relocator_esi = relocater_size; | relocator_esi = relocater_size; | ||||
relocator_ds = 0; | relocator_ds = 0; | ||||
relocator_es = 0; | relocator_es = 0; | ||||
relocator_fs = 0; | relocator_fs = 0; | ||||
relocator_gs = 0; | relocator_gs = 0; | ||||
relocator_ss = 0; | relocator_ss = 0; | ||||
relocator_cs = 0; | relocator_cs = 0; | ||||
relocator_sp = 0x7C00; | relocator_sp = 0x7C00; | ||||
Show All 12 Lines |