Commit Graph

166 Commits

Author SHA1 Message Date
perry 2a9fe3a4e7 Actually return the BIOS error code (if any) generated by the reads 2000-05-21 16:59:28 +00:00
jhawk 07a3d660c5 This change courtesy of Charles Hannum <root@ihack.net>. This
addresses the problems seen by Jason Thorpe <thorpej@netbsd.org> and
Erik Berls <cyber@netbsd.org> necessitating rev 1.20 of
biosboot/main.c.

Move BOOTSEG from 0x100 to 0x1000.
Move heap from 0x10000 to 0x20000.

XXXXXXXX

This is a Kluge From Hell to allow boot blocks to grow a little larger
without diskbuf[] crossing a 64k boundary.
2000-05-21 16:29:14 +00:00
jdolecek 6572f303f4 remove now redundant comment regarding IBM_L40 define 2000-05-13 19:58:41 +00:00
jdolecek 6c1643be43 minor adjustment for compiling with IBM_L40 2000-05-11 16:11:54 +00:00
jdolecek 98beeaa61d add commented out CPPFLAGS+= -DIBM_L40 - needed for PS/2 bootblocks 2000-05-11 16:05:51 +00:00
fvdl 5ebece6b49 Use ES to address the partition table when checking if we need to use
int13 extensions. Fixes PR 9676.
2000-05-07 22:58:58 +00:00
tsarna da1f2723c4 Addredd port-i386/9897, but differently. Since the effect of resetting
the video mode on machines with ancient or no video cards is not clear,
for safety's sake a I created a new biosboot variant, biosboot_resetvideo
that does the call.

