sys: correct a magic offset (problem: odd offsets won't work)
This commit is contained in:
parent
9783ac97e0
commit
19058ff1bf
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user