Commit Graph

19259 Commits

Author SHA1 Message Date
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
thorpej
67a3811e05 Fix an oversight in my previous MSS-related changes:
Basically, in silly window avoidance, don't use the raw MSS we advertised
to the peer.  What we really want here is the _expected_ size of received
segments, so we need to account for the path MTU (eventually; right now,
the interface MTU for "local" addresses and loopback or tcp_mssdflt for
non-local addresses).  Without this, silly window avoidance would never
kick in if we advertised a very large (e.g. ~64k) MSS to the peer.
1997-10-08 16:32:48 +00:00
oki
fc752db7e8 Use _ASM_LABEL. 1997-10-08 16:02:04 +00:00
mycroft
4d36fbdfa1 Clump USER_LDT with other CPU-related options. 1997-10-08 10:09:36 +00:00
mycroft
a9f50348ae Update comments regarding BIOSEXTMEM (now REALEXTMEM), and add REALBASEMEM. 1997-10-08 09:32:36 +00:00
mycroft
63c9e725bb Deprecate BIOSBASEMEM and BIOSEXTMEM, with an #error telling people to try the
latest version of the boot block first.  Add REALBASEMEM and REALEXTMEM, in case
they really are needed.
1997-10-08 09:23:04 +00:00
jonathan
ac262c0c2f Allow mips3 ECOFF binaries if running on a mips3 CPU. 1997-10-08 07:36:58 +00:00
augustss
7002bab845 Emulate setting the hiwater mark with SETFRAGMENT the right way.
Get rid of some 'register'.
1997-10-07 22:46:00 +00:00
augustss
4f2068ec29 Sanity check hi/lo water mark settings better. 1997-10-07 22:40:43 +00:00
gwr
38b2ba3e3f typo 1997-10-07 20:05:00 +00:00
is
37fce9c90f Oops, forgot to commit this when doing the recent 060SP Makefile change. 1997-10-07 19:26:11 +00:00
is
e183d29c61 Oops, I forgot this when doing the recent 060sp make system change. 1997-10-07 19:23:37 +00:00
gwr
d0febbb62c Be sure to kmem_free_wakeup() the same range of address space we
got from kmem_alloc_wait() earlier.  Thanks to Michael L. Hitch
and Scott Reynolds.  (Fixes the sun3/sun3x part of PR#4120.)
1997-10-07 18:28:55 +00:00
gwr
c9d8d6ae1d Use sizeof(struct ieob) instead of a sun3-specific macro,
so this driver will work on the sun3x as well.  (Works!)
1997-10-07 18:17:19 +00:00
gwr
2240a5aa56 typo 1997-10-07 18:00:18 +00:00
gwr
b298a0b98c fix warnings 1997-10-07 17:56:30 +00:00
gwr
35cfb77c2f Sync with GENERIC 1997-10-07 17:50:50 +00:00
gwr
8e46a17c49 cosmetic 1997-10-07 17:49:26 +00:00
gwr
0a6d195bf0 Add the ie driver (and reorder some things) 1997-10-07 17:08:35 +00:00
gwr
0d541b4c08 Add dvma_malloc() for the ie driver. 1997-10-07 16:51:47 +00:00
gwr
31459bfd07 Make nfs/krpc_subr.c conditional on arp (fixes PR#4233). 1997-10-07 16:15:30 +00:00
gwr
5e10630004 Add stuff for the ie driver 1997-10-07 16:10:25 +00:00
augustss
4a72d59d77 Add GUS PnP card to GENERIC. 1997-10-07 10:39:56 +00:00
drochner
fa79dfb77e Use a swap pager backed VM object for sysV shm instead of kernel VM.
Mostly from FreeBSD.
1997-10-07 10:02:03 +00:00
drochner
4741e294cf Supress error message if ENXIO is returned by "open" of disk partition
while "findroot()". This happens if a disk without BSD partition is
present, or if the partition does not exist in the disklabel - normal
operation, not worth reporting. (Split out a part to keep indentation
level limited.)
Allow to set "nfs_boot_rfc951" by a conditional to make bootp easier
to use.
1997-10-07 09:54:16 +00:00
scottr
9c7f82f7b8 The annoying message about trusting ourselves to write the PRAM should
really be dependent on DEBUG, not DIAGNOSTIC.  While we're here, add
a couple of DEBUG messages to mac68k_calibrate_delay(), and wrap them
all appropriately so that the messages aren't enabled unless we
specifically ask for them (by setting clock_debug).
1997-10-07 03:04:55 +00:00
augustss
8ecd26aeb3 Add the GUS PnP driver. 1997-10-06 22:42:56 +00:00
gwr
076ab3f536 Tweak the console support a little (more like the sparc version). 1997-10-06 21:04:21 +00:00
thorpej
8eb7170ff8 Back out last change. (Partially my fault, for not reviewing it close
enough.)
1997-10-06 21:01:23 +00:00
thorpej
0c368b5f67 Initialize the kernel message buffer earlier (before main() is called). 1997-10-06 20:38:46 +00:00
augustss
d5ecfe9e6b Keep filter when setting source on SB Pro.
Close PR 2593.
1997-10-06 20:16:25 +00:00
augustss
082b2b05b7 Add the Interwave audio chip. 1997-10-06 20:12:26 +00:00
gwr
a5e95ba86d Move some of the VM initialization work from _startup.c to pmap.c
where it is normally found.
1997-10-06 20:04:02 +00:00
gwr
210e726aba Use vm_offset_t to represent control space addresses, because
they are more like physical addresses in that you can not just
dereference a pointer to access the space.  (Also, if you use a
pointer type for such things, gdb will _try_ to deference it.)
1997-10-06 19:58:01 +00:00
christos
64ff55911c From Enami Tsugutomo: Busify and split the aic6360 driver. 1997-10-06 19:49:17 +00:00
gwr
c01d3eb597 Flush the I-cache before jumping into just-loaded code. 1997-10-06 19:43:23 +00:00
gwr
81bc13db4b Need to flush the I-cache before jumping into just-loaded code.
Without this, boot programs fail with some PROM versions...
1997-10-06 19:37:26 +00:00
augustss
22a818e5a4 GUS PnP sound card driver from Kari Mettinen. 1997-10-06 16:05:11 +00:00
augustss
72251c67c9 Driver for the Interwave audio chip used in the GUS PnP sound card. 1997-10-06 16:03:34 +00:00
thorpej
c9efd0562e Make the vfs ops and vnodeop_opv symbols match the name of the
file-system option used to configure the file system into the kernel.
1997-10-06 09:32:31 +00:00
thorpej
c28cf8c168 A few simple changes to make this closer to something that can be generated
by config(8):
- Make the vfs ops and vnodeop_opv symbols match the name of the
  file-system option used to configure the file system into the kernel.
- Now that sys_mount() has mountcompatnames[], remove the holes previously
  used to preserve ordering for COMPAT_09 and COMPAT_43 mount system calls.
Also, add a comment that describes how I feel about the existence of this
file.
1997-10-06 09:25:00 +00:00
thorpej
c08ce9b419 If COMPAT_09 or COMPAT_43 are defined, include a table of "mount compatnames",
which maps the old file system index numbers to the new (well, since after
NetBSD 0.9) string-based method of finding a file system ops vector.  Use
this table rather than assuming the ordering of the vfssw[] array when
emulating the old mount system call.
1997-10-06 09:19:11 +00:00
lonhyn
a5b1bb00fd pcidevs change regen. 1997-10-06 06:19:24 +00:00
lonhyn
7dbc234635 Added entries for GLINT 3D chips. 1997-10-06 06:18:07 +00:00
enami
4d74e9b7c8 Declare prototype of lutimes(2). 1997-10-06 01:42:33 +00:00
enami
b55d9d74eb Declare prototype of lchmod(2). 1997-10-06 01:41:46 +00:00
mark
6a8334e84e Change p_vmspace->pmap references to p_vmspace->vm_map.pmap so that
we no longer need __VM_PMAP_HACK.
1997-10-06 01:12:05 +00:00
mark
ac03dfe307 Change p_vmspace->pmap references to p_vmspace->vm_map.pmap so that
we no longer need __VM_PMAP_HACK.
1997-10-06 01:12:03 +00:00
mark
7483a0a6ba Change p_vmspace->pmap references to p_vmspace->vm_map.pmap so that
we no longer need __VM_PMAP_HACK.
1997-10-06 01:12:01 +00:00
mark
c4ca3a48de Changed VM_PMAP reference now that is is a pointer rather than an address. 1997-10-06 00:49:34 +00:00
mark
623bc2b574 Change vm_pmap reference to vm_map.pmap now we have dropped __VM_PMAP_HACK. 1997-10-06 00:47:34 +00:00
mark
84e72a4ba0 Removed __VM_PMAP_HACK
Added a couple of reserved field to the pmap structure.
1997-10-05 22:59:36 +00:00
mark
9461d08a78 Define a new sysarch call number ARM32_DRAIN_WRITEBUF that can be used
to drain any CPU write buffer.
1997-10-05 22:58:26 +00:00
mark
3b844ee813 Cleaned out some old junk.
Enabled .type directive in the ENTRY() macro.
1997-10-05 22:51:05 +00:00
mark
9752ea1553 Define the new format of a setjmp buffer.
Define macros for the magic numbers and for the various field.
1997-10-05 22:48:19 +00:00
jonathan
1203ea77f9 GNU ld script for linking standalone MIPS code (e.g., bootblocks). 1997-10-05 22:17:56 +00:00
gwr
ede5144deb read regs in the right order 1997-10-05 21:00:12 +00:00
gwr
39bf0bf971 normalize include order 1997-10-05 20:59:02 +00:00
gwr
d07537bd72 Do kernel core header initialization a little differently. 1997-10-05 20:53:41 +00:00
gwr
c669b1bdeb Do the cpu_kcore_hdr initialization a little differently.
(also fix - was not setting pg_frame, pg_valid)
1997-10-05 20:43:27 +00:00
gwr
00fe95a86e sync with sun3 1997-10-05 20:39:17 +00:00
gwr
f0f6b5ab35 cosmetic 1997-10-05 20:37:56 +00:00
thorpej
176a81b2c5 Copyright assigned to The NetBSD Foundation. 1997-10-05 18:37:01 +00:00
thorpej
616e0b7e33 Copyright assigned to The NetBSD Foundation. 1997-10-05 18:26:38 +00:00
thorpej
3b4ad2b60e Copyright assigned to The NetBSD Foundation. 1997-10-05 18:15:51 +00:00
veego
d39db07047 Update the 'depend on CPU configuration' section for the new or updated
ncr53c9x frontends.
1997-10-05 17:19:35 +00:00
veego
b59e0fd6a7 Unused files after the sfas driver is replaced by the MI ncr53c9x driver. 1997-10-05 17:12:44 +00:00
carrel
6d72f0f99f Recognize sunos binaries 1997-10-05 02:15:48 +00:00
carrel
3f5b21562b Add missing definition needed for COMPAT_SUNOS 1997-10-05 02:12:52 +00:00
carrel
cb48a4a7e4 Bring sunos compat files in when COMPAT_SUNOS defined 1997-10-05 02:11:21 +00:00
thorpej
66a1783103 Fix some license confusion. 1997-10-04 22:32:26 +00:00
gwr
4371d4ef78 Remove the while loop from zsc_intr_hard(). It caused problems on
some machines, and those that really want to can just call this
function in a loop until it returns zero.
1997-10-04 22:30:30 +00:00
gwr
6b27a0d34f Make cpu_reboot un-blank the screen (cnpollc(1)).
Validate space in page zero for the kcore header.
1997-10-04 20:03:46 +00:00
gwr
0ec1cda62f Move the call to cninit() up a level (easier to find). 1997-10-04 19:46:17 +00:00
gwr
e53d676a1d Move dumppage initialization from sun3_startup.c to machdep.c
(so it can be a normal kmem_alloc)
1997-10-04 19:39:22 +00:00
veego
43e67d00a1 Regen with the correct NetBSD RCS ID from syscalls.master. 1997-10-04 17:43:31 +00:00
thorpej
030188061e Copyright assigned to The NetBSD Foundation. 1997-10-04 17:36:56 +00:00
thorpej
0e22d3b5a3 Copyright assigned to The NetBSD Foundation. 1997-10-04 17:34:08 +00:00
veego
a05ca8674c Fix typo in the last commit. 1997-10-04 17:33:42 +00:00
thorpej
608283bedd Copyright assigned to The NetBSD Foundation. 1997-10-04 17:22:49 +00:00
gwr
bb2d22bde0 use common genassym.awk 1997-10-04 17:21:23 +00:00