Commit Graph

121 Commits

Author SHA1 Message Date
simonb f36bd65f46 Build the full MI libsa for the first stage bootblocks rather than
picking the bits we wanted explicitly, taking advantage of some of the
recent code-size trimming from cgd.  There's now no duplication if libsa
code in sys/arch/pmax/stand.

As a bonus, we now have 416 bytes free in stage one (up from 80), and
will all of Chris' space saving options enabled (these are commented out
in scsiboot/Makefile), theres over a 1kB free.
1999-04-01 06:05:04 +00:00
simonb 971284a4ed Add support for LIBSA_SINGLE_DEVICE and LIBSA_SINGLE_FILESYSTEM. 1999-04-01 05:52:38 +00:00
simonb ff2206f6df G/C UFS_NOSYMLINK, UFS_NOCLOSE and UFS_NOWRITE and use new LIBSA_NO_FS_*. 1999-03-31 07:43:39 +00:00
simonb 4c9bbd20fb Don't define errno expliticly, use libsa/errno.c in first stage and
${LIBSA} in the second stage.
1999-03-31 07:23:27 +00:00
simonb febdc0ddf2 Use recent LIBSA_NO_TWIDDLE support. 1999-03-31 04:30:11 +00:00
simonb 0f4c2803ca Create/build vers.c/vers.o inside the final link stage so that the build
datestamp get's updated each build.
1999-03-31 03:10:56 +00:00
simonb 5fbc10c671 Reorder ${LIBS} so that we don't need to explicitly pull in bcmp.c
and bzero.c from libkern.
1999-03-31 02:35:14 +00:00
simonb a487471f7c Remove bogus comment. 1999-03-29 13:48:25 +00:00
simonb 516865d17c Enable now that "make depend" works properly. 1999-03-27 07:39:06 +00:00
simonb d44e9483b0 Go back to a Makefile.booters scheme, like most other ports do. No
more problems for "make depend" - tested with and without obj dirs.
1999-03-27 07:17:50 +00:00
simonb d0e107a1a5 Update copyrights. 1999-03-26 05:23:58 +00:00
simonb 4fefe2cb37 Conditionally set BINMODE and BINDIR so lower level Makefiles can override
the location or modes.

