Commit Graph

19339 Commits

Author SHA1 Message Date
scw
73699f5ad7 Fix bug whereby if no VMEbus RAM is defined, a MACHINE_NONCONTIG kernel
would fail to boot.
1997-10-12 15:41:39 +00:00
scw
01e0c4c896 Move MACHINE_NONCONTIG from std.mvme68k to <machine/vmparam.h> as per
Jason's request.
1997-10-12 15:39:35 +00:00
oki
fd9fae64cc Added prototype. 1997-10-12 14:44:12 +00:00
bouyer
7a337eca27 Ops, forgot to 'cvs add' theses. Pointed out by enami tsugutomo. 1997-10-12 13:27:59 +00:00
oki
34c4ab5da2 Prune unused function. 1997-10-12 12:15:15 +00:00
oki
9418615252 Added prototypes. 1997-10-12 12:13:48 +00:00
oki
1db0621f0e Add prototype. 1997-10-12 06:41:45 +00:00
christos
b848861bfd Add ENDIANNESS constant 1997-10-11 19:11:10 +00:00
mhitch
7c5af2d5da Fix typo from DIOCGDEFLABEL implementation. 1997-10-11 16:13:19 +00:00
mycroft
7b89784c31 GC some bogus definitions. 1997-10-11 16:12:55 +00:00
mycroft
3081c6f8cf AudioC[A-Z] -> AudioC[a-z]
AudioElinear -> AudioEslinear
1997-10-11 12:43:51 +00:00
mycroft
b551325998 AudioElinear -> AudioEslinear 1997-10-11 12:36:04 +00:00
mycroft
2d019e5efd AudioC[A-Z] -> AudioC[a-z] 1997-10-11 11:28:49 +00:00
mycroft
51af9f7ed1 Make class and port names consistently lower case. Also, change `linear' to
`slinear'.
1997-10-11 11:24:34 +00:00
mycroft
3cdff9d435 GETPROPS does not indicate whether the device is currently in full-duplex
mode.  Reinstate GETFD to return this information.
1997-10-11 11:16:28 +00:00
oki
9ce308d6d6 Added header file for prototype. 1997-10-11 11:15:00 +00:00
oki
e23506ac2e Added header file. 1997-10-11 11:13:54 +00:00
mycroft
9803f46796 Minor rearrangement to match other files. 1997-10-11 09:12:18 +00:00
mycroft
a7aef46287 Use m68k/Makefile.inc. 1997-10-11 09:11:17 +00:00
mycroft
20b05a6bc4 Make these closer to working. 1997-10-11 09:10:25 +00:00
mycroft
448c9be261 Common stuff, like mips/Makefile.inc. 1997-10-11 09:10:09 +00:00
mycroft
5c8d588138 Nuke NOOBJ. 1997-10-11 08:44:42 +00:00
mycroft
acf0e569a5 Update all the tags goo, and use bsd.subdir.mk. 1997-10-11 08:42:02 +00:00
scottr
017e6c7f10 Address PR 4120 by synchronizing v{,un}mapbuf() with the i386 vm_machdep.c,
v 1.27, pulling in changes made there by Charles Hannum.  Also, incorporate
a few tweaks made by Gordon W. Ross in the sun3 version of this change.
1997-10-11 06:38:45 +00:00
scottr
c49762b3d3 Implement assembly byte-swap functions. 1997-10-11 04:28:40 +00:00
fvdl
01e7c03e2e Move cookie heuristic function inside ifdef NFS, to make a kernel with server
code but without client code link again. From Erik Bertelsen, PR 4259
1997-10-11 02:09:48 +00:00
oki
8e80f913ed Use CLEANFILES= instead of target clean. 1997-10-11 01:19:15 +00:00
briggs
9f3c7b8b63 Treat an unknown A/UX partition as SCRATCH instead of ignoring it. 1997-10-11 01:03:47 +00:00
oki
aca42300b3 Use CLEANFILES= instead of target clean. 1997-10-11 00:26:51 +00:00
enami
499f056402 Backout last change for ufs_readlink. The permission check is now done
in vfs layer.
1997-10-11 00:10:57 +00:00
enami
8092be0770 Check exec bit of symbolic link when traversing path and do it in vfs layer.
Suggested by der Mouse.  Ok'ed by Jason R. Thorpe.
1997-10-11 00:08:08 +00:00
enami
db7f1ad2ad Check read permission of symbolic link in vfs layer, when doing readlink(2).
Suggested by der Mouse.  Ok'ed by Jason R. Thorpe.
1997-10-11 00:05:15 +00:00
fvdl
d85f38cbec Fix braino in my interpretation of the eof flag to VOP_READDIR. 1997-10-10 22:16:04 +00:00
oki
051b06a759 Add prototypes. 1997-10-10 21:45:18 +00:00
oki
a9685de195 Fdopen --> fdopen 1997-10-10 21:42:38 +00:00
oki
affaadc59f Prune unused function. 1997-10-10 21:40:50 +00:00
oki
a6f8cf735d WARNify, add prototype, remove use of register. 1997-10-10 17:48:06 +00:00
oki
35c6ab7eaf Add prototype, remove use of register. 1997-10-10 17:46:09 +00:00
oki
5a60f8df47 Remove use of register. 1997-10-10 17:43:09 +00:00
explorer
e4e727226c For network devices, collect timing information and mix into the pool,
but do not assume any entopy is gathered.  It can be enabled using an
IOCTL again if the user desires.

