simonb
59df0560f4
Set the colormap index before checking it!
1999-04-25 04:04:16 +00:00
simonb
d2bd346fb8
Shut 'gcc -Wuninitialized' up (including a real case I missed with ddb
...
symbol initialisation).
1999-04-25 03:20:45 +00:00
simonb
f676307241
Include "px.h" - rcons_connect_native is only compiled in of NPX > 0.
...
Fixes PR port-pmax/7456 from Jason Thorpe.
1999-04-24 15:22:45 +00:00
simonb
dc1d3940db
Nuke register and remove trailling white space.
1999-04-24 08:01:01 +00:00
simonb
6f6573cb10
Move BOOTINFO_ADDR up to 0x8001fc00, and reduce the maximum size of a
...
bootinfo record to 1kB (we are using less than 200 bytes now) so that it
doesn't run into addition PROM memory.
At 0x8001f00 the bootinfo record was stomping on some memory used by the
SFB cards for font information.
1999-04-22 01:52:54 +00:00
ad
a895fbfd58
Define rcons_connect() only if (NFB > 0). Define rcons_connect_native() only
...
if (NPX > 0). Needed for fixed `rasops' config glue.
1999-04-22 00:33:30 +00:00
ad
ca39efe84c
Remove misplaced comment.
1999-04-22 00:29:59 +00:00
simonb
25715bb0f2
Comment out 'config nfsnetbsd'.
1999-04-21 12:53:56 +00:00
simonb
24323d7ef4
In cpu_startup():
...
+ Initialise minaddr to the start of the file I/O buffers.
+ Check for overallocation of RAM for these buffers.
+ Change function name in panic message to match reality.
Code taken from almost every other port, and fixes the:
uvm_km_suballoc: unable to allocate space in parent map
panic that some people have been experiencing.
1999-04-21 02:03:24 +00:00
mrg
ad52a7fe49
make this compile again with no rcons.
1999-04-20 06:42:54 +00:00
simonb
dc3b870fce
Add NFS_BOOT_DHCP so that netboot kernels can find the root filesystem.
1999-04-20 05:56:52 +00:00
simonb
1065cb27a3
s/NFS_BOOT_BOOTP/NFS_BOOT_DHCP/
...
DHCP is a superset of BOOTP, and still works with BOOTP servers.
1999-04-20 05:54:44 +00:00
simonb
cbd32a724f
Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:
...
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:24:16 +00:00
ad
0993fa2727
Add configuration glue needed by rasops, wsfont, rcons and the px driver.
1999-04-13 18:53:27 +00:00
ad
cf19d10b2a
Added console initalization glue to allow `px' device to function as the
...
console.
1999-04-13 18:50:51 +00:00
ad
8cd2881c35
Save colormap when fb device is opened, and restore upon close. Do not
...
fbconnect() 'pm' device again at attach time if it is the console.
1999-04-13 03:22:00 +00:00
ad
46dcc25b4a
Map keypad 'Enter' to 'Return' for console operation. Change error messages
...
in MouseInit() to allow gcc to fold the strings.
1999-04-13 03:19:28 +00:00
ad
7940da64de
Define PMAX_FBTYPE_PX. Changes to allow fbvar.h to be included with
...
dev/rcons/rcons.h.
1999-04-13 03:14:03 +00:00
ad
de43e7cc8d
Fixed licensing due to a foobar on my behalf.
1999-04-13 00:40:07 +00:00
ad
b30fc08f22
Initial import of `PX' driver.
1999-04-13 00:30:08 +00:00
pk
b13e5d1469
Quote "AS IS" as in the majority of Carnegy Mellon notices.
1999-04-12 20:38:17 +00:00
simonb
b84e038e4b
Bump version number to 1.1 for default kernel names.
1999-04-12 05:46:57 +00:00
simonb
71c3fc3251
If only a device name is specified with no kernel name, try to load a
...
kernel from a default list of names. This list is netbsd, netbsd.bak,
netbsd.old, onetbsd and gennetbsd - all without and with a .gz
extension.
1999-04-12 05:19:25 +00:00
simonb
ab3de4de0e
Make the bootpath "N/rzY" with no trailing '/' valid by adding the extra
...
'/' before appending 'boot' to the path.
1999-04-12 05:14:51 +00:00
simonb
520c13bcc8
Fix an off-by-32 error - space was padded out to the 96th byte for the
...
DEC disk boot block header, but it's only 64 bytes long. Gives us
another 32 bytes in the first stage.
Don't use a roll-your-own START_FRAME size and offsets for the stack
and ra - use the <mips/asm.h> provided CALLFRAME_SIZ, CALLFRAME_RA and
CALLFRAME_SP
1999-04-12 03:53:13 +00:00
simonb
0a7e699d22
Add "WARNS?= 1" - woohoo!
1999-04-11 04:31:02 +00:00
simonb
cdc059d0d0
Use BOOTRZ instead of BOOTXX.
...
Add -DLIBSA_NO_DEV_IOCTL.
1999-04-11 04:28:14 +00:00
simonb
6247c771c1
Use BOOTRZ instead of BOOTXX.
...
Add a PROM callback for prom_close if not LIBSA_NO_DEV_CLOSE.
1999-04-11 04:27:53 +00:00
simonb
deb30f311a
Include <common.h> to get prototypes for PROM callbacks.
...
Use LIBSA_NO_DEV_CLOSE and BOOTRZ instead of SMALL.
In rzclose() call prom_close() on the descriptor if we're on a
pre-REX machine.
1999-04-11 04:27:30 +00:00
simonb
b2706c76c1
s/vmunix/netbsd/
...
Use BOOTRZ instead of SMALL.
1999-04-11 04:26:31 +00:00
simonb
558e5709dd
Use LIBSA_NO_DEV_CLOSE and LIBSA_NO_DEV_IOCTL instead of SMALL.
1999-04-11 04:26:06 +00:00
simonb
bc48dfc927
Clean up prototypes.
...
Print a message on failure to load or execute kernel.
1999-04-11 04:25:47 +00:00
simonb
f1e493608f
Move MKMAN to ../Makefile.inc.
1999-04-11 04:25:15 +00:00
simonb
c8ba78a09e
Move BINDIR, BINMODE to Makefile.inc.
...
Remove -DSMALL.
Define an empty LIBZ if building first stage bootblocks since LIBZ
defaults to /usr/lib/libz.a.
1999-04-11 04:24:41 +00:00
simonb
96fba8337e
Define BINDIR, BINMODE and MKMAN in the "standard" place.
1999-04-11 04:19:56 +00:00
simonb
9498a6da95
Clean up prototypes and entry variable usage.
1999-04-11 04:08:25 +00:00
simonb
2fb264a52e
Declare some prototypes for the pmax-specific libsa functions.
1999-04-11 04:05:46 +00:00
chs
f455dd6596
add a `flags' argument to uvm_pagealloc_strat().
...
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.
1999-04-11 04:04:04 +00:00
simonb
39b90701da
Include <stand.h> so we get a putchar() prototype.
1999-04-11 04:03:29 +00:00
simonb
cda54b761e
Apply rev 1.8 of sys/arch/i386/stand/lib/loadfile.c:
...
fix error handling: almost all errors were ignored
YES, this will be made MI soon...
1999-04-10 01:52:33 +00:00
simonb
be4160066d
Allow the fake installation diskimage to be 2MB as well as 32MB in size.
1999-04-08 13:55:37 +00:00
nisimura
dd8e585cec
- MIPS processors do not require to have memory barrier prior to read ops.
1999-04-08 03:14:35 +00:00
pk
c40eb1cd97
Fix a pasto in copyright text which has been procreating like rabbits..
1999-04-06 20:09:18 +00:00
simonb
b1ec416993
Don't build a.out kernels anymore.
1999-04-06 06:16:07 +00:00
simonb
e6ab4443a2
Mention a few other (not implemented) space saving ideas in case we
...
get desparate in the future.
1999-04-01 08:47:38 +00:00
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
thorpej
967b8c433c
Don't call configure() from cpu_startup().
1999-04-01 00:17:45 +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
soda
2f9a4a8d93
regdef.h is back
1999-03-30 18:38:32 +00:00
soda
45b35a036e
regdef.h is back
1999-03-30 14:20:43 +00:00
simonb
a63b96d0c4
Don't install sysconf.h - nothing is exported to userland in this file.
1999-03-30 02:19:02 +00:00
simonb
a487471f7c
Remove bogus comment.
1999-03-29 13:48:25 +00:00
nisimura
1902d11a08
- Minor formating knots. No functional change.
1999-03-29 05:56:29 +00:00
simonb
9c02b3c942
Add enabled options NETATALK and IPFILTER_LOG, and disabled PPP_BSDCOMP,
...
PPP_DEFLATE, PPP_FILTER and PFIL_HOOKS
Partial fix for kern/7264 from Greg Woods. Too much variance in all
ports GENERIC config files to do across the board right now.
1999-03-28 06:17:40 +00:00
simonb
9d77f4eb40
Use COPTS="-Os -mmemcpy" for INSTALL kernels - saves ~15kB in text.
1999-03-28 05:46:53 +00:00
simonb
dcc82eccf1
Also comment out inclusion of "builtin.5100" to stop pulling in 5100
...
devices.
1999-03-28 03:02:49 +00:00
simonb
10ab7f42f7
Protect the variables used during the DDB symbol calculations with
...
an "#ifdef DDB".
1999-03-28 01:56:41 +00:00
simonb
1a74785d0a
Remove "md" - we have a specific INSTALL kernel, so we don't need "md"
...
on the GENERIC kernel. Pointed out by Erik Fair.
1999-03-27 15:31:50 +00:00
simonb
4436f7ad26
Uncomment ipfilter and rnd, add md.
1999-03-27 11:10:25 +00:00
simonb
28b36b37a5
Remove trailing white-space.
1999-03-27 08:15:29 +00:00
simonb
25cde9b010
Disable 5100's for now - it doesn't work yet, so we may as save a little
...
bit of space...
1999-03-27 07:40:08 +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
mhitch
ef619b1714
The ECC handling was broken when the common handling was split out of dec_3max.c
...
and dec_3maxplus.c. The ERRSYN/CHKSYN register contains data, not an address.
Pass the address of the register rather than the contents to dec_mtasic_err()
instead of the register contents so it can read/write the register.
Correctable memory errors won't trap in dec_mtasic_err() anymore.
1999-03-27 03:27:09 +00:00
mycroft
9c6b797796
Changes for modified pmap_enter() API:
...
* Map the message buffer with access_type = VM_PROT_READ|VM_PROT_WRITE `just
because'.
* Map the file system buffers with access_type = VM_PROT_READ|VM_PROT_WRITE to
avoid possible problems with pagemove().
* Do not use VM_PROT_EXEC with either of the above.
* Map pages for /dev/mem with access_type = prot. Also, DO NOT use
pmap_kenter() for this, as we DO NOT want to lose modification information.
* Map pages in dumpsys() with VM_PROT_READ.
* Map pages in m68k mappedcopyin()/mappedcopyout() and writeback() with
access_type = prot.
* For now, bus_dma*(), pmap_map(), vmapbuf(), and similar functions still use
access_type = 0. This should probably be revisited.
1999-03-26 23:41:25 +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
thorpej
567cda0537
Don't bother allocating mb_map on these systems. Mbuf clusters are
...
allocated from a pool, and the MIPS and Alpha use KSEG to map pool
pages. So, mb_map wasn't actually being used. Saves around 4MB of
kernel virtual address space in a typical configuration.
Garbage-collect the related VM_MBUF_SIZE constant.
1999-03-26 00:15:04 +00:00
simonb
1132034fe8
If the clock speed is less than 15MHz, we're on a 2100, otherwise a 3100.
1999-03-25 19:55:37 +00:00
simonb
e432668f46
callvec.c moved in stand again...
1999-03-25 12:56:18 +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