sys: correct a magic offset (problem: odd offsets won't work)

This commit is contained in:
E. C. Masloch 2024-02-07 00:39:09 +01:00 committed by Kenneth J Davis
parent 9783ac97e0
commit 19058ff1bf

View File

@ -1723,8 +1723,8 @@ void put_boot(SYSOptions *opts)
((int *)newboot)[0x11A/sizeof(int)] = opts->kernel.loadaddr;
} else {
/* magic offset: jmp LOADSEG:xxxxh */
defaultload = ((int *)newboot)[0x119/sizeof(int)];
((int *)newboot)[0x119/sizeof(int)] = opts->kernel.loadaddr;
defaultload = ((int *)newboot)[0x118/sizeof(int)];
((int *)newboot)[0x118/sizeof(int)] = opts->kernel.loadaddr;
}
if (defaultload != 0x0 && defaultload != 0x200) {
printf("%s: Internal error: OEM FAT1%c load ofs unexpected content\n",