Note that the mix function uses xor, so at worse an attacker can twiddle
bits in the pool, but not into a known state assuming it started as
an unknown.
1997-10-10 16:35:00 +00:00
christos
328602f8d7 Add definitions for bpf_int and bpf_u_int; these are not used in the kernel,
but libpcap expects them if we advertize our current BPF_VERSION.
1997-10-10 14:15:32 +00:00
fvdl
8aa50b9159 Fix unitialized var warning (did not appear on i386, but did on sparc). 1997-10-10 13:21:51 +00:00
mrg
55c881fbd2 when creating the per-device extent, use from 0 to nblks, and then
extent_alloc_region() any skipped space.  this is (basically) what
the previous swap code did (with rmaps rather than extents).
1997-10-10 13:16:24 +00:00
fvdl
93b08eefc2 u_long -> off_t, I missed the big endian case. From Juergen Hannken-Illjes 1997-10-10 13:03:32 +00:00
oki
9dfe683ff7 Add missing prototypes. 1997-10-10 12:55:26 +00:00
fvdl
cd215502cb Regen. 1997-10-10 12:54:39 +00:00
oki
87e21e080a Add missing prototype. 1997-10-10 12:54:02 +00:00
fvdl
914e939800 sys_getdirentries -> compat_12_sys_getdirentries from Juergen Hannken-Illjes. 1997-10-10 12:45:01 +00:00
leo
6ecab62b97 VM_MAX_ADDRESS is the user max address -- adjust (From Chris Hopps). 1997-10-10 11:05:53 +00:00
bouyer
f5d86626ec Update for 64 bits directory cookies. 1997-10-10 10:00:12 +00:00
jeremy
d2d5e50d91 Rewrote the comments about the operation of the I/O mapper to make them more
accurate and (hopefully) easier to understand.
1997-10-10 09:50:03 +00:00
cjs
984390f178 Add now-working ipfilter. 1997-10-10 08:54:14 +00:00
jonathan
8494c2cf67 Correct name of author in license clause 3, as per email with mrg. 1997-10-10 08:31:10 +00:00
mycroft
61a9f1c6a6 GC pageproc and bclnlist. 1997-10-10 08:19:41 +00:00
mycroft
16652e8449 Regen. 1997-10-10 06:49:08 +00:00
mycroft
523d84775a Emulate mremap(2) by returning ENOMEM for now. This should be sufficient for
realloc(3) and other uses.  From Matthias Scheler in PR 3920.
1997-10-10 06:25:34 +00:00
scottr
a7515413d8 Remove advertising clause. 1997-10-10 05:54:48 +00:00
mrg
74f573d85d remove advertising clause from all my licenses. 1997-10-10 05:39:47 +00:00
mhitch
76b5a9517f The Blizzard-IV SCSI driver is now separate from the Blizzard-II. 1997-10-10 04:56:09 +00:00
mhitch
06ff9502c2 Add separate driver frontend for the Blizzard-IV; the differences with
the Blizzard-II are more extensive than I orginally thought.
1997-10-10 04:53:32 +00:00
briggs
71a2747c66 Ignore partitions of type Apple_Driver43 when filling the fake disklabel. 1997-10-10 04:01:02 +00:00
jonathan
2ebcc702b9 Don't check the actual CPU type unless we're in the _KERNEL, or
src/lib/libc/gen/nlist_ecoff.c breaks.
1997-10-10 03:24:49 +00:00
fvdl
6a0575f33e Last arg to VOP_READDIR became off_t. 1997-10-10 02:13:42 +00:00
fvdl
fa2348ae01 Add cookie field to buffer structure to be able to store 64bit offsets.
Redo NFS mounting flags; split flags into internal and public, having
2 seperate fields in the NFS mount structure. Add prototype for
vn_readdir to vnode.h
1997-10-10 02:12:21 +00:00
fvdl
541b204984 Add vn_readdir function for use in both the old getdirentries and
the new getdents(). Add getdents().
1997-10-10 02:09:30 +00:00
fvdl
b691680ac4 Regen. 1997-10-10 02:07:55 +00:00
fvdl
ab03b9752b Make last argument to VOP_READDIR off_t. 1997-10-10 02:07:00 +00:00
fvdl
94781a2402 Regen. 1997-10-10 02:06:00 +00:00
mycroft
7bbb69534f Add a missing splx(). From augustss. 1997-10-10 02:05:36 +00:00
fvdl
5bfc60c1e5 Regen. 1997-10-10 02:05:21 +00:00
fvdl
da29e54dfb Add getdents(). Rename getdirentries to compat_12_getdirentries. 1997-10-10 02:03:47 +00:00
fvdl
ce56587f15 Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 02:01:05 +00:00
enami
fdd96411d4 Regen from syscalls.master 1.9. 1997-10-10 02:01:03 +00:00
fvdl
ebffddb531 Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 02:01:02 +00:00
enami
9b1963acd5 Regen from syscalls.master 1.9. 1997-10-10 02:00:57 +00:00
fvdl
ab940dcf06 Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 02:00:56 +00:00
enami
6e4ffc538f Regen from syscalls.master 1.9. 1997-10-10 02:00:54 +00:00
fvdl
fd5433c6bc Bump last argument to VOP_READDIR to off_t (from u_long). 1997-10-10 01:57:31 +00:00
enami
3c1a195715 lchown at #254. 1997-10-10 01:55:33 +00:00
explorer
525a0ad7a5 Add hooks to use the kernel random system to generate TCP sequence numbers. 1997-10-10 01:54:32 +00:00
fvdl
7f7d814e67 * New directory entry caching system. Provides full caching of any
directory cookie that may be thrown back at us from userspace, up
  to a size limit. Fixes double entry problem.