Fix up the machine and mips symlink creation.
1999-03-26 02:12:17 +00:00
simonb 461afc9079 Explictly set BINMODE to 555 so that ../Makefile.inc doesn't override it. 1999-03-26 02:07:55 +00:00
simonb aff677bcae Updates for new bootblocks. 1999-03-25 12:24:56 +00:00
simonb 5010ae76c0 Remove old (not-enabled) local support for loading kernels. 1999-03-25 12:16:04 +00:00
simonb b295b577e1 Second stage bootblocks based on original single stage blocks. 1999-03-25 12:11:41 +00:00
simonb 2dde1643c2 Makefile for /boot. 1999-03-25 12:10:12 +00:00
simonb 7c060ce391 Version info for bootblocks. 1999-03-25 11:57:41 +00:00
simonb 26098f27a2 Emtpy twiddle() to save space in stage 1 bootblocks 1999-03-25 05:28:36 +00:00
simonb b9b7830d05 Unused now. 1999-03-25 05:27:00 +00:00
simonb 1e80ec96a0 Only include the dec disklabel at the start of BOOTXX is defined. 1999-03-25 05:23:48 +00:00
simonb fb11e9e236 Remove unused debugging code, and clean up an error message. 1999-03-25 05:22:44 +00:00
simonb f490a639c9 Not needed at the moment - may be resurrected when netboot comes along. 1999-03-25 05:19:44 +00:00
simonb a160a47e1b Fix header botch in previous. 1999-03-25 05:17:49 +00:00
simonb e213504efd Call main instead of _main. 1999-03-25 05:17:27 +00:00
simonb c80fb4ccb8 Change from loading an a.out kernel to an ELF /boot. 1999-03-25 05:16:06 +00:00
simonb 0e44e536a0 Include <machine/stdarg.h> and not <stdarg.h> - found by adding
-nostdinc to CPPFLAGS.
1999-03-25 05:13:15 +00:00
simonb 7607cac7b3 CVS repository copy to bootxx.c 1999-03-25 04:42:06 +00:00
simonb 70bc63765d CVS repositary copied to ../scsiboot. These are small routines and/or
PROM callbacks used only by the first-stage disk bootblocks.  Other
bootloaders use libsa/libkern.
1999-03-25 04:34:03 +00:00
simonb ec6b2370d9 CVS repositary copied to ../lib. 1999-03-25 04:22:04 +00:00
simonb e6469a71aa Makefile* of pmax specific SA library - based on i386/stand/lib Makefile. 1999-03-25 04:16:15 +00:00
simonb 88eed19213 Oops, forgot RCS header and copyright. 1999-03-25 04:14:03 +00:00
simonb 50e9ee5706 Assembly routine that takes an entry point, new stack pointer address
and six extra arguments.  Sets up the stack pointer with the arguments
in the right registers/stack positions and calls the entry point.
1999-03-25 04:08:59 +00:00
simonb c7c8021a29 Basic putchar() implentation in terms of the PROM's printf() callback.
Not really effecient, but there isn't that much printf'ing down by SA
programs and we can use the libsa printf() so things like "%ld" work.
1999-03-25 04:02:57 +00:00
simonb 0f203c7d99 Use "make ... echo ${MACHINE}" to get the machine name so
that this script is MI.  Just need to find the right place
for it now - suggestions welcome...
1999-03-25 03:56:00 +00:00
simonb 246f0aacde Copy of sys/arch/sparc/common/newvers.sh. 1999-03-25 03:52:12 +00:00
simonb c06d325aaa Copy of sys/arch/i386/lib/loadfile.h with tweaks for the pmax. 1999-03-25 03:41:58 +00:00
simonb 6c24c1c864 When loading an a.out kernel and keeping the exec header, if it's OMAGIC
put the exec header below kernel text.
1999-03-25 03:38:53 +00:00
simonb 4ba6c44ef4 s/BOOTINFO_MAXSIZE/BOOTINFO_SIZE/ 1999-03-25 03:35:39 +00:00
simonb 50897b84e0 Direct copy of sys/arch/i386/stand/lib/loadfile.c.
XXX: This should probably be MI in sys/lib/libsa.  After 1.4...
1999-03-24 23:51:26 +00:00
simonb b4848d6b90 Code to initialise and add bootinfo records. 1999-03-24 23:47:37 +00:00
simonb 0ba02670be New bootblock directory structure. 1999-03-24 02:07:22 +00:00
simonb c9e3b47a0f Don't build anything while bootblocks are being updated. 1999-03-23 22:23:11 +00:00
simonb e4dd1abb05 Merge contents of filesystem.c into conf.c, and remove declaration of
errno from conf.c and put it in boot.c.
1999-03-14 00:57:06 +00:00
drochner 2b8eb20358 Remove unneeded <mips/regdef.h>. Its contents went into asm.h while ago. 1999-03-13 11:20:55 +00:00
simonb d9c1c30e0e If we get an error (file or bootblocks too big), unlink xxboot and
bootxx and exit(1) so a make will fail.  Especially in the too big
case, we don't want a make to work!
1999-03-01 11:52:34 +00:00
simonb 19893da01b Add a callback to the PROM routine clear_cache. Not needed now, but
used in two-stage bootblocks.
1999-03-01 04:05:18 +00:00
simonb 61b327c2ac Remove bootconf.c from CLEANFILES; not used anymore. 1999-02-24 13:54:54 +00:00
simonb 381c553a53 Use -Os to reduce code size (from Krister Walfridsson). 1999-02-23 01:23:26 +00:00
simonb ffa92484e2 Update cpp defines to current reality. 1999-02-22 11:57:18 +00:00