From 19058ff1bfc1856a8ed9405b55a0504e2a0f96b0 Mon Sep 17 00:00:00 2001 From: "E. C. Masloch" Date: Wed, 7 Feb 2024 00:39:09 +0100 Subject: [PATCH] sys: correct a magic offset (problem: odd offsets won't work) --- sys/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys.c b/sys/sys.c index 3cffcc6..5edebcc 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -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",