FDOS / kernel

FreeDOS kernel - implements the core MS-DOS/PC-DOS (R) compatible operating system. It is derived from Pat Villani's DOS-C kernel and released under the GPL v2 or later. Please see http://www.freedos.org/ for more details about the FreeDOS (TM) Project.
http://kernel.fdos.org/
GNU General Public License v2.0
811 stars 144 forks source link

SYS: When OEM compatibility boot sector enabled and in use, /FORCE:LBA and /FORCE:CHS are silently ignored #94

Open ecm-pushbx opened 1 year ago

ecm-pushbx commented 1 year ago

This is the part that applies the patches to the standard boot sector loader: https://github.com/FDOS/kernel/blob/302b002adbf893398e6057559571085732e8d4e7/sys/sys.c#L1562-L1601

For the OEM compatibility boot sector loader, no patches are applied. And that is true even though the LBA detection is very similar for the OEM loader, and could be patched similarly: https://github.com/FDOS/kernel/blob/302b002adbf893398e6057559571085732e8d4e7/boot/oemboot.asm#L550

ecm-pushbx commented 1 year ago

Like my INSTSECT the SYS program could detect the unit handling and LBA detection sequences automatically, without need for the hardcoded offset value.