* Split flags for internal and external use in the NFS mount structure.
* Fix some buffer structure fields that weren're being used correctly.
* Fix missing directory cache inval call in nfs_open.
* Limit on NFS_DIRBLKSIZ no longer needed, bumped to the more reasonable
  value of 8k.
* Various other things that I forget, all related to the dir caching
  somehow, though.
1997-10-10 01:53:17 +00:00
explorer
790e114732 Add hooks to use the kernel random system to generate TCP sequence numbers. 1997-10-10 01:51:07 +00:00
enami
23b3ed1d5c New function freebsd_sys_lchown() to emulate FreeBSD lchown(2). 1997-10-10 01:50:55 +00:00
explorer
735c351f71 Add hooks to insert timing info into the random system 1997-10-10 01:49:12 +00:00
fvdl
86ecc45306 Signal error when getting a 64 bit offset cookie that can't be stored
in 32 bits. Provide an error message to the user, and return EINVAL.
Also, pay attention to the EOF flag from VOP_READDIR. Correct a
misspell in a panic message.
1997-10-10 01:47:41 +00:00
fvdl
811fbe17b5 Add getdirentries backward compat syscall. Provide common function to
signal cookie overflow during emulated getdents and friends.
1997-10-10 01:46:59 +00:00
fvdl
49d58c7d89 Regen. 1997-10-10 01:45:48 +00:00
fvdl
b35ec5940b Channel FreeBSD getdirentries to our now obsolete getdirentries call. 1997-10-10 01:44:59 +00:00
fvdl
d6e5e295fa Signal error when getting a 64 bit offset cookie that can't be stored
in 32 bits. Provide an error message to the user, and return EINVAL.
Also, pay attention to the EOF flag from VOP_READDIR. Correct a
misspell in a panic message.
1997-10-10 01:42:21 +00:00
jeremy
88a82f5e7a Corrected typo in comments. 1997-10-10 01:36:32 +00:00
explorer
1c276eafe2 Add hooks to insert timing info into the random system 1997-10-10 01:19:37 +00:00
explorer
b5feb41072 Add hooks to insert timing info into the random system 1997-10-10 01:09:03 +00:00
explorer
d8c3ad024d define rnd cdev here 1997-10-10 00:44:33 +00:00
explorer
bde51b6f93 add /dev/random as major device 46 1997-10-09 23:59:15 +00:00
explorer
dac3eb2c9b make /dev/random standard, per message from Jason 1997-10-09 23:53:01 +00:00
explorer
32a092e1cf define the 'options DEVRANDOM' thing, and which files to include to use it. 1997-10-09 23:19:24 +00:00
explorer
d8e4695634 add hooks to initialize the random driver 1997-10-09 23:17:37 +00:00
explorer
2021c11247 Addition of /dev/random and in-kernel random value generation.
Over the next few days (thank goodness for long weekends) I'll be hunting
down device drivers and adding hooks to gather entropy from many devices,
and adding the conf.c changes to the various port's device structs to
define major numbers for /dev/random and /dev/urandom.
1997-10-09 23:13:12 +00:00
scw
2dde7e366d Added support for VMEbus RAM cards via MACHINE_NONCONTIG.
The kernel should still compile and run without it, but I've
put the config option in std.mvme68k so it's built like this
as standard.
1997-10-09 21:39:16 +00:00
is
9f6d6708f4 Help crosscompiling, by as -> $(AS). Define AS?= as in the calling
Makefile.$(ARCH)es. Will hopefully fix the (remaining) part or pr4010.
1997-10-09 20:40:18 +00:00
is
eb54c04b14 Don't forget to set the scale variable even if we dont need to sign-extend it.
From PR 4236 by Norman Mackenzie.
1997-10-09 19:19:01 +00:00
christos
6155bdd332 GC bd_sig 1997-10-09 18:58:08 +00:00
christos
485a068ec2 bpf_filter.c:
- update copyright
	- add their rcsid
	- initialize some variables later later for consistency
	  with the current code.
	- change char to u_char to match the current code.
