Commit Graph

9116 Commits

Author SHA1 Message Date
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