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
simonb
74f2d414ef
Load the bootblocks at 0x8070000 so that ramdisk kernels don't
...
overwrite the beginning of the bootblocks.
1999-02-22 11:53:57 +00:00
simonb
69ba0d255c
Update list of source files to reflect reality.
1999-02-22 11:31:46 +00:00
simonb
c3baaf3ba5
Lightweight memset routine.
1999-02-22 11:26:15 +00:00
simonb
31f50e4868
Assembly stubs to PROM callback routines.
1999-02-22 11:22:40 +00:00
simonb
80ef484669
Use sys/lib/libsa/ routines now.
1999-02-22 11:21:21 +00:00
simonb
74df4f53e0
Allow code in sector zero (from Michael Hitch).
...
Also in start.S:
+ Removed unused printf routine.
+ Removed unused dummy __main for gcc.
+ s/bzero/memset/.
1999-02-22 11:01:43 +00:00
simonb
09cca9e076
Don't use the conf.c->bootconf.c guff, remove last tape support,
...
and actually install the bootblocks.
1999-02-22 10:53:13 +00:00
simonb
3d6a630813
Break single read and printf of text+data into two separate reads and
...
printfs. Better aesthetically, especially with a twiddle.
1999-02-22 10:23:53 +00:00
simonb
63e306cbe7
Use "#ifdef UFS_NOCLOSE/UFS_NOWRITE" instead of "#ifdef SMALL".
1999-02-22 10:18:40 +00:00
simonb
6932c61287
Use memset() instead of bzero().
1999-02-22 10:16:52 +00:00
simonb
e87d6bf17e
More tape support not needed.
1999-02-22 09:25:16 +00:00
simonb
50ae7be229
Don't implicitly type the devopen() function.
...
Don't include machine/dec_prom.h.
1999-02-22 08:24:47 +00:00
simonb
2e4a4cb289
Revert to a simple memcpy implementation - a memcpy() PROM callback is not
...
available on all DECstation models.
1999-02-22 08:22:21 +00:00
simonb
2407241a09
Sync with sys/lib/libsa/ufs.c. Now the same except for the memset/memcpy
...
#defines at the top.
1999-02-22 08:16:57 +00:00
simonb
ddf48f18a0
Remove traces of tape support - we're nowhere near handling it at the
...
moment.
1999-02-22 07:17:44 +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
jonathan
9ec88780aa
size_t and void*-arithmetic changes from sys/libsa/ufs.c.
1999-02-01 03:08:05 +00:00
jonathan
45f13be5cb
use memcpy, not bcopy, for non-overlapping copies.
1999-02-01 02:46:59 +00:00
simonb
53e963b5ef
Add -mmemcpy (from Jonathan Stone) and bump -G to 128. Bootblocks now
...
fit! Still needs more testing, so we don't actually install them yet...
1999-01-30 12:57:58 +00:00
simonb
98ceefb712
Actually depend on libsa now.
1999-01-30 12:39:28 +00:00
simonb
555cdd32e5
Don't define an ioctl routine for the rz driver, nor pull in the empty
...
routines in libsa/dev.c.
1999-01-30 12:30:57 +00:00
simonb
1047f11c01
Remove unused callvec stubs and libsa routines, add memcpy.c.
1999-01-30 12:23:10 +00:00
simonb
db342dee15
Add memcpy callvec stub, copied from strcat.c
1999-01-30 11:54:31 +00:00
simonb
a9f9300b78
Tell how many bytes of code are available, and print a warning if the
...
bootblocks are too large - from Michael Hitch.
1999-01-30 10:14:45 +00:00
simonb
500353b4c3
Use DEC_REX_MAGIC instead of a undocumented magic number
1999-01-30 00:40:38 +00:00
simonb
916b809a51
Make a `machine' symlink to ..../pmax/include to locate new location of
...
the dec_????.h files. Gleaned from other ports' stand/Makefile.inc's.
1999-01-29 05:51:15 +00:00
simonb
9a3172af0e
Include dec_{boot,exec,prom}.h from <machine/...>, not <stand/libsa/...>
1999-01-29 05:37:45 +00:00
simonb
fe1bdc0a06
Move via repository copy to pmax/include - the kernel uses these
...
includes too.
1999-01-29 05:28:59 +00:00
simonb
ce856af2ef
Include dec_prom.h with `full' path if being included by kernel.
...
XXX: Should these headers used by the kernel be in pmax/include instead
of pmax/stand?
1999-01-27 05:52:31 +00:00
simonb
3566c2a4a4
Add NetBSD RCS ids
1999-01-22 14:27:31 +00:00
simonb
65fca13b07
More Makefile cleanups:
...
+ Don't use our own "clean" and "depend" targets
+ "make depend" works
+ Only include each include path once on compile lines
+ Clean up include file names
+ Don't build a separate libdrive.a, just specify driver source files
+ Use "make print-objdir" instead of old "printf ... | make -f-"
+ Remove more unnecessary targets, variables and other cruft
Still builds identical bootblocks to 1.3.3 with gcc, still too large
with egcs.
dec_boot.h, dec_exec.h & dec_prom.h were copied via respository
copy to sys/arch/pmax/stand/libsa.
1999-01-22 14:05:05 +00:00
simonb
76764712c1
Round one of the Makefile clean up:
...
+ dependency on libsa works
+ set and use BINDIR/BINMODE
+ don't pull in sys/lib/lib{sa,kern}/Makefile.inc (``make clean''
doesn't make empty lib/{sa,kern} directories in each
directory/obj dir).
+ remove unnecessary targets, variables and other cruft
+ wrap lines at 80 chars
Re-ordering SRCS line in libsa/Makefile to a more logical sequence
(alphabetical by source dir) results in a libsa.a with archive members
in a different order, and a resultant bootrz that differs from the 1.3.3
bootrz. Untested as yet, so left in but commented out.
Also, _don't_ install the bootblocks (as per intent of previous commit)
or our own small libsa(!).
1999-01-21 14:16:52 +00:00
simonb
ab18b23eba
Add dkcksum.c (pulled in from libsa) and remove local copy of
...
disklabel.c (with it's own copy of the same dkcksum routine). Output
code still identical.
1999-01-21 12:43:11 +00:00
simonb
6c2628b5d0
Almost working bootblocks for the pmax. This compiles fine with gcc
...
2.7.2.2-myc2 (and produces _identical_ bootblocks with the 1.3.3
bootblocks which weren't in the tree), but egcs 1.1.1 builds a ufs.o
that's about a 100 bytes too big, and it busts the 7.5k we've got for
bootrz.
Still needs cleanup - the Makefiles could be better/cleaner, and doesn't
install yet (because of above problem). At least there's something to
work with now.
Note that we have our own versions of a lot of the sys/lib/libsa
routines which are less functional/smaller.
1999-01-21 12:33:39 +00:00
simonb
64b6a85f9c
Remove obsolete README and dec_label program
1999-01-20 13:37:56 +00:00
simonb
47c28b03d8
Move via repository copy to sys/arch/pmax/stand/scsiboot
1999-01-20 12:03:56 +00:00
drochner
bd9ed5a6fd
STANDALONE->_STANDALONE (cpp definition)
...
closes PR kern/5481 (Erik Bertelsen <erik@q610.ebe.uni-c.dk>)
1998-05-22 12:56:35 +00:00
perry
b46484bb8a
RCSID Police.
1998-01-05 20:51:25 +00:00
perry
015e898c02
RCSID Police.
1998-01-05 07:02:46 +00:00
lukem
3e8e744696
getopt returns -1 not EOF
1997-11-01 06:49:14 +00:00
jonathan
0fa286f23d
Note non-inclusion of up-to-date bootblock source for 1.3, as
...
suggested by release engineers.
1997-10-18 22:33:28 +00:00
lukem
28558b28eb
rcsid fascism
1997-10-13 14:22:22 +00:00
jonathan
c6b9463cd1
Remove all references to <machine/machAsmDefs.h>.
...
Use #include <mips/asm.h> instead.
1997-06-16 01:23:56 +00:00