1997-10-09 18:20:04 +00:00
christos
7e9caf0d73 - add their rcsid
- add ifdef to match current code
1997-10-09 18:19:21 +00:00
christos
b13f94b5bf sync with bpf-1.2a1
- fix whitespace
	- add rcsid
	- add BPF_RELEASE define
	- add BIOCSTCPF BIOCSUDPF
1997-10-09 18:18:37 +00:00
christos
3108a74999 Sync with bpf-1.2a1
- whitespace
	- add rcsid; our sccsid is newer than the one on 1.2a1.
	- change prototype to add mtu
	- change size_t to u_int for consistency.
	- add alignment stuff in bpf_movein
	- add more consistency checks bpf_movein
	- use one uiomove and then bcopy the data in bpf_movein
	- update the comment for the panic when ifpromisc fails.
	- separate the case when we have non blocking I/O and
	  no data and return EWOULDBLOCK
	- check for other errors and return them
	- pass the mtu to bpf_movein
	- Add the BPF_KERN_FILTER junk, just so that we keep up with the code
	- remove BIOCSRSIG, BIOCGRSIG; SIGIO does this well.
	- don't add the SIOCGIFADDR stuff (it is bogus)
	- Check for malloc return for consistency.
	- comment should say poll
	- change formatting to match the current code.
	- save and restore the pcount and flags in case we fail to set the
	  interface into promiscuous mode.
	- fix spelling typo.
