Commit Graph

332 Commits

Author SHA1 Message Date
Kenneth J Davis
07155e6184 fix bug#123, detect NEC V20/V30 as 186 instead of only 8086/8088, based on ecm-pushbx ldebug
see https://hg.pushbx.org/ecm/ldebug/file/7f3440d5824d/source/init.asm#l3071

(cherry picked from commit 5fdcc1d214b821fde33a5bd92ea7d7c0134a2056)
2024-02-04 19:43:09 -05:00
Kenneth J Davis
431be02b0a rework update_dcb() to avoid potential access uninitialized memory 2024-02-03 22:00:17 -05:00
C. Masloch
1c2f541689 intr: avoid random trace in (init_)call_intr 2024-02-03 21:04:11 -05:00
C. Masloch
3ef6d61609 main: fix, only init env once in PSPInit, do not set cmdline tail 2024-02-03 21:01:17 -05:00
C. Masloch
ab3cac6d0c allow gcc build to succeed with -DWIN31SUPPORT 2024-02-03 20:59:11 -05:00
E. C. Masloch
42d3ae6aac boot32, boot32lb: fix EDR-DOS incompatibility [fixes #119] 2024-02-03 20:55:57 -05:00
E. C. Masloch
53d3fd556b boot32: display an error indicator instead of silently waiting 2024-02-03 20:55:57 -05:00
E. C. Masloch
a189ceb650 boot32: comment out unused print function 2024-02-03 20:55:57 -05:00
E. C. Masloch
630735e14a boot32: save another byte, use loop instruction 2024-02-03 20:55:57 -05:00
E. C. Masloch
3415ad93c9 boot32: fix very old bug, init high byte of fat_secshift
It turned out that this loader was severely broken for many years,
at least since 2012 (the git repo's creation). This variable was
read as a word to set cx for a loop, but only the low byte had
been written. The high byte happened to be 0EEh so cn_loop would
always zero out the FAT sector to read.

This _happened_ to work if the first root directory cluster and
all the kernel file clusters were all referenced in the first
sector of the FAT. Otherwise it would blow up.
2024-02-03 20:55:57 -05:00
E. C. Masloch
52136b27d6 boot32: optimise read sector increment to prepare for DL patch 2024-02-03 20:55:57 -05:00
Bernd Boeckmann
9a7d22701d initdisk.c: fix wrong printf format specifiers, fixes #122 2024-02-03 20:52:42 -05:00
Kenneth J Davis
db71b1a783
don't normally show InitDisk while booting 2023-12-20 17:17:08 -05:00
Kenneth J Davis
de96d00402
additional comments about LBA detection 2023-12-20 00:35:01 -05:00
Bernd Boeckmann
cab32344bb only use AH for EDD version detection, as AL is reserved...
...according to the spec
2023-12-19 23:50:02 -05:00
Bernd Boeckmann
a5431d9245 remove BIOS assisted LBA translation, not sure its worth including it 2023-12-19 23:50:02 -05:00
Bernd Boeckmann
b33afdbfad change handling of head count < 2, was a no-op since last commit...
... because heads was always at least 1.
2023-12-19 23:50:02 -05:00
Bernd Boeckmann
c20a97e844 initdisk: actually restrict disk size to 2TB, fix ExtLBAForce usage 2023-12-19 23:50:02 -05:00
Kenneth J Davis
569337a7ef
fix bug# 98 (correct bad CONFIG value 19 with bad value 14, should be 6) and add support for additional CONFIG options Verbose and PartitionMode to sys CONFIG processing 2023-12-19 19:50:22 -05:00
Kenneth J Davis
d027c797a0
update docs/history.txt from git log in preparation for build 2044 / v2.44 release 2023-12-18 22:00:30 -05:00
Kenneth J Davis
2da3aafa80
add example build command line for Windows 2023-12-18 20:32:53 -05:00
Kenneth J Davis
9f9323612a
update comment 2023-12-18 20:25:35 -05:00
Kenneth J Davis
2e849b36c1
update copyright string to 2023 2023-12-18 20:23:04 -05:00
Kenneth J Davis
7b0633b26b
only print messages once, not each time processing partitions; use LBA if forceLBA enabled in additional cases where LBA support not detected 2023-12-18 18:37:19 -05:00
Kenneth J Davis
4b0162c2a6
default to normal not quiet for initial messages 2023-12-18 18:31:20 -05:00
Kenneth J Davis
600192784b
add back building boot files with extra defines but use explicitly specified values instead of generic NASMFLAGS so flags used for other assembly files does not effect building 2023-12-18 17:25:15 -05:00
Kenneth J Davis
f666ac9804
revert changes to boot/makefile; introduces additional command line flags that may break build on different platforms 2023-12-17 22:20:21 -05:00
Kenneth J Davis
b79f0003ac
only create list file if requested, avoids error due to duplicated command line option for generating list file 2023-12-17 22:10:32 -05:00
Kenneth J Davis
cfdd09963f
fix from boeckmann (Bernd Böckmann) for Format GitHub issue #1 - format divide by 0 due to kernel function 440D, subfunction 60 returning a zero for logical_sectors_per_fat as initdisk overflows and calculates incorrect value 2023-12-17 21:01:37 -05:00
Kenneth J Davis
f1249dcd6f
From bzt, initialize drive parameter head & sector values to avoid potential divisions by 0 2023-12-08 21:20:46 -05:00
Kenneth J Davis
5880d36ba9
add ability to adjust verboseness of messages during booting 2023-12-08 18:08:11 -05:00
Bernd Boeckmann
e4a62f239d fix exeflat not deleting temporary file 2023-12-08 17:00:17 -05:00
C. Masloch
95694f7e34 config: delete variable only if it makes enough space to write new 2023-08-30 06:59:41 -04:00
C. Masloch
6101fb2aed config: pass searchvar result to deletevar 2023-08-30 06:59:41 -04:00
C. Masloch
24d19cd05c config: allow to delete variable with empty SET command 2023-08-30 06:59:41 -04:00
C. Masloch
3dafa54e8b config: delete existing variable before writing new contents 2023-08-30 06:59:41 -04:00
C. Masloch
132a0a9f94 truename: fix array overrun (pick from fdpp)
Picked from the commit at fe1c4dc7fe

The referenced issue is at https://github.com/dosemu2/fdpp/issues/212

The patch was applied using unix2dos on the patch file
then `patch -p1 --binary` with the patch file as stdin.
The original used a new define for the maximum path length.
As there is no difference to our current SFTMAX define I
changed this hunk to retain the SFTMAX use.

This fixes a bug when eg function 3Dh receives a buffer
that starts with ".\" but the byte in memory before this
buffer happens to be also a dot. I ran into this problem
semi-randomly during building EDR-DOS with the most recent
WarpLink build. If WarpLink was placed somewhat low in the
Low Memory Area then one of its function 3Dh calls would
happen to have a dot before the pathname buffer. (I had to
load lCDebug using the last fit strategy then enter TSR mode,
to catch the bug without the presence of the debugger working
around the occurrence of the bug.)

Original commit Metadata:

From: Stas Sergeev <stsp@users.sourceforge.net>
Date: Wed, 1 Feb 2023 13:01:55 +0500
Subject: [PATCH] truename: fix array overrun [fixes #212]

src[-2] was peeking into a random memory location.
It seems entire truename() is written by some morons... :(
Its completely unreadable and full of bugs.
2023-08-26 21:32:19 -04:00
C. Masloch
29ccb6e454 main: insure master environment starts out empty 2023-07-03 07:37:00 -04:00
C. Masloch
a0549a395e config: make sure word marker trailing in environment is zero 2023-07-03 07:37:00 -04:00
C. Masloch
3d1ba0d486 config: build master environment during FDCONFIG.SYS processing
lDebug wants to access the environment while executing
as a device driver. Instead of building it in a variable
then copying it to 68h:0 after FDCONFIG.SYS processing,
just build it there to begin with.
2023-07-03 07:37:00 -04:00
Andrew Bird
afe7fbe068 inthndlr: align hma size to para
Based on a patch https://github.com/dosemu2/fdpp/commit/e7fe81d458
for FDDP by @stsp

[fixes #101]
2023-04-13 18:05:24 -04:00
C. Masloch
4973031b00 test: use new bootimg option _BOOTPATCHFILE
This will allow to use file system parameters other than
the default 1440 KiB 90mm diskette's default FAT12 FS.
2023-04-02 12:09:13 +02:00
C. Masloch
abc5ab7f0a update bootimg from hg 380400d3d48e
From https://hg.pushbx.org/ecm/bootimg/file/380400d3d48e
2023-04-02 12:09:13 +02:00
C. Masloch
cba5ee259d update ldosboot from hg 798e0b02fedc
From https://hg.pushbx.org/ecm/ldosboot/file/798e0b02fedc
2023-04-02 12:09:13 +02:00
C. Masloch
adbc31edea update lmacros from hg 99b01fa65007
From https://hg.pushbx.org/ecm/lmacros/file/99b01fa65007
2023-04-02 12:09:13 +02:00
C. Masloch
04353fe9e4 ci_test: do simple boot tests 2023-04-02 12:09:13 +02:00
C. Masloch
6d1ee95e10 ci_test: use bash for better error messages 2023-04-02 12:09:13 +02:00
C. Masloch
26607e9297 test: add a simple boot test using qemu, ldosboot, bootimg 2023-04-02 12:09:13 +02:00
C. Masloch
014111dc39 ci-build: install more packages in preparation for boot test 2023-04-02 12:09:13 +02:00
C. Masloch
a5e479c013 import bootimg from snapshot of hg ed7b734a8d06
From https://hg.pushbx.org/ecm/bootimg/file/ed7b734a8d06
2023-04-02 12:09:13 +02:00