Commit Graph

220 Commits

Author SHA1 Message Date
drochner 0cb921e61e change the interface for getmementry() to hold the iterator in an
argument and to return success or error explicitely.
Now we can "error" and "end of list" cleanly; this should fix the
problem where the last list element was ignored.
1999-03-08 21:38:28 +00:00
fvdl f8e221511b * query BIOS geometry information, possibly using the int 13 extensions.
* pass them on to the kernel
* print a message if the 2nd stage bootloader returns (i.e. fails)
  instead of just hanging.
1999-03-08 00:09:24 +00:00
he e9f9c1625e Add handling of OMAGIC files, where exec header isn't part of the
text segment.  Needed for woring installboot, since biosboot.sym is OMAGIC.
1999-03-07 20:03:44 +00:00
fvdl 5a32d4bb8b Make bootblocks really work this time. From Christos. 1999-03-05 20:33:08 +00:00
christos 4b494ca224 Fix the symbol reading problem... 1999-03-04 20:46:23 +00:00
simonb 1397fd691b fix spel. 1999-03-01 12:46:16 +00:00
drochner d57c7b76ca replace ENTRY() label in data segment which broke the code completely 1999-02-28 11:45:44 +00:00
drochner 9e8c9e9594 -pull in exec.c, needed since loadfile.c
-don't pull in tftp.c anymore, it's in libsa now
1999-02-24 19:38:17 +00:00
drochner f1d1de8c7a moved to mi lib/libsa 1999-02-24 19:32:34 +00:00
drochner eac4e51111 redirect the linker's stderr to the protocol file too 1999-02-19 19:53:01 +00:00
drochner cb2e02af94 Make this compile and work again after the assembler update.
The new assembler doesn't allow 16-bit relocations involving arithmetics
with 32-bit variables. (The old one did silently truncate, which was
the right thing in our case.) Further, the new assembler uses to scatter
size prefixes around if the size of the operation is not explicitely
specified, even if the result is nonsense, eg for moves to segment
registers or control registers.
Add some debugging code (generating printouts) and comments.
Remove the !BOOTROM code which was intended for a DOS harness but isn't
that useful anymore.
Some cleanup and formatting to make it more similar to the other
startup code variants.
1999-02-19 19:48:06 +00:00
drochner fd3ad59373 make the ethernet address an unsigned char array to avoid sign extension
when it is printed
1999-02-19 19:30:46 +00:00
drochner 0ce9e35aae add boot ROM support for the DMA-only 3com network adapters, tested with
3c900b-Combo only for now
1999-02-19 19:22:52 +00:00
dean 6dc3d1eae8 Put back bsd.own.mk and added comment explaining why it must be included. 1999-02-14 02:56:19 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
dean c372a9b915 Remove bsd.own.mk include 1999-02-12 23:48:46 +00:00
cjs 8a3ac60bb8 Change NOMAN to MKMAN. 1999-02-12 05:15:35 +00:00
cjs 3e90f302b6 Don't give exit() a parameter, as libstand version doesn't take one. 1999-02-12 05:14:22 +00:00
tron 2fefe24803 Remove "lib" directory only during "make cleandir" so that ".depend"
doesn't get nuked during "make clean".
1999-02-07 18:25:54 +00:00
tron 08c7376961 Remove "lib" directory created during build process while doing
"make clean" or "make cleandir".
1999-02-07 13:39:36 +00:00
christos 736a561afb Add my name in the copyright, since the code looks very different now. 1999-01-30 17:51:52 +00:00
christos 5699d1ab3d Remove exec.c from here. I want to make it obvious that it has to be built
with different flags from dosboot and biosboot. Although right now this
does not make a difference because we are building the libraries twice,
it can make a difference when we share the builds.
1999-01-30 17:46:53 +00:00
christos 07b1febfb8 - Use MARK_ENTRY instead of MARK_START.
- ELF changes. Now an ELF installboot installs ELF bootblocks properly.
1999-01-30 17:45:42 +00:00
christos 371363a158 Add exec.c here and bump version for elf.
XXX: This code has not been tested!
1999-01-30 17:44:10 +00:00
christos 25fc1fa758 Add exec.c here... 1999-01-30 17:43:38 +00:00
christos ad9c7a287c Remove exec.o, and make necessary changes for elf. 1999-01-30 17:43:10 +00:00
thorpej 191dab44fa Um, last rev was kind of backwards... actually build exec.o so that
the boot block links.
1999-01-29 22:13:42 +00:00
christos e58bb79483 Merge XMS changes from exec_fromdos.c 1999-01-29 18:49:08 +00:00
christos e25e5c88f9 Both booters need exec.o now. 1999-01-29 18:47:58 +00:00
christos 35ca0db06c Revert, wrong place for this. 1999-01-29 18:47:24 +00:00
christos 6cadeb1ea6 Add exec.c here. 1999-01-29 18:46:15 +00:00
christos 3c7776f1b6 exec.c has all the info now. 1999-01-29 18:45:34 +00:00
christos 89cc672d98 Jason forgot to make the disklabel_mbr.h changes for this and ows me 5 hours
of debugging.
1999-01-29 18:45:12 +00:00
christos 722d35a400 Add the ability to get the size of the loaded image without actually
loading. This is useful for dos loading and installboot.
1999-01-29 18:44:09 +00:00
christos 7a7391de52 Simplify by using new feature of getting the load size. 1999-01-29 18:43:11 +00:00
christos 1e39fefac4 Remove -g accidental addition 1999-01-29 18:41:50 +00:00
christos 74d863263c Use loadfile() to load the bootblocks, so that we are going to be able
eventually to load boot blocks with this. Unfortunately the elf assembler
chokes currently on our bootblocks, so the ELF portion does not work (yet).
1999-01-28 22:47:25 +00:00
christos f1fd49f426 Add support for selectively loading sections, and make this compile in
userland with -DINSTALLBOOT
1999-01-28 22:45:06 +00:00
christos 9fa73628c9 Minor changes to prototypes. 1999-01-28 20:22:31 +00:00
christos 63546de24a Remove a.out loading code and use loadfile.c for everything.
Populate the btinfo_symtab structure.
1999-01-28 20:21:24 +00:00
christos 0fcf083702 Add loadfile.c (stolen from Jason's alpha/stand/common/loadfile.c)
loadfile.h contains macros that are supposed to be MD, but loadfile.c is now MI.
Fixes:
- a.out support
- pass information values via an array not global variables
- don't assume that you can access memory directly.
- remove MD parts
- remove some printfs.
XXX:  loadfile.c needs to be moved somewhere where other ports can use it.
XXX2: read() routines on the i386 don't appear to set errno on failure.
1999-01-28 20:18:31 +00:00
christos 408aa9a669 Bump number to 2.6 and say ELF works!
But, this is not selfhosting yet. I need to fix the installboot crap.
[i.e. you need the a.out tools to build it and install it].
1999-01-28 20:12:49 +00:00
thorpej f077362c41 Use the MI <sys/disklabel_mbr.h>, not our own machine-dependent
definitions.
1999-01-27 20:54:56 +00:00
thorpej 6ead44025b Fixup some usage of _C_LABEL(). 1999-01-22 22:43:44 +00:00
he 30cc2d95cb Actually handle small boot blocks (<=15 blocks) correctly in the ffs case. 1999-01-17 18:16:16 +00:00
he 4155434b1c Fix uninitialized `inode' variable in save_ffs(), fixing port-i386/6682. 1999-01-16 18:26:47 +00:00
kleink 657d577aeb Pull in <errno.h> instead of <sys/errno.h> for declaration of errno. 1999-01-11 22:21:30 +00:00
he bdafd9591e Add "ustarfs" as a recognized boot file system type, and bump version number. 1998-12-19 19:44:56 +00:00
he 2cfee96f35 Implement -b option, similar to on alpha, required for ustar floppy support. 1998-12-19 19:17:23 +00:00
drochner be595f36c4 document support for Intel 82557/82558 1998-12-12 15:51:49 +00:00