1997-10-09 18:17:19 +00:00
bouyer
6ab3092b11 Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
oki
15d57c4473 Oops, fixed error in previous commit. 1997-10-09 13:26:18 +00:00
oki
deff7d5471 Added prototype. 1997-10-09 13:19:26 +00:00
mycroft
4383ea0b92 Make openstr[] const. 1997-10-09 13:12:01 +00:00
mycroft
57f5a4a68d Add another bit of const poisoning. 1997-10-09 13:05:59 +00:00
mycroft
8579e3480d Make memname[] const (but only shallow, since the array may be modified). 1997-10-09 13:02:18 +00:00
oki
a6a631ac6c Added missing prototype. 1997-10-09 13:00:49 +00:00
mycroft
64d080efe0 Make various standard wmesg strings const. 1997-10-09 12:59:50 +00:00
oki
a947a7eff9 Remove __BDEVSW_DUMP_OLD_TYPE. 1997-10-09 12:59:23 +00:00
oki
2ce1763013 Prototype spl0(). 1997-10-09 12:58:31 +00:00
mycroft
7f35228e7e Make wmesg arguments to various functions const. 1997-10-09 12:49:44 +00:00
mycroft
c0ce02a936 Use __const rather than const for sys_errlist, so it DTRT with -traditional.
Also, make sys_nerr __const.  Partly from Todd Vierling in PR 4151.
1997-10-09 11:33:03 +00:00
jtc
4c9d6e4d9c Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:58:45 +00:00
jtc
1bcecdd613 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:48:33 +00:00
jtc
4229acf79d Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:37:20 +00:00
drochner
593f9e43c2 Fix error handling - call wakeup() in error case too. 1997-10-09 08:35:13 +00:00
jtc
da7890c526 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:31:58 +00:00
jtc
55baa7c0f7 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:30:09 +00:00
jtc
d6ae2cd7fd Fix tipo inherited from old version of TNF copyright template. 1997-10-09 08:03:42 +00:00
jtc
11a27a1132 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:57:17 +00:00
jtc
2ff9e92859 Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:50:22 +00:00
jtc
324ce8d6cb Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:37:50 +00:00
jtc
c8f77c0b8b Fix tipo inherited from old version of TNF copyright template. 1997-10-09 07:25:45 +00:00
jtk
827918e4ab fix warnings when -DAHC_DEBUG 1997-10-09 02:17:36 +00:00
enami
6705728ce7 Make sure that vs.color is always initialized. Fix PR#2510.
- separate initialization code in sput() into new function pcinit().
- call pcinit() in both sput() and pcattach() if (crtat == 0).
1997-10-09 02:05:01 +00:00
briggs
4839f9406b Clear interrupts properly on the Radius PrecisionColor 8.
Thanks for the info go to Andrew MacGibbon <andrew-m@cs.auckland.ac.nz>
1997-10-09 01:25:52 +00:00
enami
d0c58d6217 Cosmetic changes;
- indent continuation line by four columns.
- delete whitespace after cast.
1997-10-09 01:07:46 +00:00
enami
9ad3575d65 - round up requested soft stack limit by vm page size.
- don't round up size and truncate addr.
1997-10-09 01:04:13 +00:00
enami
45fbe5305f Cosmetic changes;
- dereference a pointer to function explicitly.
- fold long line to fit columns < 80.
- put whitespaces around a binary operator.
- don't put a single statement into a block.
1997-10-09 00:53:28 +00:00
mjacob
ba0165bec0 A) At least IBM 3590 tape drives return a NOT READY error if issued a LOAD
to BOT command- even if at BOT. Urk. B) Make READ POSITION SCSI_SILENT.
1997-10-09 00:43:26 +00:00
thorpej
b4b543bc6f In sys_mount(), use vfs_getopsbyname() rather than using an explicit
reference to vfssw[].
1997-10-09 00:39:19 +00:00
briggs
4220edeca5 Probe for the SONIC before saying that we found it. Some early Centris
models (low-end) shipped without ethernet installed.
1997-10-09 00:08:00 +00:00
thorpej
e3834cc351 Implement DIOCGDEFLABEL. 1997-10-08 23:37:50 +00:00
thorpej
26a5591b8a Oops, fix a couple of typos. 1997-10-08 23:35:41 +00:00
thorpej
dd3663cdfb Fix a typo. 1997-10-08 23:28:01 +00:00
thorpej
5e05593163 Implement DIOCGDEFLABEL. 1997-10-08 23:23:13 +00:00
thorpej
939e074dcc Implement DIOCGDEFLABEL. 1997-10-08 23:05:22 +00:00
mjacob
8d35f4cdeb Slight formatting change. 1997-10-08 21:39:25 +00:00
thorpej
f77f4e6084 The MIPS toolchain generates ELF. Don't pretend like it generates a.out
by renaming "netbsd" to "netbsd.elf", and then creating an a.out image
called "netbsd".

Instead, create _both_ ECOFF and a.out versions of the kernels, named
"netbsd.ecoff" and "netbsd.aout" respectively, and drop the ".elf"
from the ELF kernel.

(And, with any luck, the a.out hack will go away completely Very Soon.)
1997-10-08 21:26:16 +00:00
thorpej
90de61b390 Define two new ioctls:
DIOCGDEFLABEL - get default label
DIOCCLRLABEL - clear label
1997-10-08 21:18:45 +00:00
briggs
9c8e4f24b0 Disable video interrupts on the AV machines. Thanks to Michael R. Zucca
(mrz5149@cs.rit.edu) for the addresses and hints as to how the interrupts
might be disabled, and thanks to Henry Hotz (h.b.hotz@jpl.nasa.gov) for
testing on the 840AV.
Unmap the DAFB regs on the other Quadras after attachment.  They're not
used.
1997-10-08 19:54:04 +00:00
mjacob
f63551893b The bit pointer field is a 3 bit value- not 4. 1997-10-08 17:17:09 +00:00
mycroft
3dffd3e74a Regen. 1997-10-08 17:01:33 +00:00
mycroft
f1aefc827c Correct spelling of Millennium. 1997-10-08 17:00:43 +00:00