From f036741b6b8bd27945ce56efe2ecf5ffbc1c67ec Mon Sep 17 00:00:00 2001 From: "E. C. Masloch" Date: Tue, 6 Feb 2024 23:22:01 +0100 Subject: [PATCH] sys: update magic offset of OEM FAT12 jmp offset --- sys/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys.c b/sys/sys.c index 95f2a26..eb6d0dc 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -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)];