Commit Graph

9433 Commits

Author SHA1 Message Date
cgd 7a34e263d7 "goto start" after sleeping for locked iso_node in cd9660_lock, like
in ufs_lock.
1995-11-08 22:26:24 +00:00
pk c2cd05605d UFS => FFS conversion. 1995-11-08 09:09:20 +00:00
gwr 3c996d6b06 ufs ==> ffs 1995-11-07 23:01:40 +00:00
gwr dd962ebbf6 Make sys_mount accept "ufs" as an alias for "ffs" 1995-11-07 22:41:02 +00:00
gwr 883be4be3a ufs ==> ffs 1995-11-07 22:27:21 +00:00
pk 54ec9fb697 Correct test for sun4 machines (thanks Chuck).
Since uname currently does not allow to discriminate different sparc
models, we use `sysctl.hw.cpumodel' to do this somewhat heuristicly:
if the returned strings starts with "SUN4-" a sun4 architecture is
assumed. This information is used to determine whether or not to strip
the a.out header off the 1st-stage bootblocks.
1995-11-07 11:45:24 +00:00
leo 3b8542c63a The Falcon needs a delay after writing the dma_data register (Thomas Gerner) 1995-11-06 21:13:38 +00:00
thorpej 20783f6b85 Bring in several changes from the ccd:
* Be a bit better with prototypes
	* Use struct dkdevice in vnd_softc.
	* Prevent the unit from being unconfigured while open.
	* Implement a simple locking mechanism and use it for sanity's
	  sake.
Still needs more work; needs to support disklabels and the like.
1995-11-06 20:28:09 +00:00
thorpej 664cb04670 Fix a race condition where if a process is asleep waiting on an
exclusive lock of a ccd device while another process is unconfiguring
that same device, the first process would never awaken (unless interrupted).
1995-11-06 19:58:01 +00:00
ws 29fff9256a Don't forward credentials to bread, it makes nfs panic
(Of course, nfs shouldn't rely on the credentials not being referenced)
Don't give directory entry to deget, it could result in a deadlock
Use device blocks, not clusters for logical block numbers
1995-11-05 18:47:48 +00:00
briggs f028be21e6 Update from Ken Nakata. 1995-11-05 04:23:00 +00:00
briggs 8b79bcb9e7 Fixes from Ken Nakata. Mainly renaming debug_level to fpu_debug_level. 1995-11-05 00:35:09 +00:00
ws 77daf1e361 Fix cookie handling 1995-11-03 19:36:41 +00:00
ws e0f9d74ef5 Really don't generate long names when mounted with -s 1995-11-03 17:29:53 +00:00
pk 996526aa02 Make error recovery actually work, i.e. don't hang on SCSI bus resets
and re-synchronize before re-scheduling pending operations.
Things seem to be a fair bit stabler now.
1995-11-03 16:47:43 +00:00
pk bbdb422873 Stop DMA before resetting 1995-11-03 16:34:12 +00:00
ragge 3095b6514c No need anymore. 1995-11-03 14:34:52 +00:00
ragge 46e32a9703 No need for this file anymore; it's defines moved to other places. 1995-11-03 14:29:23 +00:00
briggs cc272f90a1 Add in NetBSD id string. 1995-11-03 04:51:51 +00:00
briggs 5b38a18f42 include files.fpe instead of just fpu_emulate.c--to get the new fpe code. 1995-11-03 04:50:21 +00:00
briggs 526615e592 Add NetBSD id string and update instructions. 1995-11-03 04:48:22 +00:00
briggs fc8793fb3d Still incomplete, but much more complete FPE from Ken Nakata
<kenn@remus.rutgers.edu>.  This emulator does not yet emulate
the following functions:
	FSINH, FETOXM1, FTANH, FATAN, FASIN, FATANH, FSIN, FTAN,
	FETOX, FTWOTOX, FTENTOX, FCOSH, FACOS, FCOS, FSINCOS
It is sufficient, however, to allow programs like df, w, and newfs,
to run to completion with correct results.
Portions of this code were based on the sparc fpe and on initial
work by gwr.
1995-11-03 04:46:55 +00:00
thorpej f85819bc44 In ccdstart(), only translate the block number from partition-relative
to absolute if part != RAW_PART.
1995-11-03 02:35:54 +00:00
briggs 3074f94137 Remove ser1 from init list. 1995-11-01 04:59:31 +00:00
briggs 9a1fb2674a Fixup error/debugging message. 1995-11-01 04:59:03 +00:00
briggs c587e77144 Remove bogus assignment. 1995-11-01 04:58:21 +00:00
briggs 819cd49aa7 Remove -fno-builtin 1995-11-01 04:53:34 +00:00
briggs 4d13774bbc Rearrange a bit. bpfilters -> 16 and ae0/ae1 -> ae*. 1995-11-01 04:52:46 +00:00
briggs 680ada5add port-mac/1707: mac68k mouse drag problems with Cmd+arrow keys
from Ken Nakata <kenn@remus.rutgers.edu>
1995-11-01 04:40:21 +00:00
pk 8d78a257c0 More rogues. 1995-11-01 01:15:07 +00:00
hpeyerl 5d67fa8cb9 Taking out the trash. 1995-10-31 18:03:39 +00:00
briggs 8218c4005c Pull in all but one of Leo's changes from the atari copy. 1995-10-31 15:32:35 +00:00
gwr 7ff18ba0a2 The xy goes on VME16, not VME32. 1995-10-30 21:15:40 +00:00
gwr 1195faa6f4 Add the function isbad(), needed by xd/xy drivers. 1995-10-30 20:59:27 +00:00
gwr b3a6cbaeb0 New from Chuck Cranor: drivers for SMD disks!
xd: Xylogics 753/7053 SMD disk controller
xy: Xylogics 450/451 SMD disk controller
These now compile, but have not been tested.
1995-10-30 20:58:04 +00:00
ws 9c20d7c675 Win95 ignores case on lookup 1995-10-30 19:06:15 +00:00
ragge 8010d89785 Must use PAGE_SIZE family instead of NBPG family.
(phys page size != virt page size)
1995-10-30 16:27:56 +00:00
gwr 93d0f65970 New SCSI driver for the NCR5380, by David Jones.
Does DMA with interrupts.  Much faster than our old
driver which did only PIO transfers. (Thanks David!)
Could be used on the amiga, and probably others...
1995-10-29 21:19:06 +00:00
gwr 1e3a9a42c6 Fix previous change that broke kd console 1995-10-29 04:15:59 +00:00
pk c0a156c9fd Map pixels in VME32 space 1995-10-28 23:15:16 +00:00
jtc 014044ef1a Fix formatting 1995-10-28 20:43:49 +00:00
tls 20fd1b6a7f Start to sort out install kernel size and bt/aha issues. Will be revised. 1995-10-28 04:06:21 +00:00
tls 488b27678f The INSTALL kernel is broken and will be replaced by split INSTALLAHA/INSTALLBT. 1995-10-28 03:55:10 +00:00
gwr 57a52744c1 Fix names (vtrace ==> sys_vtrace, etc.) 1995-10-27 15:58:23 +00:00
gwr f966527839 Work around the LANCE Rev. C bug in a way that does not cause error
messages when BPF puts the interface in to promiscuous mode.
1995-10-27 15:53:39 +00:00
gwr 4671e1d753 Add coyright, id string; fix comments 1995-10-26 15:46:24 +00:00
gwr c35fd76e91 Fix a comment 1995-10-26 15:38:45 +00:00
gwr e3c55a3fdd Need to include <vm/vm.h> 1995-10-26 14:52:33 +00:00
jonathan cf5cff6ce5 Change PROM callback from "strcmp" to "_strcmp", which is what
dec_prom.h uses.
1995-10-26 01:39:49 +00:00
jonathan d3d55dedb5 Macro definitions of ntohs() and ntohl() for pmax bootblocks. 1995-10-26 01:31:09 +00:00
jonathan 8e3a40d820 Commit missing modified copy of (old) sparc filesystem.c, that has
a comple-time option to support a subset of UFS operations, to build
small bootblocks.
1995-10-26 01:29:34 +00:00
mycroft baf5b9b139 Fix oversight in last change; some BIOSes leave junk in %fs and %gs that must
be cleared.  Pointed by Alasdair Baird.
1995-10-24 16:27:54 +00:00
pk e4fcc8ab5a Move DMA chip draining to dmaintr() and drain when a (possibly partial)
transfer ends in stead of doing it before starting a new transfer.
Use a different CSR bit to wait for "chip not busy" (may be necessary to
make this conditional on chip revision).
1995-10-24 16:26:54 +00:00
pk a3f2bf19e4 Various:
- make esp_poll() approximate the given timeout value.
	- introduce esp_abort(), and use it for timed out commands; make		  targets and driver less confused.
	- make {free,ready,nexus}-list management somewhat more coherent.
	- make sure we only proceed down the state machine in espintr()
	  if there really is an interrupt pending.
1995-10-24 16:03:57 +00:00
pk dc3c0d7db7 Define VIDEO enable bit (per Jason Thorpe; PR#1672). 1995-10-23 23:36:28 +00:00
pk 7a9ddaff33 On-board bwtwo diddles a system enable register bit for video, per Jason
Thorpe (PR#1672).
1995-10-23 23:35:03 +00:00
gwr f2345fb358 Use correct size access (char,short,int) in db_read_bytes, db_write_bytes
otherwise access to some device registers will give misleading results!
(I learned this the hard way while debugging the NCR SCSI driver...)
1995-10-23 18:40:35 +00:00
pk 4ad1c05d71 DV_NULL should be DV_DULL. 1995-10-23 15:42:50 +00:00
pk bcff7be6b7 DV_DISK => DV_NULL (from Mike Long; PR#1607). 1995-10-22 20:45:07 +00:00
pk 5e55f88874 Remove `-fno-builtin'. 1995-10-22 17:36:33 +00:00
mycroft d67fb08153 Make sure we free the pathname buffer in all error cases. 1995-10-22 08:20:44 +00:00
thorpej af18124282 We no longer need -fno-builtin; syscall namespace has been cleaned up a bit. 1995-10-22 06:05:21 +00:00
christos 16c4374c1f Make the ktrace code emit a record that indicates the current emulation
every time there is an attach or detach event.
1995-10-22 00:35:06 +00:00
jtc 1fa962ddd0 netbsd.warped.com aka. {ftp,sup}.netbsd.org 1995-10-20 21:24:37 +00:00
ragge 440b596a77 Added M_OP_POS (positioning tape). 1995-10-20 13:51:56 +00:00
ragge b57ff30a87 Added #ifdef _KERNEL around definition of struct rpb. 1995-10-20 13:47:27 +00:00
ragge ad3443e06c Additions to be able to write to massbuss disks standalone. 1995-10-20 13:43:43 +00:00
ragge fbc5d6e054 SA_LIB -> SALIB
Include rpb.h. Typeclash fixes.
Removed #include of non-existing file.
1995-10-20 13:35:41 +00:00
ragge 5d49d3ac8f Use macros.h when STANDALONE is defined. 1995-10-20 12:55:06 +00:00
chopps b2d4fa2dd3 cleanup warnings (fixes pr#1642) 1995-10-20 10:08:24 +00:00
cgd 40a4907f5e oops; i forgot these u_int -> size_t conversions. 1995-10-20 01:35:25 +00:00
cgd 6b49a2ceed copy from libkern 1995-10-20 01:16:02 +00:00
cgd 35742ffe0a use NetBSD RCS id format. use bzero.S, not bzerro.c 1995-10-20 01:15:37 +00:00
cgd 47667c7df1 set, don't add to, CFLAGS from KERNCFLAGS. Do assignment of CC and
CFLAGS earlier, so that the arch-specific Makefile can add to them.
1995-10-20 01:10:06 +00:00
cgd 51f39e4840 fix prototypes here, to match u_int->size_t changes in ufs.c 1995-10-20 00:54:17 +00:00
cgd d7a207fd49 update from libc 1995-10-20 00:53:28 +00:00
cgd 6c46625cf7 cast pointer to long, not int 1995-10-20 00:47:47 +00:00
cgd 2677a05d99 fix spacing in header 'room to leave' comment 1995-10-20 00:46:30 +00:00
cgd e7290be2cd add prototypes for static functions. make ffs_oldfscompat static.
fix some arguments and structure members, in recognition of the fact
that (u_int == u_long == size_t) is not true on all systems.
1995-10-20 00:42:21 +00:00
cgd d71e8d0d69 set, don't add to, CFLAGS from COMPATCFLAGS 1995-10-20 00:34:15 +00:00
pk 2f9169d20b Correct NE7CMD_FORMAT command (from John Kohl; PR#1637). 1995-10-20 00:02:20 +00:00
thorpej 62150b43b1 Truncate the incoming packet if it doesn't fit into the buffer. 1995-10-19 18:43:27 +00:00
jtc 84714731d3 protect sys/wait.h against multiple inclusion (Matt Green; PR #1636) 1995-10-19 08:14:18 +00:00
thorpej ef52ec31c1 Recompile genassym if the Makefile changes. 1995-10-18 22:50:15 +00:00
pk bbfd54d128 Merge from netbsd-1-1 branch: kgdb_debug_panic decl; PR1633 1995-10-18 21:54:34 +00:00
gwr 126ecc3dda Explain why sun3_context_equiv() can not just call set_segmap_allctx(). 1995-10-17 23:16:40 +00:00
gwr 9182ffe624 Get rid of an extra twiddle() call (ufs.c does it.) 1995-10-17 23:07:19 +00:00
gwr ca022f8909 Re-write of tapeboot, using a "rawfs" abstraction to hide the fact
that the device only supports block access.  (Even works now!)
1995-10-17 22:58:10 +00:00
jonathan 3b8faec21d Initialize pointer to the fb method table. Not initializing the
method table for the 2100/3100 fb caused a panic when an X server started.
1995-10-16 22:28:36 +00:00
thorpej 43358aae60 Deal with vendor, product, and revision strings properly. 1995-10-16 08:51:49 +00:00
mycroft c7f52bfe3f Fix error pointed out by GCC 2.7. 1995-10-16 05:28:58 +00:00
mycroft c32738aa00 Fix nits pointed out by GCC 2.7. 1995-10-16 05:28:14 +00:00
thorpej cbef9e5129 Add missing spindle synch control, rotational offset, and RPM members
to the rigid geometry mode page.  These missing members are at the
end of the page, in space wich was previously marked "reserved".
1995-10-15 23:32:02 +00:00
mycroft 61d3ef1018 Fix small oversight. 1995-10-15 22:09:45 +00:00
mycroft f096f370fb Use SET(), CLR(), and ISSET() macros.
Rename CFCR to LCR, and cache its value.
Check MSR before transmitting, for better flow control.
Preserve LCR_SBREAK inside comparam().
1995-10-15 19:43:04 +00:00
ws a96f4bc2fc Add support for Win'95 long filenames 1995-10-15 15:34:19 +00:00
ws c089b09953 Add support for Win'95 long filenames to msdosfs 1995-10-15 15:33:26 +00:00
thorpej 5dcaa0b51c Be a tad bit more informative when the drive is attached. Print geometry
info when appropriate, because, darn it, it's useful.
1995-10-15 10:03:18 +00:00
mycroft 686dddaff9 Reran makesyscalls.sh. 1995-10-15 06:13:56 +00:00
mycroft c3779c515d Fix typos. 1995-10-15 05:58:44 +00:00
mycroft 5a227363fd Fix problem reported by r_friedl@informatik.uni-kl.de; when LDT is resized,
the wrong amount of memory is freed.
1995-10-15 05:48:08 +00:00
mycroft e964003409 Rename some variables for consistency. 1995-10-15 05:43:49 +00:00
mycroft 2d1739cbe1 Implement VOP_BWRITE() using vn_bwrite(), per r_friedl@informatik.uni-kl.de. 1995-10-15 05:18:12 +00:00
mycroft e8011301bf Style police. 1995-10-15 04:18:27 +00:00
briggs 47c507f8fd SUNOS_SYS_sunos_sigreturn -> SUNOS_SYS_
sigreturn.
1995-10-15 03:01:57 +00:00
christos 81ae32e332 syscalls.master was changed. 1995-10-14 20:26:39 +00:00
christos a4e2f7532a - Added msgsys, shmsys and semsys... MITSHM needs shmsys, so X applications
that used that would fail.
- Propagated all the fixes from the fully prototyped kernel.
1995-10-14 20:24:14 +00:00
leo ebc6d5a705 Use general bound-check function. 1995-10-14 20:17:46 +00:00
fvdl 6ce6eef6d8 child_return broke Linux fork() 1995-10-14 14:06:16 +00:00
leo 79053fd0de Allow only transfers that are a multiple of DEV_BSIZE when doing 'raw' I/O. 1995-10-14 13:04:19 +00:00
ghudson d61f235615 Add cookie support. Stash cookies in the word prior to the end of
each entry, and read them out in nfs_readdir().

Caveat: our current caching method for directory blocks uses the
server offset of the first directory entry as an identifier, so a
Linux emulation getdirentries() will wind up retrieving one block from
the NFS server for each directory entry, unnecessarily thrashing the
cache.  The situation isn't as bad for other emulations.

Instead of getblk(), we need to write a routine to scan each cache
block associated with vp to find a cookie that matches at some
directory entry.  Some later time.
1995-10-14 00:56:07 +00:00
gwr 6af0af5daf Change the interface to prom_iopen() slightly, for tapeboot. 1995-10-13 21:44:57 +00:00
gwr 52f39566b5 Add tapeboot, make ${SA_PROG}.bin padded to a block boundary. 1995-10-13 21:44:08 +00:00
gwr c4e07b055f Bump version number. 1995-10-13 21:33:09 +00:00
gwr c890f5c659 Boot program to help load tape kernels.
(You can even choose a tape segment!)
1995-10-13 21:27:30 +00:00
gwr 444e2789c6 Add quirk entries for Wangtek SCSI tapes. Also, add entry for
Tandberg 3800 (fixes PR#1592 - from Jochen Pohl).
1995-10-13 20:01:03 +00:00
gwr df737690d7 Remove (again) things accidently revived by cvs tag... 1995-10-13 19:37:06 +00:00
chuck 54606ca765 sync with sun3 version and libsa changes 1995-10-12 22:48:20 +00:00
thorpej 89d4987e5d Fix bad pointer deref, memory leak, and geometry calculation, pointed
out by Jochen Pohl in PR #1588.  Change the interleave index to an
array of ints rather than an array of chars to avoid losing in the event
one has more than 127 components.
1995-10-12 21:28:32 +00:00
chuck bb184934d0 sync with sun3 version and libsa changes 1995-10-12 20:39:49 +00:00
chuck 3cbeee1f5b changed sysarch() to sys_sysarch() 1995-10-12 20:03:39 +00:00
chuck ab55ab9c8c changed blkclr to bzero 1995-10-12 20:02:19 +00:00
chuck 31552196e9 remove bzero/strlen/bcmp as they are now in libkern 1995-10-12 20:00:40 +00:00
mycroft 086845d5d3 Move the initialization of proc0's TSS and LDT to the end of cpu_startup(),
and switch to dynamically allocating the TSS.
1995-10-12 17:56:36 +00:00
briggs 67e41c3280 Remove extra serial device--forgot to check this in earlier.
The serial device now handles both channels.
1995-10-12 17:39:45 +00:00
jtc af8ead3302 Fix from Jochen Pohl which fixes case where quad multiply
goes awry if bit 31 of at least one of the operands is set
(PR #1591).
1995-10-12 15:05:35 +00:00
chuck 6323b1197a changed SUNOS_SYS_sunos_sigreturn to SUNOS_SYS_sigreturn. 1995-10-11 23:52:35 +00:00
mycroft 50f83bdbdf Maintain a free list. 1995-10-11 23:39:08 +00:00
pk 600acb3b06 Conditionalize ancient `@' and `#' erasors. 1995-10-11 21:16:57 +00:00
mycroft 2765bc7b44 Go back to statically allocating the GDT entries for proc0. 1995-10-11 19:32:31 +00:00
mycroft c9b339fcd1 Clean up deleted files. 1995-10-11 18:51:50 +00:00
mycroft 059cb84d53 Fix typo. Also, remove diagnostic in svr4_sys_sysarch(). 1995-10-11 17:04:11 +00:00
pk ce2afd8d64 Sync filesystem before running installboot. 1995-10-11 13:32:57 +00:00
pk b60d6eae12 Gets NFS-mounted /emul/sunos going again by faking readdir cookies if
not supported by VOP_READDIR().
1995-10-11 12:50:23 +00:00
mycroft ddbde6d166 Remove reference to dead variable. 1995-10-11 06:24:28 +00:00
mycroft fda13ac9c6 Clean up deleted files. 1995-10-11 05:28:06 +00:00
phil 715002290d remove old 1.0 distribution configs, tune 1.1 kernel configs. 1995-10-11 04:53:57 +00:00
mycroft 72805df917 Various changes from John Kohl and me:
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.
1995-10-11 04:19:29 +00:00
gwr 22bcf4e552 New function: set_segmap_allctx() 1995-10-10 21:38:56 +00:00
gwr 1b2cf12fa7 Need to use set_segmap_allctx() on kernel-space segments.
(Thanks again to David Jones!)
1995-10-10 21:37:29 +00:00
gwr 4575a77421 Get rid of things now in libkern: bzero, bcmp, strlen 1995-10-10 21:35:42 +00:00
gwr 464d1686fd sysarch --> sys_sysarch 1995-10-10 21:34:50 +00:00
gwr 127019022a SUNOS_SYS_sunos_sigreturn -> SUNOS_SYS_sigreturn 1995-10-10 21:33:33 +00:00
gwr f1b8ad3645 New function: set_segmap_allctx() 1995-10-10 21:29:02 +00:00
gwr dda519e3d9 The previous hack to save two instructions when the
return value of splx() was ignored did not prevent the
optimizer from re-ordering the asm statements! (Yikes!)
Revert this to the old, single asm statement method.
Thanks VERY MUCH to David Jones for finding this!
1995-10-10 21:28:00 +00:00
gwr facfdf5c60 Use sys/scsi/files.scsi 1995-10-10 21:25:29 +00:00
gwr b797d6e69d Cosmetic: Kill trailing whitespace, etc. 1995-10-10 21:18:01 +00:00
pk 64a90cd0b0 Check input channel in gettick(); for `L1-A' processing. 1995-10-10 20:11:33 +00:00
pk ebe37d8041 We don't need `rem.o'. 1995-10-10 20:07:54 +00:00
mycroft 28484180c7 Fix minor oversight. 1995-10-10 18:27:25 +00:00
mycroft dbce1a97aa Add specs for ahc driver. 1995-10-10 12:16:54 +00:00
phil 326e5742ac Disable interrupt to avoid a bug. This makes the "new ncr" driver
stable enough to use in the distribution.  We still need to find out
where the bug is when interrupts are enabled.
1995-10-10 08:08:01 +00:00
mycroft eb44441b87 Pull in microcode dependencies. Remove -fno-builtin. 1995-10-10 05:58:00 +00:00
mycroft 5d9ff18d18 Switch to user code and data selectors in the GDT while handling signals. 1995-10-10 04:54:18 +00:00
mycroft 25f53a986f Add USERMODE() and KERNELMODE() macros, and use them. 1995-10-10 04:45:03 +00:00
briggs 712a3f32c4 Nuke blkclr and use thereof. 1995-10-10 04:14:18 +00:00
briggs 2738554927 Get rid of libkern duplicates. 1995-10-10 03:49:04 +00:00
briggs 5e13eea9b1 sysarch -> sys_sysarch 1995-10-10 03:48:33 +00:00
briggs fcb8923ffa Remove extra reference to LIBKERN. 1995-10-10 03:47:59 +00:00
mycroft 3450507404 Make sure we only schedule one timeout to refill the mbuf queue. 1995-10-10 03:11:28 +00:00
mycroft 92221a1399 Return EINVAL if something other than a whole number of blocks is requested. 1995-10-10 02:52:56 +00:00
mycroft ec64328797 Check for todo<0, done<0, and done>todo. 1995-10-10 02:51:45 +00:00
mycroft d279b4198a Convert VMIN and VTIME. 1995-10-10 02:35:16 +00:00
thorpej 54ed756bc4 Add another dca and grf 1995-10-10 02:12:37 +00:00
mycroft 4fd4545646 Fix #include misordering. 1995-10-10 01:40:13 +00:00
mycroft e6d9bc8787 Fix typo. 1995-10-10 01:34:37 +00:00
mycroft 5a44558c93 Reran makesyscalls.sh. 1995-10-10 01:33:26 +00:00
mycroft 44a38d8470 Add aliases for all compat functions. 1995-10-10 01:32:53 +00:00
mycroft 37758b3f84 Minor change. 1995-10-10 01:30:25 +00:00
mycroft 090f48526e Add ahc and COMPAT_FREEBSD. 1995-10-10 01:29:15 +00:00
mycroft 2dd293d3c3 Add hooks for COMPAT_FREEBSD, from Noriyuki Soda. 1995-10-10 01:26:36 +00:00
mycroft 0ad97bc5c9 FreeBSD binary compatibility module, from Noriyuki Soda. 1995-10-10 01:22:31 +00:00
mycroft a91100d6af Oops; remove something. 1995-10-10 01:20:55 +00:00
mycroft e1ac4c6362 Output of makesyscalls.sh. 1995-10-10 01:20:11 +00:00
mycroft 63bb46e733 FreeBSD binary compatibility module, from Noriyuki Soda. 1995-10-10 01:19:24 +00:00
thorpej c819cd372d In lkmioctl(), disallow LMRESERV, LMLOADBUF, LMUNRESRV, LMREADY,
and LMUNLOAD if securelevel > 0.  From Matthew Green <mrg@eterna.com.au>
1995-10-10 00:23:20 +00:00
thorpej d0c7d0fdd6 Add missing F_SETLKW case to svr4_sys_fcntl(), from Niklas Hallqvist
<niklas@appli.se>.
1995-10-09 23:56:17 +00:00
pk 4dcb5917b8 Brr.. libkern.o is way too big for our bootxx.. 1995-10-09 23:25:54 +00:00
pk be2f4294bf Add `fd' to list of possible boot devices. 1995-10-09 22:34:03 +00:00
pk c4dc969b09 Point `bootdv' at the disk device instead of the controller (from Jason Thorpe). 1995-10-09 22:33:07 +00:00
chopps 29dcca9ffe fix use of uninit vars from Bernd Ernesti <bernd@arresum.inka.de> 1995-10-09 19:26:15 +00:00
mycroft 0fff06cb86 Remove struct sunos_dirent from here. 1995-10-09 16:54:48 +00:00
chopps 11c134fb80 fix typo 1995-10-09 15:53:39 +00:00
pk 53eb8f8175 RASTERCONS now works on sun4's too. 1995-10-09 15:39:34 +00:00
chopps d9a781419d revert last commits was a mistake 1995-10-09 15:23:22 +00:00
chopps 78bd894529 add prototypes for isr stuff fixes pr# 1284 and 1569 1995-10-09 15:19:58 +00:00
chopps 0edda525b9 fix keymap (fixes pr#1254) from Blaz Zupan <blaz.zupan@uni-mb.si> 1995-10-09 14:27:18 +00:00
mycroft 3dc2e10405 Fix the inode calculation in kernfs_getattr(). 1995-10-09 14:25:02 +00:00
mycroft 1e583dfb19 /dev/std* are of type DT_LNK. 1995-10-09 14:20:04 +00:00
chopps 3973aeb080 fix hang bug from Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de> 1995-10-09 14:05:24 +00:00
mycroft d60bb4a465 Use the index number as the cookie, rather than multiplying by UIO_MX. 1995-10-09 14:03:32 +00:00
chopps dea30dfde9 make work with newer grfconfig now in /usr/sbin. from
Bernd Ernesti <bernd@arresum.inka.de>
1995-10-09 14:02:32 +00:00
briggs f5fae9d016 Port of Sun3/Sparc zs driver from wrstuden@loki.stanford.edu
(Bill Studenmund).  Should be massaged into machine independence
for 1.2.
1995-10-09 12:42:16 +00:00
pk e3bc0dcc21 Add DIOCEJECT. 1995-10-09 12:00:18 +00:00
mycroft b12f4a4409 For now, return EINVAL if the client needs cookies. 1995-10-09 11:25:30 +00:00
mycroft 652c9eff74 Use cookies for directory offset, mostly from Greg Hudson. 1995-10-09 11:23:57 +00:00
mycroft 1dde00e8a4 Correct a comment regarding cookies, from Greg Hudson. 1995-10-09 11:19:32 +00:00
mycroft bcaf2bca34 Add support for cookies, mostly from Greg Hudson. 1995-10-09 11:18:51 +00:00
mycroft b216bead49 Add an Adaptec 2940 driver, by John Aycock and Justin Gibbs, ported to NetBSD by Stefan
Grefen, with several bug fixes by me.
1995-10-09 09:49:30 +00:00
thorpej ab16c2efa6 Remove unneeded RCS ids. 1995-10-09 08:07:37 +00:00
thorpej 2d5f7a7b07 Pass correct number of arguments to hpibgo(). 1995-10-09 07:57:43 +00:00
mycroft 8096b83664 Eliminate soft segment descriptors; instead use a functional interface for
creating segment descriptors.  Add the duplicate system call gate used by
BSD/OS 2.0 executables.  Prototype setsegment() and setgate(), and fix a bogon
caught by this.
1995-10-09 06:34:11 +00:00
thorpej a1bc374083 Batting 1.000: fix a potential panic situation in ccdioctl() that can occur
if ccdinit() fails.
1995-10-09 05:37:57 +00:00
thorpej ab0109ad89 Fix up a couple of comments. 1995-10-09 05:21:09 +00:00
chopps ad89dc6f0a vtrace -> sys_vtrace 1995-10-09 04:33:52 +00:00
thorpej 28b46fc9ec Update vtrace() for prototype changes and renaming changes. 1995-10-09 04:00:24 +00:00
chopps 268dfe691c update from Ezra Story <ezy@panix.com> 1995-10-09 03:47:44 +00:00
chopps 4e276bb0ec update from osymh@gemini.oscs.montana.edu (Michael L. Hitch) 1995-10-09 02:41:28 +00:00
chopps 2c9db0e19e update from Ignatios Souvatzis <is@beverly.rhein.de> 1995-10-09 02:14:46 +00:00
chopps 602e68be9d new cybervision 64 grf from Bernd Ernesti <bernd@arresum.inka.de> and others
update config files (adding missing scsibus entry for aftsc0)
1995-10-09 02:08:35 +00:00
chopps 60e159d20e file is now generated at compile time 1995-10-09 02:06:19 +00:00
thorpej 4e3112d39b Add the partition offset to the block number in ccdstart() as opposed
to ccdstrategy(), and do it in a way that doesn't corrupt the block number
for residuals.  (What was I _thinking_?!)
1995-10-09 01:45:34 +00:00
jonathan 0736074d04 Fix bugs in the turbochannel config table for MAXINE (personal decstation). 1995-10-09 01:45:26 +00:00
chopps cc6ab4e68d new cybervision 64 from Bernd Ernesti <bernd@arresum.inka.de> (and others) 1995-10-09 01:44:09 +00:00
chopps ee06310cd7 moved videomode to ./usr/sbin 1995-10-09 00:53:19 +00:00
thorpej b8dcfbd303 Implement a simple locking mechanism and use it, for sanity's sake.
In ccdopen(), don't update the disklabel if any partition is already open.
Prevents race bewteen ccdstrategy() and ccdgetdisklabel().
1995-10-09 00:46:45 +00:00
chopps 9318d50785 build grf_ultmscode.h 1995-10-09 00:12:54 +00:00
gwr fa87e5bdfc Minor cleanup re. Debugger() calls... 1995-10-08 23:48:22 +00:00
gwr 90af367f9e Make arpintr() call conditional on NETHER 1995-10-08 23:47:34 +00:00
gwr 48500ffdd6 Add rd, xd, xy. Sort the includes. 1995-10-08 23:46:27 +00:00
gwr 0ed357402a Fix a big "oops" (Many thanks to David Jones!) 1995-10-08 23:45:10 +00:00
gwr 3d587a6700 Link this -static 1995-10-08 23:44:02 +00:00
gwr 09cbbafa0a Minor cleanup. 1995-10-08 23:42:58 +00:00
gwr f5bcca1fab Machine-dependent part of the new RAM-disk driver.
This module lets one build a stand-alone kernel.
1995-10-08 23:42:42 +00:00
gwr 1b6586b2bb Note that this should be merged with dev/ic/i82586reg.h 1995-10-08 23:41:36 +00:00
gwr 13fa3c4fe6 Temporary hack to restrict open to root or the
same UID as the session attached to /dev/kd
1995-10-08 23:40:42 +00:00
gwr 2d50d2a6b9 Add RAMDISK, move some things around.
Add rd*, xd*, xy* (only rd is done).
1995-10-08 23:38:41 +00:00
gwr 9a79c5a043 Machine-independent RAM-disk driver. 1995-10-08 23:30:57 +00:00
fvdl 82079ba5b3 Work around calling the NetBSD fcntl(F_{G,S}ETOWN) for now; it is too
restrictive to implement the Linux equivalent (and perhaps too restrictive
overall).
1995-10-08 22:53:43 +00:00
fvdl 7292169d66 Avoid unnecessary copyin() of shmid_ds struct for shmctl(IPC_RMID) 1995-10-08 22:49:29 +00:00
fvdl 81d650570f Implement the KDGKBMODE ioctl for Linux (possible with pcvt 3.32). 1995-10-08 22:45:20 +00:00
jtc 9ba33c87cc Update makefile to handle the fact that keycap.5 was moved out of man5
into this directory.
1995-10-08 21:59:43 +00:00
jtc df99cef0ac Patch from Frank van der Linden to allow kernels with pcvt but without
XCONSOLE to compile.  I've been told that this patch has been sent to
Helmuth.
1995-10-08 21:57:39 +00:00
thorpej 83dfe0816e Remove the icode stuff; it hasn't been used in a long time. 1995-10-08 20:19:22 +00:00
thorpej a8637d68f8 blkclr -> bzero 1995-10-08 19:33:36 +00:00
pk 1ad1d128e3 Fill in `ascent' values correctly. 1995-10-08 19:31:44 +00:00
thorpej 09024536ef Remove __main(), strlen(), bzero(), and bcmp(). They're all in libkern. 1995-10-08 19:30:51 +00:00
thorpej 3b70bc6b37 Finish up the system call function renaming; sysarch -> sys_sysarch and
vtrace -> sys_vtrace.
1995-10-08 19:01:26 +00:00
briggs 685b9057c2 Pick up changes from leo's latest version. 1995-10-08 17:25:19 +00:00
leo 0e5fe20560 - Cleanup the arbitration
- Make sure the MON_BUSY flag is cleared after a DMA transfer. Otherwise
  we might end up with a 'lost-busy' situation unexpectedly. This will
  prevent the 5380 from driving the bus, which is not funny during
  reselections.
1995-10-08 13:34:23 +00:00
pk ecf1cf893d Add forgotten `eeprom' configuration. 1995-10-08 11:45:39 +00:00
pk 21a594651a eeprom_match: account for differing physical addresses (per Jason Thorpe). 1995-10-08 11:44:59 +00:00
pk 87a0c55d23 Patch from Jason to factor out a common framebuffer size determination
routine from the individual drivers.
1995-10-08 01:39:13 +00:00
jtc 95f29581c3 Remove files that have been removed from or renamed in the current pcvt sources 1995-10-07 23:25:09 +00:00
mycroft c078d7a9f4 Remove __builtin_saveregs(). 1995-10-07 22:27:31 +00:00
mycroft 9782971b02 Remove setjmp() and ffs(). 1995-10-07 22:26:53 +00:00
mycroft 6287d3d7b2 Remove bzero(). 1995-10-07 22:24:50 +00:00
jtc be0a951c76 Update our Makefile.inc.
Remove various OS-specific Makefile.inc templates.
1995-10-07 21:51:42 +00:00
jtc d9789d4225 Overlay our pcvt with pcvt 3.32 sources. All of our fixes have been
incorporated into the master sources, so it is unnecessary to resolve
all the conflicts that would occur if we let CVS "merge" the versions.
1995-10-07 21:43:25 +00:00
jtc 68b7d2aca6 import pcvt 3.32 1995-10-07 21:11:27 +00:00
jtc 652374b8ca import pcvt 3.32 1995-10-07 21:10:55 +00:00
jtc 81c0777f62 import pcvt 3.32 1995-10-07 21:09:43 +00:00
chopps 16ca402101 update from Ignatios Souvatzis <is@beverly.rhein.de> 1995-10-07 19:54:58 +00:00
chopps 79bc0aa5ef transpose osc values from Ignatios Souvatzis <is@beverly.rhein.de> 1995-10-07 19:48:08 +00:00
chopps 86fb4819e2 change break val from rhealey@kas.helios.mn.org (Rob Healey) 1995-10-07 18:22:14 +00:00
chopps cf0e52a427 update to 2232 from Jukka Marin <jmarin@teeri.jmp.fi> and
rhealey@kas.helios.mn.org (Rob Healey)
1995-10-07 18:18:26 +00:00
chopps dc3b9221a6 update to ariadne ethernet device from Bernd Ernesti <bernd@arresum.inka.de> 1995-10-07 18:12:42 +00:00
chopps c68476241f new quicknet ethernet driver from Kortelainen Mika <k125374@cs.tut.fi> 1995-10-07 18:04:27 +00:00
chopps a9c89668da fixes for fastlane from Daniel Widenfalk <t94dwi@student.tdb.uu.se> 1995-10-07 17:33:01 +00:00
mycroft 209bd1b877 Build libkern as one .o file, so that all symbols defined therein are
always available to loadable modules.
1995-10-07 09:56:54 +00:00
mycroft 120925e7c3 Remove bzero.S and setjmp.S, as these functions are in locore. 1995-10-07 09:52:48 +00:00
mycroft a09832e624 Update from libc. 1995-10-07 09:26:14 +00:00
mycroft 85285f6ead Add a shutdown hook. 1995-10-07 09:19:13 +00:00
mycroft 319813467d Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:53:04 +00:00
mycroft 6263c69339 Reran makesyscalls.sh. 1995-10-07 06:51:37 +00:00
mycroft 55c46e9514 Reran makesyscalls.sh. 1995-10-07 06:41:34 +00:00
mycroft 245f292fed Prefix names of system call implementation functions with `sys_'. 1995-10-07 06:25:19 +00:00
mycroft 2d9aa901e9 Write core dumps with mode 0600. 1995-10-06 16:12:05 +00:00
mycroft 037949ced9 Undo accidential deletions in last commit. 1995-10-06 07:12:42 +00:00
mycroft f2d15e5b48 Remove unneeded input operands to fnsave(), fnstcw(), and fnstsw(). 1995-10-05 23:06:15 +00:00
mycroft 45dc3570ec Use ISA_IPL_TTY, to fix race conditions. 1995-10-05 22:06:47 +00:00
pk 48849279bf Script to assist installing second-stage boot programs. 1995-10-05 21:03:12 +00:00
mycroft ec30c873ea Switch the AUX_ENABLE and AUX_DISABLE flags, per Mathias Engan. 1995-10-05 14:12:21 +00:00
pk 476de93402 Remove `rc_font_ascent' from structure. 1995-10-05 13:17:51 +00:00
pk aea329df61 rcons: rc_maxcol and rc_maxrow were swapped. 1995-10-05 13:16:57 +00:00
chopps 5dcc668ebd first attempt at A4000T support, remove GRF_AGA's dependence on GRF_ECS.
page 0 is now invalid, other minor cleanup.
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1995-10-05 12:40:48 +00:00
chopps 58f950c48a Only enable timeouts (debugging) when actually transfering data.
from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
1995-10-05 12:36:07 +00:00
leo 7d3bc89420 Get in sync with the mac68k version to incorporate Allen Briggs' changes
- emit MSG_ABORT/MSG_REJECT at the right times:
 - make MIN_PHYS machine dependent.
1995-10-05 08:52:53 +00:00
mycroft 62f5268325 Fix oversight in previous. 1995-10-05 08:50:02 +00:00
mycroft 9806359967 Make PARENB depend on RAW and ANYP, but not on LITOUT or PASS8. 1995-10-05 08:38:55 +00:00
thorpej c2ca33b9c1 Initialize the kernel PT map as thoroughly in the 68040 case as the
non-68040 case.  Fix up a comment there, too.
1995-10-05 06:54:12 +00:00
thorpej a6359b2633 Fix segment table reference bug, from Micheal Hitch. 1995-10-05 06:47:25 +00:00
mycroft d3f03a8c0c Avoid reentering union_dircache() by locking the union vnode. From John Kohl. 1995-10-05 06:26:12 +00:00
mycroft d40c1f54bd Lock the underlying vnode around VOP_BMAP() and VOP_READ(). From John Kohl. 1995-10-05 06:20:57 +00:00
mycroft c594af848d Add some missing statistics. From Thorsten Lockert. 1995-10-05 05:55:09 +00:00
thorpej 0d889b54ba Double CHILD_MAX; 40 -> 80. 40 just doesn't make sense on modern systems. 1995-10-05 05:26:19 +00:00
mycroft 1c5d240ffa Make PASS8 = !ISTRIP and LITOUT = !OPOST, if CSIZE is CS8. 1995-10-05 02:45:06 +00:00
jonathan 37d37e0791 Change the pmax framebuffer driver to reflect the rcons changes as negotiated
with pk:
Use dev/rcons/files.rcons in the pmax config file.
Use "rasterconsole" as the tag in pmax/conf, and modify the pmax
framebuffer pseudo-device drivers (fb and rcons) to us rasterconsole.h and
RASTERCONSOLE for compile-time configuration of the rcons pseudo-device.
Modify the pmax rcons pseudo-device driver to initialize a little-endian,
QVSS-compatible font (set its ascent, and set the rconsole structure to
point to that font) before calling rcons_connect().

Tested on a cfb.  The ascent may be wrong (or at least, not be aligned with
the hw cursor sprite) on a 3100.
1995-10-05 01:52:44 +00:00
mycroft f5f86fc38b Fix type errors. 1995-10-05 01:42:22 +00:00
mycroft 210951a875 Switch to using SET(), CLR(), and ISSET() macros, like tty.c. 1995-10-05 01:35:07 +00:00
pk c8f10b184c Do not set `ra_len' in bwtwomatch(); we only need the pixels for CONSOLE,
but if so, we need the lot.
1995-10-05 00:33:23 +00:00
pk de0c6a97bd RCONSOLE => RASTERCONSOLE. 1995-10-05 00:26:07 +00:00
pk c1e313b122 include `files.rcons'. 1995-10-05 00:21:35 +00:00
pk b79dc038d5 Machine dependent RASTERCONSOLE font definition to be passed to rcons_init(). 1995-10-05 00:02:54 +00:00
pk 6a7edf0b56 Move font defs back into machine-dependent area (per Jonathan Stone).
Integrate patches from der Mouse (8-bit cleanliness, FULLSCREEN option,
SMALLFONT option).
The (MD) caller of rcons_init() is now responsible for initialising `rc_font'.
1995-10-04 23:57:17 +00:00
pk 859b799130 RCONSOLE => RASTERCONSOLE 1995-10-04 23:44:33 +00:00
pk 0e646ae994 Move RCONSOLE files here and rename option to RASTERCONSOLE. 1995-10-04 23:35:31 +00:00
pk d19cacbb03 RCONSOLE => RASTERCONSOLE. 1995-10-04 23:35:13 +00:00
pk 12776e406a Move RCONSOLE files into dev/rcons/files.rcons. 1995-10-04 23:33:14 +00:00
thorpej e43d278d31 Several changes:
* Reset the card on "fresh open" as a sanity measure.
	* Use the "secret bit" to enable interrupts.
	* Make some parts look/behave like their cousins in dev/isa/com.c
	* Set the FIFO threshold based on line speed.
	* Be a little more informative when port is attached.
	* Implement TIOC{G,S}FLAGS; ttyflags now works.
First two items prevent deadlock on some systems (notably the 380,
425, and 433) which some people have been reporting.  Use of the
"secret bit" seems to be safe on systems which don't need it.  Changes
tested on a 319, 340, 345, and 380.
1995-10-04 17:46:08 +00:00
briggs 5479e941d9 Add a second ppp. It makes the kernel a whole 8 bytes larger on disk. 1995-10-04 11:05:25 +00:00
thorpej 442aff9376 Say what I really meant in a printf()... 1995-10-04 08:39:14 +00:00
thorpej b675177228 Put new-style RCS ids in the startup banner. Makes bootblock revisions
much easier to recognize; old method could have revision corrupted by
local RCS control.
1995-10-04 07:24:31 +00:00
thorpej d08330454a Determine the select code of the console device, or -1 for internal grf.
Pass this value to the kernel in register d5.  This value isn't currently
used by the kernel, but will be in the future.
1995-10-04 06:54:42 +00:00
thorpej f060c456de Couple of changes:
* Implement TIOC{G,S}FLAGS; ttyflags works now.
	* Reset the card on a "fresh open" as a sanity measure.
	* Make dcmopen() and dcmclose() a little more like the
	  corresponding routines in the new dca.c
1995-10-04 06:39:06 +00:00
briggs 8ede165771 ae0 -> ae* and add a couple of vnd devices. 1995-10-04 03:42:18 +00:00
briggs 6e435f9152 Include ether.h to get NETHER. 1995-10-04 03:38:27 +00:00
mycroft 86939fd839 Fix typo. 1995-10-04 00:35:07 +00:00
pk dad96c6619 Add a few constants used for mapping bit and pieces in the kernel driver. 1995-10-04 00:21:27 +00:00
mycroft 393a69d6db Modularize the CCB/MSCP/ACB/ECB handling a little. No functional changes. 1995-10-03 20:58:56 +00:00
briggs be8ef88444 Raise number of bpfs to 12 since CAP needs a minimum of 8. 1995-10-03 20:19:01 +00:00
mycroft 4a17d4a861 Undo accidental deletions in last commit. 1995-10-03 20:18:58 +00:00
pk 32c023995c Bring reset logic into interrupt state machine. 1995-10-03 17:32:12 +00:00
pk fcc53878ca Make fbrcons_init() resistant against SUN4s. 1995-10-02 21:48:21 +00:00
pk cfbe993b9b Update to use <machine/cgtworeg.h> 1995-10-02 21:44:51 +00:00
pk 38d1101ad3 Silly me.. there's already a <machine/cgtworeg.h> 1995-10-02 21:44:22 +00:00
pk fb58a99a8f Fix some bogus calls to {read/write}disklabel(). 1995-10-02 21:04:45 +00:00
mycroft 0bc6ad73eb Fix an oversight in the minphys routine. 1995-10-02 16:48:36 +00:00
ragge e3e007e87c #include "sys/mount.h" added. 1995-10-02 12:33:32 +00:00
briggs 1ddc4223b1 Add offset to mac68k_vidlog as suggested by chas@ohm.nrl.navy.mil. 1995-10-02 09:41:06 +00:00
briggs 633e32000c Wrap call to arpintr() in NETHER to avoid unresolved external if no ether
devices are present.  Suggested by Paul Goyette (paul@pgoyette.bdt.com).
1995-10-02 09:38:38 +00:00
pk 82434458cc Get some of the bugs out. Thanks to David Gilbert for testing. 1995-10-02 09:07:03 +00:00
briggs d510375b06 Change to allow nack_message() to take an argument and send
MSG_REJECT_MESSAGE instead of MSG_ABORT when we get an extended message.
This allows a DEC drive to work when it attempts to negotiate synch.
transfers on us.
1995-10-02 09:03:53 +00:00
pk 23b15422dc svr4_fcntl: make uap point to argument. 1995-10-02 08:20:47 +00:00
thorpej d7b36ab7a2 Add mt0. 1995-10-02 00:36:07 +00:00
thorpej f12fd2307e Driver for HP 7974a, 7978a/b, 7979a, 7980a, and 7980xc 9-track HP-IB tapes.
Original version contributed to Utah by Mt. Xinu.  Ported to 4.4BSD by
Mark Davies and Andrew Vignaux.
1995-10-02 00:28:20 +00:00
mycroft b5beeaaca9 Incorporate recent changes from Wolfgang and Stefan. 1995-10-01 20:51:34 +00:00
chopps 01d63931a5 only use one xmit buffer for ASDG 1995-10-01 19:30:22 +00:00
phil 1f494d0265 Don't add network files to SRCS if NO_NET is defined. (I'm getting
very short of disk space on STEELHEAD!)  The pc532 doesn't use the
network (yet?) from boot.
1995-10-01 06:00:32 +00:00
briggs 0066d1a66f Finally get this right... Final fix from Paul Goyette paul@pgoyette.bdt.com 1995-10-01 05:10:20 +00:00
briggs 9de2a25e73 Surround Debugger(); with #if DDB. Different fix than encl. for PR#1553. 1995-10-01 02:29:32 +00:00
pk db0107b895 Specify SCSI_DATA_OUT in sddump() (from John Kohl; PR#1482). 1995-09-30 22:57:19 +00:00
pk 13dcbfbb29 Make this work with OBJ dirs. 1995-09-30 21:43:35 +00:00
briggs c1138ce68a Yet another error in the (next-to) last changes. 1995-09-30 21:34:54 +00:00
pk 160b38697c Refer to installboot(8) 1995-09-30 21:33:30 +00:00
pk a029979ad3 Manual page for installboot(8). 1995-09-30 21:32:14 +00:00
briggs 890baf19ea Fix stupid error in one of my last changes here. 1995-09-30 19:42:34 +00:00
chopps 35c3bd0da2 fix typo 1995-09-30 17:43:18 +00:00
chopps 672febd322 add conditionals around page zero debug stuff 1995-09-30 17:39:51 +00:00
chopps 678433e279 no longer needed by lance driver (now uses /dev/ic...) 1995-09-30 17:20:29 +00:00
chopps f144360393 oops, forgot to cvs add this 1995-09-30 17:18:22 +00:00
leo 1c107bd3e6 Add CD9660 option. 1995-09-30 12:48:12 +00:00
chopps d6ede49c3d fix typo (pr#1224) 1995-09-30 08:39:38 +00:00
chopps 852aa19159 add arcnet device, (pr#1148) 1995-09-30 08:34:49 +00:00
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