Anyway, now I can boot my i-opener without hitting Tab. Thanks Andrew!
2000-04-23 19:57:12 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
dbj ef5d25c147 use bios' idea of the basemem size and create the kernel stack
at the top of it instead of hard coding 0x90000
2000-02-22 07:45:04 +00:00
tsutsui 11c8f56d48 Revert STRIPPROG -> STRIP 2000-02-01 05:25:24 +00:00
drochner 8395a5e928 like com.c, raise DTR/RTS in console initialisation 2000-01-20 15:22:57 +00:00
tsutsui e61f177ab1 STRIP -> STRIPPROG 2000-01-19 16:29:54 +00:00
drochner 5d8a0c0ddd add a function which prints out the memory descriptors (for debugging) 1999-12-21 14:22:54 +00:00
drochner e5bc2ce76f add support for 3c905b-Combo 1999-12-02 13:21:48 +00:00
drochner 262d9092fc add media definition for 100baseTX 1999-12-02 13:20:56 +00:00
mycroft 6816b631ab Nit: Make bootrealseg conforming. 1999-11-07 01:06:37 +00:00
drochner db5d01fc72 back out the "ep"/"ex" guessing part of the previous - the check was
removed from the kernel and the device name is only informational now
1999-11-05 22:57:39 +00:00
mycroft 3c702c1d8d Recognize the 3c595, and use `ex' for 3c90x now. 1999-11-03 12:38:54 +00:00
mycroft dfc00b5b24 Back out the GDT changes in the previous. Didn't mean to commit that. 1999-11-03 09:55:32 +00:00
mycroft 1ee8f66dfe Picking a few nits...
* The direction flag wasn't set right in the presence of ROMDEBUG.
* There were missing data32's.
* We weren't as careful as we should be with relocations.
1999-11-03 09:28:15 +00:00
drochner e6d27a3a83 correct debug printf() to make it compile with DISK_DEBUG again,
closes PR kern/8718 by Takahiro Kambe
1999-11-02 16:52:25 +00:00
drochner 5c48b9a115 improve awaitkey()'s printout for >9 seconds 1999-09-10 16:23:55 +00:00
drochner 2914ef7fd2 sync with changes to if_fxp header,
thanks to <ks@ub.uni-mainz.de> for testing
1999-09-10 09:12:44 +00:00
ross 9efd996351 spelling 1999-09-07 18:27:58 +00:00
kleink 5663256d0a Unlike in an i386 a.out assembler, where in an .align n directive n is meant
to be the logarithm to base 2 of the alignment, in an ELF environment n is
the actual alignment boundary; thus, adjust the directives accordingly.

Albeit the wonderful i386 architecture doesn't mind the smaller alignment in
an obvious way, it is likely to have resulted in some performance penalty
during the a.out->ELF transition.
1999-08-23 08:24:36 +00:00
drochner 29a8d333b6 put biosdiskclose() inside LIBSA_NO_FS_CLOSE 1999-08-03 19:46:22 +00:00
drochner 7dab8cef61 fix logics in device recognition 1999-07-15 18:00:27 +00:00
drochner 19e64942a2 don't printf(NULL), not even in the DEBUG case
(It doesn't hurt the bootloader, but the junk output hangs my serial
console.)
1999-05-15 15:42:23 +00:00
drochner 998ac16bb7 add some casts for gcc -Wall, from David Rankin
<drankin@bohemians.lexington.ky.us> per PR port-i386/7554
1999-05-11 19:57:05 +00:00
fvdl 4fbaa0b272 Restrict "out of CHS range" check to harddisks. 1999-05-04 17:14:55 +00:00
fvdl ec559f688b Be more careful with saving registers around the "out of CHS range" check. 1999-05-02 12:44:34 +00:00
christos 57e4b98787 - Use the proper multiply instructions so that we don't get truncated. 1999-04-30 15:31:17 +00:00
fvdl 48003b2c88 Only use int13 extensions if the sectors can not be read through the
older CHS interface. This works around stupid BIOSs who report that
int13 extensions are present and functional, but fail when you actually
use them. Like Adaptec SCSI BIOSs.
1999-04-28 23:24:42 +00:00
christos c5ec77e01b use new loadfile 1999-04-28 09:14:22 +00:00
drochner ca053f4364 remove an "unmodified" so that the copyright notice will hopefully match
pk's "BSD-style (clauses: 2; no acknowledgements)" pattern
1999-04-22 10:27:16 +00:00
drochner 982c55e22c another nit in error handling: don't try to print out a NULL filename
(which means "use default" and is dealt with properly by open())
1999-04-17 11:18:36 +00:00
christos c70b4ad2a1 Add prototype for getsecs 1999-04-14 15:22:07 +00:00
hpeyerl 6cde76c6fe fix some copyright foo. 1999-04-14 12:56:33 +00:00
drochner dd0ed4267b add prototype 1999-04-14 11:19:23 +00:00
drochner 2d1e6a1f5a add prototypes, slight formatting changes 1999-04-14 11:17:04 +00:00
drochner ffd8d7c6d0 add prototypes
being here, format ala KNF
1999-04-14 10:57:59 +00:00
drochner 7d5e1f9211 fix error handling: almost all errors were ignored 1999-04-09 20:12:57 +00:00
drochner 552f55e726 Call bi_getbiosgeom() after loadfile() returned successfully. This avoids
a memory leak if loadfile() gets an error.
1999-04-08 18:21:15 +00:00
drochner 5d86b86370 #ifdef out the last change for the branch 1999-04-01 19:36:09 +00:00
drochner 3497f157fd On serious boot errors, dont lock the machine. Instead, wait 3 seconds
and call the ROM BASIC vector. This might behave differently on different
machines, but normally it allows to reboot without power-cycling.
1999-04-01 17:07:54 +00:00
drochner 99a84ef740 sync to changed biosdisk interface again 1999-04-01 16:09:49 +00:00
fvdl fb1b0e7a0b Shifting ecx without explicit prefix in real mode won't work. 1999-03-30 22:35:21 +00:00
drochner 17de7b2576 adapt to set_geometry change: we don't have to correct the geometry
anymore
1999-03-30 17:58:05 +00:00
drochner 62031ff978 fix some disk handling problems introduced in the last commits:
-read retries were botched, use the right sector count
-read-ahead buffer was effectively unused
-concentrate the handling of the weird BIOS geometry report at one place
-fallback for old floppies left cylinder count uninitialized
1999-03-30 17:55:48 +00:00
drochner 4feae58ec1 sync to changed geometry handling in the standalone code 1999-03-30 11:51:35 +00:00