sys: update magic offset of OEM FAT12 jmp offset

This commit is contained in:
E. C. Masloch 2024-02-06 23:22:01 +01:00 committed by Kenneth J Davis
parent 55f2a81406
commit f036741b6b

View File

@ -1719,8 +1719,8 @@ void put_boot(SYSOptions *opts)
/* this however changes the offset jumped to default 0x70:0 */
if (fs == FAT12) {
/* magic offset: jmp LOADSEG:xxxxh */
defaultload = ((int *)newboot)[0x11c/sizeof(int)];
((int *)newboot)[0x11c/sizeof(int)] = opts->kernel.loadaddr;
defaultload = ((int *)newboot)[0x11A/sizeof(int)];
((int *)newboot)[0x11A/sizeof(int)] = opts->kernel.loadaddr;
} else {
/* magic offset: jmp LOADSEG:xxxxh */
defaultload = ((int *)newboot)[0x119/sizeof(int)];