thorpej
7884abf9e5
Implement tcp_sysctl(). Add a sysctl option to enable/disable RFC1323
...
extensions to TCP. From John Kohl <jtk@kolvir.blrc.ma.us>.
1995-09-30 07:02:00 +00:00
chopps
46b055b6dc
some style cleanup
1995-09-30 02:08:47 +00:00
chopps
5295a0c32a
add msc device
1995-09-30 01:54:00 +00:00
chopps
21575d71a5
changes for msc device
1995-09-30 01:52:37 +00:00
chopps
1683d8a23e
new 2232 multiport serial device from:
...
Rob Healey <rhealey@kas.helios.mn.org>, Jukka Marin <jmarin@teeri.jmp.fi>,
Timo Rossi <trossi@jyu.fi> and Zik
1995-09-30 01:50:50 +00:00
jonathan
8945da0c58
Add speed entries for 7200 and multiples.
...
Add as-yet-unused speed entries for a 1x SCC clock, up to 200 Kbits.
Remove old top-bit-means-delay code, since nothing seems to need it,
and it apparently partially broke lk-201 initialization anyway.
1995-09-29 21:55:19 +00:00
jonathan
ae1b64d888
Fix btoc()/ctob() typo in reading physical memory that stopped ps
...
from reading process argument lists.
Allow kernel-virtual memory reads to read the message buffer, since
dmesg needs it.
1995-09-29 21:53:29 +00:00
ragge
0b4e25a2c1
Arg to printf forgot.
1995-09-29 16:35:00 +00:00
ragge
24d550bffb
Some typos.
1995-09-29 16:33:38 +00:00
chopps
319c531354
move 040 to hp300 style, use new MI lance ethernet driver
...
a few minor fixes WRT prototypes.
if_le from Charles rest from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1995-09-29 13:51:30 +00:00
chopps
eab73b27b1
fix wrong arg to strncpy
1995-09-29 13:11:21 +00:00
thorpej
4a15671a68
Fix the declaration of compat_43_wait() (int * -> register_t *), pointed
...
out by Chris Demetriou.
1995-09-29 05:18:41 +00:00
phil
c9836835f4
Make it as lean as possible.
1995-09-29 04:16:48 +00:00
phil
475a548732
Move a #include to outside the #ifdef INET so it will compile without
...
INET defined.
1995-09-29 03:37:43 +00:00
jonathan
b543578236
Add a missing "nop" in a delay slot in the floating-point exception
...
handler. Gradual underflow and fp emulation now work correctly.
Proper denorms also fix strtod() inaccuracies and Gcc's "enquire" program.
1995-09-28 20:02:50 +00:00
phil
d7992eb61f
Update to correct load address.
1995-09-28 08:13:29 +00:00
briggs
d73008fe8b
Always announce it when loading miniroot.
1995-09-28 04:17:24 +00:00
briggs
b1d771eeb5
Simplify nubus interrupt routines a bit.
1995-09-28 04:11:18 +00:00
briggs
a9f0a2f9c4
Fix PR 1514 from Walter Ruetten.
1995-09-28 03:15:54 +00:00
pk
de4e651542
Careful with initializers.
1995-09-27 23:14:57 +00:00
thorpej
fbbf585f72
Remove spurious (and incorrect) prototype for swapon(), pointed out
...
by Chris Demetriou.
1995-09-27 20:30:17 +00:00
thorpej
42c10934c1
Fix typo in declaration of exit(), pointed out by Chris Demetriou.
1995-09-27 20:26:51 +00:00
thorpej
e1f1a3a9a7
Enhancements to the bpf from Stu Grossman <grossman@cygnus.com>:
...
* grok FIONBIO, FIOASYNC, and TIOC{G,S}PGRP
* add BIOC{G,S}RSIG; get/set the signal to be delivered
to the process or process group upon packet reception.
Defaults to SIGIO.
1995-09-27 18:30:37 +00:00
pk
691b9f2bfa
Avoid reading the filesystem superblock in bootxx; all info now prepared
...
by installboot (per Gordon Ross).
1995-09-27 09:03:13 +00:00
briggs
5a0bebbc54
Patch from Theo to finish clearing 040 kernel page tables.
1995-09-27 04:16:54 +00:00
briggs
232169396a
Bullet-proof a little.
...
Make some more pdma code conditional on USE_PDMA.
Handle transfers of size > MIN_PHYS.
1995-09-27 03:38:57 +00:00
thorpej
b93138b93d
Add another broken NEC CD-ROM drive to The List. Fixes PR #1451 .
1995-09-26 23:37:50 +00:00
thorpej
a47ab73248
memcmp -> bcmp. Fixes PR #1518 .
1995-09-26 22:56:54 +00:00
gwr
995b4710b8
Correct mapinfo for Multibus PROM devices.
1995-09-26 21:30:19 +00:00
gwr
50201d2bb5
Fix comment, add copyright.
1995-09-26 21:29:25 +00:00
pk
601a054fb3
Remove a sun3-ism.
1995-09-26 21:04:27 +00:00
phil
03fa08025b
Major update: Many changes from Matthias Pfaller.
...
* conf/DEFAULT: new file, default install kernel
* conf/INSTALL: +MSDOSFS, +NO_INLINE_SPLX, +RD_SIZE=2mb, +scn4/5
* conf/KLONDIKE: cosmetic changes
* conf/STEELHEAD: cosmetic changes
* conf/files.pc532: rd got a file of it's own
* dev/lpt.c: changes to support lower interrupt latency, packet input/output
is now done at spl0
* dev/ncr.c: changes to support the most recent atari version of the ncr5380
driver
* dev/ncr5380.c, dev/ncr5380reg.h: upgraded to most recent atari version,
memcpy -> bcopy.
* dev/rd.c: ramdisk driver
* dev/scn.c: by patching scndefaultrate, the kernel's default baud rate can
be changed with gdb
* include/psl.h: struct iv now protected by !LOCORE && _KERNEL
inlining of splx can be prevented with new kernel option NO_INLINE_SPLX
splx_di is like splx but leaves processor interrupts disabled
* pc532/autoconf.c: cosmetic changes
* pc532/conf.c: with rd entries
* pc532/intr.c: changes to support splx_di
* pc532/locore.s: ramdisk is no longer initialized
not splx, but rett is now used to reenable CPU interrupts when leaving the
interrupt service routine. This is necessary to prevent recursive interrupts.
* pc532/sys_machdep.c: memcpy -> bcopy
* pc532/mem.c: moved ramdisk to dev/rd.c
* stand/Makefile: boot is now loaded at 0x3eb800 instead of 0x363800
Use current form of libsa and libkern.
* stand/inflate.c: emit twiddle every 8k and not every 1k
* stand/rd.c: ramdisk starts at 0x288000
1995-09-26 20:15:57 +00:00
chuck
b3ecc4c310
make sure devopen() sets pd->devtype properly when BOOTXX is defined
...
(should be DT_BLOCK). otherwise the bootxx boot block will fail if
you are on a system with a v2 openprom [because it will not do the
v2_seek in obp_strategy()]. fixes the problem recently noted on
the port-sparc list by matthew green <mrg@eterna.com.au>. i tested
fix on a ss2 with a v2 prom.
1995-09-26 20:07:53 +00:00
thorpej
26419c5a8b
Don't declare Debugger(). It's handled in <sys/systm.h>
1995-09-26 19:31:15 +00:00
thorpej
249cddaaa7
Don't declare Debugger(). It's handled in <sys/systm.h>.
...
#include <sys/systm.h> where necessary, as suggested by Jonathan Stone.
Fixes PR #1511 .
1995-09-26 19:26:48 +00:00
thorpej
dd2f3dddef
Don't declare Debugger(). It's handled in <sys/systm.h>
1995-09-26 19:24:26 +00:00
jonathan
65c53f255c
Remove old .PATH directives that referenced libc source.
...
Libkern has its own copies of all the requisite source files.
1995-09-26 18:27:24 +00:00
hpeyerl
ddbb956f35
fixes a typo, the case where iomem is specified, but iosize is not, and
...
moves a couple of ee16 specific calls into a 'if ee16' protected block.
From Andrew Gillham <gillham@Digitron.COM>
1995-09-26 13:24:48 +00:00
gwr
3c868e07f9
New DVMA interface, and various cleanup.
1995-09-26 04:01:53 +00:00
gwr
48fc6c37a0
Correct child_return() so child is charged for its cpu time.
1995-09-26 03:53:46 +00:00
pk
f33cf7c909
Correct cgtwo address.
1995-09-25 22:33:37 +00:00
jonathan
f28ebc66ca
Fix SCC bug that broke getty on pmax SCC lines: if RAW and LITOUT were
...
both off, haracters with their top bit clear were interpreted as a delay.
This (strange) behaviour is still available if SCC_PARITY_MEANS_DELAY
is defined.
1995-09-25 22:10:56 +00:00
jonathan
95a27d405b
Update pmax kernel to compile with -Werror:
...
update MAXINE desktop bus driver to pass a softc to interrupt
handler. The softc is still statically allocated.
1995-09-25 21:12:33 +00:00
jonathan
ed4d846a84
Update pmax kernel to compile with -Werror:
...
Add prototypes to the driver switch for old-style 4.4bsd/pmax device drivers
(i.e., the old pmax SCSI drivers).
1995-09-25 21:10:03 +00:00
jonathan
51d59ca152
Update pmax kernel to compile with -Werror:
...
Fix the initializer of the prom bootinit() function, to take a char* that's
(presumably) the name of the file to boot -- even though it's not used.
1995-09-25 21:06:29 +00:00
jonathan
cd887a9930
Add "kvtophys()", which maps MIPS R2000 kernel-virtual addresses to physical addresses,
...
so they can (e.g.) be written to DMA mapping registers.
1995-09-25 20:36:23 +00:00
chuck
b47de9fb69
new "xy" disk device driver from me.
...
the "xy" driver runs Xylogics 450/451 SMD disk controllers.
1995-09-25 20:35:14 +00:00
jonathan
06bd2712e9
Update pmax kernel to compile with -Werror:
...
Update TURBOChannel and ioasic interrupt-establish routines to pass on their
device argument as a "void *", since that's how all the pmax interrupt handlers
are declared.
1995-09-25 20:33:26 +00:00
chuck
25563b1f82
add config info for "xy" xylogics 450/451 driver
1995-09-25 20:27:30 +00:00
chuck
8d19642cd6
add "xy" xylogics 450/451 config stuff
1995-09-25 20:20:27 +00:00
chuck
1779adf6be
minor cleanups:
...
- don't let pcyl go unassigned if we have a non-sunos disklabel.
if nothing else, guess pcyl = ncyl + acyl.
- don't use bogus disklabel data if disk label is invalid
(xdgetdisklabel() now returns if label was ok or not).
- move xddriver decl. before start of actual code (cleanup).
1995-09-25 20:12:44 +00:00
chuck
2aff99a206
bug fix: xddummystrat() was clearing all but B_BUSY when it should
...
have been clearing just B_BUSY (s/B_BUSY/~B_BUSY/). this
fixes hard hang when reading disklabel when booting system.
minor clean up: added a few prototypes and only fool with bootpath
if booting the system (in xdattach).
1995-09-25 16:02:09 +00:00
jonathan
27361456c5
Force a delay after calling SCC_WRITE_DATA() to give the chip
...
registers time to settle. DELAY(2) is reportedly enough. Without the
delay, output characters are occasionally doubled.
1995-09-25 04:30:43 +00:00
jonathan
7bb66692c0
Add fine-grain clock code which uses the 25 MHz TURBOChannel bus-cycle
...
counter on 5k/240s to interpolate to microsecond-resolution clock
in microtime(). Only the "rev B" ASIC in 5k/240s is known to have
this counter; other models may or may not. This gives microsecond
resolution at user-level, and up to 40ns resolution (modulo the
nominal 5(?) 40MHz cpu cycles for reads to complete) in the kernel.
Change the IOASIC reset function to set up the DMA mapping for the
53c94. Allocate 16 Kbytes of DMA buffer for 53c94 ASCs under an IOASIC,
as the 3MAX baseboard and TC options have 128 Kbytes of static
bounce buffer, and the drivers really _should_ support 16Kbyte
I/O requests. (They don't always.)
Give the LANCE a hard reset on 5k/240s, just to be on the safe side.
(the 5k/240 I use sometimes reported errors at boot time.)
1995-09-25 04:21:01 +00:00
jonathan
462ef77234
Use the new "struct rconsole"; changes I apparently forgot to commit with
...
pmax/dev/fb.c.
1995-09-24 23:13:00 +00:00
pk
825bd034de
Move pseudo swap block device to major 4 to make way for `xy'.
1995-09-24 20:45:27 +00:00
briggs
4d52f57876
Add Technology Works ethernet card. From
...
Kazunari Nakamura <kazu@nkk.co.jp>.
1995-09-24 14:13:56 +00:00
thorpej
a33b9f4fdb
Assume primary swap is `b' partition, not `root partition + 1'.
1995-09-24 02:18:11 +00:00
chuck
4408ec71bf
init bad144 table before we actually try and read anything from the
...
disk, rather than init'ing after reading block 0 [in case we get an
error reading block zero].
1995-09-24 00:27:59 +00:00
leo
230fb12a7a
Add abs() function as an 'inline'. The atari-port needs it since the
...
-fno-builtin is used in the kernel Makefile.
1995-09-23 20:35:47 +00:00
leo
44561deb01
Add support for the FX-card - Falcon mem. extension - (Nat!)
1995-09-23 20:31:21 +00:00
leo
7af927b56d
Make sure the prototypes and inline definitions are included.
1995-09-23 20:29:16 +00:00
leo
afea10f476
Correct mapping for new (iso-8859-1) fontsets (Thomas Gerner).
1995-09-23 20:27:15 +00:00
leo
f28a41635b
Make them compliant to iso-8859-1 (Thomas Gerner).
1995-09-23 20:25:34 +00:00
leo
c150cc4d37
PROF -> GPROF
1995-09-23 20:23:28 +00:00
leo
e44fc4282e
Use -msoft-float as suggested by Gordon Ross.
1995-09-23 20:22:01 +00:00
thorpej
3810bc32eb
Compile the system installation program and install it in /usr/mdec/rbootd
...
as SYS_INST.
1995-09-23 17:40:54 +00:00
thorpej
a8c323442d
Add a standalone system installation program. Currently implements:
...
* Prompt user for disklabel information and label disk.
* Copy miniroot image from NFS server to `b' partition.
* Boot kernel in miniroot image into single-user mode.
Hooks for tape support are there, but the meat for that isn't implemented yet.
1995-09-23 17:38:51 +00:00
thorpej
a35f639de0
If compiled for the system installation program, prompt for myip, gateip,
...
netmask, serverip, and path rather than using rarp/bootparam.
Catch up with libsa changes.
1995-09-23 17:31:10 +00:00
thorpej
d429f2e11f
Re-arrange a mite; for the system installation program. Catch up with libsa
...
changes.
1995-09-23 17:28:11 +00:00
thorpej
188f6e6912
Add *close() routines. Basically, zaps softc structure so that partition
...
information will be re-loaded upon next open.
Catch up with libsa changes.
1995-09-23 17:19:58 +00:00
thorpej
b8e9fb1b0b
Catch up with libsa changes.
1995-09-23 17:17:03 +00:00
thorpej
df8c694f7e
Add an inet_addr() function; return network-order numeric representation
...
of an IP address from `aa.bb.cc.dd'-style text input.
1995-09-23 17:14:40 +00:00
ragge
2572267bae
relocation_info added.
1995-09-23 14:57:40 +00:00
chopps
96163f6aa5
fix typo
1995-09-23 13:42:03 +00:00
chopps
40a6506694
add memcpy entry
1995-09-23 08:14:36 +00:00
gwr
23ee56022d
Cleanup, and catch up with libsa changes.
1995-09-23 03:42:17 +00:00
gwr
13d9b9d700
Sync up with the sparc version.
1995-09-23 03:40:28 +00:00
gwr
6f2a9404ee
More cleanup: change some private types to eliminate casts,
...
replace some "goto xxx" with return(-1). (mostly cosmetic)
1995-09-23 03:36:06 +00:00
gwr
bdad6c4104
Fix/improve some comments.
1995-09-23 03:31:50 +00:00
briggs
e23598f24f
Much improved pdma transfers.
...
Still not nearly as fast as FWB's drivers under the MacOS.
Uses the "blind" transfer method instead of polled pdma.
1995-09-23 01:11:42 +00:00
jonathan
21f7aa38f6
Update the pmax rcons pseudo-device driver to work with the sys/dev/rcons
...
version of rconsole.
1995-09-22 23:48:20 +00:00
phil
7ed7d6148f
Move the C struct to the properly protected place.
1995-09-22 23:19:30 +00:00
thorpej
42662e7b9c
Need <sys/mount.h>
1995-09-22 15:29:33 +00:00
thorpej
f03897c2b6
"Oops." Get the declaration of sys_arch() correct.
1995-09-22 15:27:10 +00:00
cgd
08cae70f24
fix annoying but non-critical rounding but in ttyinfo(). (If
...
microseconds goes over 10^6 when rounding, increment seconds.)
1995-09-22 00:11:35 +00:00
thorpej
1955514b6c
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-21 23:39:20 +00:00
jonathan
d1234038d4
Rename the force-all-pending-writes to memory function to wbflush().
...
Keep the old Mach-derived name "MachEmptyWriteBuffer()" as an alternate
entry point.
1995-09-21 23:28:31 +00:00
thorpej
7c36f209e7
Need <sys/mount.h> now.
1995-09-21 22:26:04 +00:00
briggs
fc919965e8
Make sunos_sigreturn() match prototype.
1995-09-21 11:41:04 +00:00
briggs
01be7f2b8c
Need sys/mount.h for fhandle_t.
1995-09-21 11:27:43 +00:00
briggs
4a9cf8407c
Fix a warning.
1995-09-21 11:13:27 +00:00
thorpej
ddf9c6da16
Add 4 vnds to each, add 4 ccds to GENERIC, update BASALT to match
...
current reality.
1995-09-21 07:27:52 +00:00
briggs
fbd9919364
Fix warning and use __P for prototypes.
1995-09-21 03:36:25 +00:00
briggs
b895726b5c
MACCCLASSIC is Color classic. And it's more like an LC than hopeless.
1995-09-21 01:56:31 +00:00
jonathan
0641f09bfb
Include <sys/mount.h>, as the new <sys/syscallargs.h> won't compile without it.
1995-09-20 23:33:25 +00:00
briggs
de36f970fb
Fix a few oversights. From Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>
1995-09-20 13:03:21 +00:00
jonathan
2991316b06
Remove unecessary references to arch/sparc/rcons/raster.h, and some other lint.
1995-09-20 05:36:13 +00:00
jonathan
3589d052f0
Add gory debugging, because I don't have access to a MAXINE to test
...
the baseboard framebuffer driver with rcons and it reportedly didn't work.
1995-09-20 05:19:54 +00:00
jonathan
d0c0f7f738
Fix initialization of MAXINE xcfb as console.
1995-09-20 05:13:06 +00:00