Commit Graph

31207 Commits

Author SHA1 Message Date
tsubai
95faaaec9d Add NetBSD/newsmips native boot loader. 1999-07-08 11:48:03 +00:00
tsubai
e1ef4ddcb5 Define ROM monitor interfaces. 1999-07-08 11:40:24 +00:00
wrstuden
f8ea65369c Make nullfs's lkm right. 1999-07-08 01:51:57 +00:00
wrstuden
aae49442c3 We're 1.4E now. 1999-07-08 01:28:32 +00:00
wrstuden
9fc36d6807 Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c.
Update coda to new struct lock in struct vnode.

make fdescfs, kernfs, portalfs, and procfs actually lock their vnodes.
It's not that hard.

Make unionfs set v_vnlock = NULL so any overlayed fs will call its
VOP_LOCK.
1999-07-08 01:26:21 +00:00
wrstuden
9866514df5 Introduce layer library in genfs. This set of files abstracts most of
the functionality of nullfs. The latter is now just a mount & unmount
routine, and a few tables. umapfs borrow most of this infrastructure.

Both fs's are now nfs-exportable.

All layered fs's share a common format to private mount & private
vnode structs (which a particular fs can extend).

Also add genfs_noerr_rele(), a vnode op which will vrele/vput
operand vnodes appropriately.
1999-07-08 01:18:59 +00:00
wrstuden
379a26972f Modify file systems to deal with struct lock in struct vnode. All leaf
fs's other than nfs use genfs_lock() for locking.

Modify lookup routines to set PDIRUNLOCK when they unlock the parrent.
1999-07-08 01:05:58 +00:00
thorpej
6885fbe3d1 Teeny bit of style policing. 1999-07-08 01:02:44 +00:00
thorpej
ec74ea9486 Correct a comment. 1999-07-08 00:52:45 +00:00
oster
324c76b3d9 Once upon a time, long long ago, there was a "fix" added to the
RAIDframe driver to stop it from eating too much kernel memory when
writing data.  But that fix had a nasty side-affect of hurting write
performance (*much* more than I thought it would).  These changes nuke
that "fix", and instead put in a more reasonable mechanism for limiting
the number of simultaneous IO's which can be happening for each RAID device.
The result is a noticeable improvement in write throughput.  The End.
1999-07-08 00:45:23 +00:00
wrstuden
332bef3064 Regen to reflect WILLPUT & WILLUNLOCK syntax. 1999-07-07 23:33:50 +00:00
wrstuden
99a1c75bcb Update syntax to support WILLUNLOCK and WILLPUT syntax. Change calls which
really vput to indicate that rather than just WILLRELE.
1999-07-07 23:32:50 +00:00
wrstuden
e808c37d88 Add struct lock to struct vnode as first step in having vnodes export a
struct lock. Will permit layered fs's to share locks with underlying
vnodes.

Also reduce the max # of vnodes passable in a VOP from 16 to 8. As the
most we pass is 4, this shoudn't be a problem. In addition to WILLRELE
flags, add WILLUNLOCK flags to indicate that the VOP will unlock the
vnode. Add WILLPUT flags (WILLUNLOCK | WILLRELE) to indicate that the
vop will vput the passed-in vnode.
1999-07-07 23:30:03 +00:00
wrstuden
773654d7dc Add PDIRUNLOCKED which will be set by a leaf fs when it returns an error
and has unlocked the parrent vnode. Should only actually be returned if
the fs needs to unlock the parrent and has difficulty re-locking the
parrent. Needed so that layered fs's can keep track of locking.
1999-07-07 22:58:45 +00:00
thorpej
4ef1f3670d Fix a thinko which could cause a NULL pointer deref, in the PGO_FREE
case.
1999-07-07 21:51:35 +00:00
drochner
c867601f9f mount diskless root with "NFSMNT_NOCONN" (which is default in "mount_nfs"
for quite a while) to allow certain servers (multihomed, as our DEC NSE
cluster) to be used as root filesystem without special tweaks
1999-07-07 21:29:29 +00:00
thorpej
62dcdc109b In the PGO_FREE case of uvm_map_clean()'s amap cleaning, skip wired
pages.

XXX This should be handled better in the future, probably by marking the
XXX page as released, and making uvm_pageunwire() free the page when
XXX the wire count on a released page reaches zero.
1999-07-07 21:04:22 +00:00
ws
974de8f7f8 Handle misalignment in vmcmd_map_readvn and vmcmd_map_zero correctly. 1999-07-07 20:23:45 +00:00
thorpej
4e398a6ded Add some more meat to madvise(2):
* Implement MADV_DONTNEED: deactivate pages in the specified range,
  semantics similar to Solaris's MADV_DONTNEED.
* Add MADV_FREE: free pages and swap resources associated with the
  specified range, causing the range to be reloaded from backing
  store (vnodes) or zero-fill (anonymous), semantics like FreeBSD's
  MADV_FREE and like Digital UNIX's MADV_DONTNEED (isn't it SO GREAT
  that madvise(2) isn't standardized!?)

As part of this, move the non-map-modifying advice handling out of
uvm_map_advise(), and into sys_madvise().

As another part, implement general amap cleaning in uvm_map_clean(), and
change uvm_map_clean() to only push dirty pages to disk if PGO_CLEANIT
is set in its flags (and update sys___msync13() accordingly).  XXX Add
a patchable global "amap_clean_works", defaulting to 1, which can disable
the amap cleaning code, just in case problems are unearthed; this gives
a developer/user a quick way to recover and send a bug report (e.g. boot
into DDB and change the value).

XXX Still need to implement a real uao_flush().

XXX Need to update the manual page.

With these changes, rebuilding libc will automatically cause the new
malloc(3) to use MADV_FREE to actually release pages and swap resources
when it decides that can be done.
1999-07-07 06:02:21 +00:00
thorpej
ad1a5ef5cf Add a macro to modify flags in a VM map, which handles the locking
for you.
1999-07-07 05:33:33 +00:00
thorpej
f631c1adae Update a comment in uao_flush(). 1999-07-07 05:32:26 +00:00
thorpej
121fe0bc26 Don't bother returning the "slot" number from amap_add():
* Nothing currently uses this return value.
* It's arguably an abstraction violation.

Fix amap_unadd()'s API to be consistent w/ amap_add()'s: rather than
take a vm_amap * and a slot number, take a vm_aref * and an offset.

It's now actually possible to use amap_unadd() to remove an anon from
an amap.
1999-07-07 05:31:40 +00:00
danw
9d4f4eebdb reorder the fp_rnd constants to match the values used by the
powerpc fpu
1999-07-07 01:52:26 +00:00
thorpej
c4d8d19db9 pseudo-device -> defpseudo, per grammar change in config(8). 1999-07-07 00:05:28 +00:00
thorpej
5f1ede624f Make the kthread API a bit friendlier to loadable kernel modules. 1999-07-06 21:51:22 +00:00
thorpej
7b3258b6a7 Make the kthread API a bit more friendly to loadable kernel modules. 1999-07-06 21:44:09 +00:00
drochner
2df8761fac for incoming broadcasts, strip IP/UDP header correctly
wrap a line
1999-07-06 14:37:47 +00:00
christos
2f1646ea98 Remove -DDEBUG 1999-07-06 14:37:05 +00:00
itojun
dcc13cdd33 sync with KAME/NetBSD 1.4, SNAP kit 19990705.
key changes are:
- icmp6 redirect fix (dst check)
- revised ip6 multicast check for loopback i/f
- several RCS ID cleanups
1999-07-06 12:23:19 +00:00
itojun
6ea6ccf105 checked build on alpha and i386, with GENERIC.v6.
fixed several sizeof(void *) and sizeof(size_t) issues on alpha.

Thanks to: Dave Huang and Tim Rightnour
1999-07-06 08:55:56 +00:00
augustss
7875415701 Add the detach and activate entry points to the cfattach struct. 1999-07-06 07:42:23 +00:00
augustss
319c42848d Add some sanity checks. 1999-07-06 07:12:03 +00:00
mjacob
c9d36d5b4c add in (controlled by option) 2200 Expanded Lun F/W 1999-07-06 05:43:51 +00:00
itojun
f3c72d8503 fix IPSEC (but not INET6) build.
PR: 7921, 7922, 7924
From: rafal@mediaone.net
1999-07-06 05:09:22 +00:00
cgd
c1b7b40399 from the comment added to the code:
> XXX (in)sanity check.  We don't do proper datasize checking
> XXX for anonymous (or private writable) mmap().  However,
> XXX know that if we're trying to allocate more than the amount
> XXX remaining under our current data size limit, _that_ should
> XXX be disallowed.
This is one link on the chain of lossage known as PR#7897.  It's
definitely not the right fix, but it's better than nothing.
1999-07-06 02:31:05 +00:00
cgd
5cc6a54251 fix allocation handling bugs in amap_alloc1(). if the first or second
sub-structure malloc() failed, it was quite likely that the function
would return success incorrectly.  This is this direct cause of the bug
reported in PR#7897.  (Thanks to chs for helping to track it down.)
1999-07-06 02:15:53 +00:00
fvdl
a32341998c Add COMPAT_AOUT to GENERIC 1999-07-05 22:40:34 +00:00
mjacob
8fc3744ddd Upgrade 2100 F/W and add 2200 f/w. 1999-07-05 20:33:58 +00:00
mjacob
f428cf36fa Change to approved NASA/Ames copyright. Add Fabric support. Fix SCCLUN support.
Add code that tries to track LoopID shifting.
1999-07-05 20:31:35 +00:00
mjacob
3bb408eb05 Change to approved NASA/Ames copyright. Add in Qlogic 2200 support. 1999-07-05 20:28:11 +00:00
mjacob
fb44b37fd0 add some default options for the ISP (for fabric/scclun eanbles) 1999-07-05 11:38:35 +00:00
fvdl
b82e1a8b93 EXEC_ELF32 is standard now. 1999-07-05 09:14:09 +00:00
cjs
5108aad9a8 ntohl() doesn't return long, so cast it. 1999-07-05 08:15:39 +00:00
darrenr
a47ffec442 Call icmp_error() at the bottom of rip_input IFF rip_input is the handler
for the protocol in the specified packet.
Fix statistic gathering to not make bogus increments of ips_delivered and
ips_noproto for cases where rip_input() is called by a protocol handler
(such as icmp_input or igmp_input) which has already processed the packet.
1999-07-05 07:24:38 +00:00
sommerfeld
140b1ee075 Housecleaning time:
Fix and document naming convention for vnode variables (always use
lvp/lvpp and uvp/uvpp instead of a hash of cvp, vpp, dvpp, pvp, pvpp).

Delete old stale #if 0'ed code at the end.

Change error path code in getcwd_getcache() slightly (merge common
cleanup code; shouldn't affect behavior any).
1999-07-04 20:16:57 +00:00
sommerfeld
c1ecf66965 kern/5591: Fix race in the NFS socket code during umount -f and system
shutdown:

During an unmount, wake up all the processes which are waiting to lock
the socket for receive, and wait for them (and the process blocked in
soreceive, if any) to go away before blowing away the socket and the
mount structure.
1999-07-04 19:56:00 +00:00
sommerfeld
e303e2ee8b Fix kern/7906: race between unmount and getnewvnode()
mp->mnt_flags & MNT_MWAIT is replaced by mp->mnt_wcnt, and a new mount
flag MNT_GONE is created (reusing the same bit).

In insmntque(), add DIAGNOSTIC check to fail if the filesystem vnode
is being moved to is in the process of being unmounted.

getnewvnode() now protects the list of vnodes active on mp with
vfs_busy()/vfs_unbusy().

To avoid generating spurious errors during a doomed unmount, change
the "wait for unmount to finish" protocol between dounmount() and
vfs_busy().  In vfs_busy(), instead of only sleeping once, sleep until
either MNT_UNMOUNT is clear or MNT_GONE is set; also, maintain a count
of waiters in mp->mnt_wcnt so that dounmount() knows when it's safe to
free mp.

tested by running a "while :; do mount /d1; umount -f /d1; done" loop
against multiple find(1) processes.
1999-07-04 16:20:12 +00:00
chs
eb770c7b7c add "trace/t <pid>". 1999-07-04 06:45:26 +00:00
sommerfeld
6f57fc7820 fix typo in previous 1999-07-04 06:17:52 +00:00
sommerfeld
c7e5c39191 Don't permanently lose the async bit on an failed unmount 1999-07-04 06:16:29 +00:00
minoura
15a60b5359 Enable mboot. 1999-07-04 04:39:12 +00:00
minoura
208ba460f2 SCSI primary boot program and its installer. 1999-07-04 04:38:54 +00:00
itojun
9b74747370 s/splnet/splsoftnet/ in IPv6/IPsec part.
hope I made no mistake (the kernel works fine but I need a regress test)

Suggested by: thorpej
1999-07-04 02:01:15 +00:00
thorpej
cd3a345ea0 RCS ID police. 1999-07-03 21:24:45 +00:00
kleink
1821bd1d5d Bump f_flag to a full int in order to provide sufficient space to hold all
currently defined flag bits; thanks go to Bill Studenmund for noticing this.
1999-07-03 20:04:10 +00:00
thorpej
c7855f5009 Nuke unneeded include file. 1999-07-03 18:40:32 +00:00
kleink
dd24133620 Take a stab at namespace protection. For now, only the obvious problems are
addressed, the culprit being the lack of a namespace definition for an IPv6-
extended <netinet/in.h> in XNS5.2 D2.0; I'll try to work something out and
submit it to the review WG.
1999-07-03 14:04:57 +00:00
kleink
92bd36d9a9 Add namespace protection, using XNS5.2 D2.0 as a reference (which effectively
boils down to not making anything but the if_nameindex(3) interfaces available
to _XOPEN_SOURCE).
1999-07-03 13:52:29 +00:00
kleink
b9c8b2a151 Modify the previous change to:
* not declare struct sockaddr_storage in pre-XNS5.2 D2.0 environments, and
* not use __{BEGIN,END}_DECLS in a _KERNEL environment, which is not necessary.
1999-07-03 13:37:34 +00:00
tron
d2b6a2c28b Optical cleanup in WSCONS configuration section. 1999-07-03 12:09:52 +00:00
dbj
fdba65aa8c renamed splscc to splserial to match spl(9) man page
changed most of the spl* to use _splraise to match current usage
this fixes an observed bug where zstty_attach was calling splzs causing
interrupts to be turned on prematurely.
1999-07-03 08:22:53 +00:00
cgd
636e8f4688 'Dolphin' -> 'Dolphin Peripherals' where appropriate 1999-07-03 05:55:23 +00:00
cgd
111e8a47c4 Add support for 36 more SIIG PCI serial/parallel cards (for a total of 37).
This means that all SIIG PCI serial/parallel cards (described on their
web site as "I/O boards" as of July 2, 1999) should now be supported.
1999-07-03 05:38:05 +00:00
lukem
bd99d900df spell Association correctly 1999-07-03 04:45:53 +00:00
thorpej
3c83723113 Bring in additional uvmexp members from chs-ubc2, so that VM stats can
be read no matter which kernel you're running.
1999-07-02 23:20:58 +00:00
fvdl
e3fa5cc725 Fix for -Wunitialized warnings broke compiles without INET6, refix. 1999-07-02 21:02:05 +00:00
tv
80c284f9bb -Wuninitialized is not used in the NetBSD tree, explicitly. 1999-07-02 20:55:19 +00:00
itojun
144233e2d4 align a bit better. 1999-07-02 19:59:09 +00:00
itojun
e208c5c64a enable IPSEC_ESP build (still needs manual symlink).
commit to cryptosrc-intl will follow.
1999-07-02 19:58:27 +00:00
itojun
af58d5709d try to get a non-conflicting port # when bind(2) to port number 0
is called.
1999-07-02 19:57:05 +00:00
sakamoto
0ef2d3f6e2 MD defines for the MI loadfile. 1999-07-02 15:36:51 +00:00
sakamoto
f789d4809c Fix arg of delay. int -> unsigned int 1999-07-02 15:33:36 +00:00
itojun
4b961b81e3 avoid "variable not initialized" warnings on some of the platforms. 1999-07-02 12:45:32 +00:00
itojun
243585320c expand insque/remque (quick hack). fundamental fix should be done
while clarifying relationship between inpcb and in6pcb.

PR: 7891
1999-07-02 12:43:42 +00:00
itojun
f8346292af move ipsec sysctl index to IPPROTO_AH (instead of IPPROTO_ESP),
so that you can perform sysctl operation when ESP is not compiled in.
1999-07-02 08:46:47 +00:00
itojun
932ab72aee remove TIME_WAIT issue, it was false. 1999-07-02 07:36:33 +00:00
itojun
8ebf9f7039 add tcp6 port # oddity.
add splnet/splsoftnet issue.
1999-07-02 07:16:29 +00:00
thorpej
8328f07bda Fix printf format on LP64. 1999-07-01 22:47:56 +00:00
thorpej
14a2fa8169 Fix IPv6 software interrupt vector label. 1999-07-01 22:03:38 +00:00
thorpej
30f651d5b0 Const poison local printf prototype. 1999-07-01 20:46:42 +00:00
is
136b788b3d Better align memory segment table. 1999-07-01 20:14:42 +00:00
thorpej
43e7ebad4c Const poison local printf() prototype. 1999-07-01 20:11:39 +00:00
itojun
afb0d8e6e1 less warning on userland compilation. 1999-07-01 20:10:27 +00:00
itojun
1f731b1e07 avoid void * arithmetic (msg_control is now void *). 1999-07-01 20:09:57 +00:00
thorpej
11c67d01a5 Fix a corner case locking error, which could lead to map corruption in
SMP environments.  See comments in <vm/vm_map.h> for details.
1999-07-01 20:07:05 +00:00
wrstuden
b101a0685c Make fhopen use FILE_UNUSE, and don't leak file descriptors.
Patch from Jason Thorpe. Also should close PR 7889 from
Assar Westerlund <assar@sics.se> describing this problem.
1999-07-01 18:58:16 +00:00
thorpej
c859e43fbb Fix tyop. From Bill Studenmund. 1999-07-01 18:40:39 +00:00
itojun
c74aeb8363 document issues in libc extensions. 1999-07-01 18:28:55 +00:00
drochner
f3a6841709 make it compile if WSDISPLAY_COMPAT_RAWKBD is defined, but NWSDISPLAY not,
reported by Kazushi Marukawa <jam@pobox.com>
1999-07-01 11:18:20 +00:00
itojun
118d2b1d4f IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.
1999-07-01 08:12:45 +00:00
itojun
9765602d90 add PR_LISTEN for UNIX domain socket, SOCK_STREAM case. 1999-07-01 07:59:57 +00:00
itojun
5effafcaa6 kernel configuration for IPv6/IPsec. should be in GENERIC in the future.
(source code will be committed soon)
1999-07-01 07:00:12 +00:00
darrenr
4607be6533 define PR_LISTEN to indicate listen(2)/accept(2) support 1999-07-01 05:56:53 +00:00
darrenr
cd92b615fa fix sys_accept() to return EOPNOTSUPP for protocols which don't support
listen/accept (PR_LISTEN flag in protosw) and detect obvious faults in
parameters passed.  It is still possible for the address used for copying
the socket information to become invalid between that check and the copyout
so close the connection's allocated fd if the copyout fails so that we can
return EFAULT without allocating an fd and the application not knowing about
it.  Ideally we'd be able to queue the connection back up so a later accept
could retrieve it but unfortunately that's not possible.
1999-07-01 05:56:32 +00:00
darrenr
67cac86e57 add PR_LISTEN to protocols which support listen(2) 1999-07-01 05:53:04 +00:00
ragge
1647688f0d Use pmap_steal_memory() for early memory allocation. 1999-06-30 19:31:33 +00:00
ragge
8783dd4166 MSCP moved. 1999-06-30 18:48:06 +00:00
ragge
9c7dfb8eb4 Outdated; moved to another location. 1999-06-30 18:47:03 +00:00
ragge
996e5bf55a Stop the network interface after kernel is loaded but before starting it.
Not doing this caused packets to be read into memory somewhere after the
kernel was started but before the device was probed, normally in the
system page table. This gave quite unpredictable results...
1999-06-30 18:38:03 +00:00
ragge
a406e5332c Clean up the boot command selection a bit. Add a command "halt". 1999-06-30 18:33:33 +00:00
ragge
3b8e9ab16d Support loading the kernel from ustarfs. 1999-06-30 18:30:42 +00:00
ragge
04620b62b5 Search for include files in new locations. 1999-06-30 18:19:26 +00:00
drochner
6d864c0914 add driver for the Bit3 PCI-VME adapter, without the DMA parts for now 1999-06-30 17:45:38 +00:00
fair
3a845702d7 A reference to http://members.hyperlink.net.au/~chart/pci.htm in comments;
this new effort at collecting PCI data outside the PCI SIG replaces the
one that was referenced in here before.

No regeneration required.
1999-06-30 16:52:52 +00:00
tsubai
654e155756 Display verbose messages about L2 cache. 1999-06-30 16:34:19 +00:00
drochner
33104934d9 update for new VME framework 1999-06-30 15:18:58 +00:00
drochner
83eb712e3c update for new VME framework 1999-06-30 15:07:45 +00:00
drochner
44418fdf70 new, more mi, VME framework 1999-06-30 15:06:05 +00:00
is
b4b3d042fd Only check for ETXTBSY if the access would otherwise be allowed.
Needed to fix pr4134.
1999-06-30 10:00:06 +00:00
augustss
b177c7a397 Totally redo the way device detach is done. It now uses a kernel event
thread and the config detach method.
Squish a number of space leaks on detach.
1999-06-30 06:44:22 +00:00
augustss
dd048d428b Make it possible to detach wsmouse and wskbd.
XXX wskbd probably needs some more work.
1999-06-30 06:21:21 +00:00
nisimura
b57c6ad0bc - _insque()/_remque() used by CODA. 1999-06-30 03:52:04 +00:00
chopps
dc3a7247ce add multicast address like everyone else, using if_ioctl 1999-06-30 03:32:40 +00:00
fvdl
811a6162c3 Allow execution of shared objects. This is silly, but is allowed in,
for example, Solaris and Linux, and at least one Linux ldd implementation
even depends on it.
1999-06-29 23:39:06 +00:00
wrstuden
6e06666498 Add fhopen, fhstat, fhstatfs syscalls. Also move getfh in from the nfs
syscall code.
1999-06-29 22:18:47 +00:00
wrstuden
a9e728797e regen. 1999-06-29 22:17:39 +00:00
wrstuden
d55b282c54 Add fhopen, fhstat, fhstatfs. 1999-06-29 22:15:31 +00:00
ad
aa5b341705 Kill duplicate RCS ID line at top of file. 1999-06-29 21:00:27 +00:00
is
a183cb63ae Fix horizontal timings for console mode (this helps, at least,
Lars Hecking).
1999-06-29 19:51:28 +00:00
ross
ced3118f58 * sprintf -> snprintf
* add a few alpha_mb() ops as called for by folklore and rumour
1999-06-29 17:10:57 +00:00
augustss
2c01d202a6 Add another USB memory type to ease tracking of leaks. 1999-06-29 16:45:14 +00:00
ross
cf1ca54803 Minor Tsunami-related changes. 1999-06-29 07:22:25 +00:00
ross
6068f64d34 * If the cpu_model string contains some form of MHz , don't print
the rpb field also.
* Add dot_conv(), hex format conversion for long hex digit strings.
1999-06-29 07:21:30 +00:00
ross
10f1f2d81f Prototype dot_conv(), new routine in machdep.c that formats an alpha
long like this: e081.8000.8000.0004
1999-06-29 07:18:23 +00:00
ross
724273c3c0 System support for ev6 (21264) systems. 1999-06-29 07:08:53 +00:00
ross
b0947ec27d Turn on EV6 bits: Tsunami and system type 6600. 1999-06-29 07:04:15 +00:00
ross
3714f3754f Turn on dec_6600_init, "DEC_6600". 1999-06-29 06:50:41 +00:00
ross
0f707bdb06 Identify the various ev6 pass numbers.
Also print the raw pass number rpb value as, say, `21264-4', like SRM does.
1999-06-29 06:49:36 +00:00
ross
7a27e79bff Support for EV6 Tsunami core logic and system type 6600.
This covers most or all of the presently-available 21264 systems.
1999-06-29 06:46:46 +00:00
briggs
819a054df2 Poll for serial interrupts. Return to 3000us delay instead of 4000us in init. 1999-06-29 04:45:59 +00:00
pk
3c6560a597 More ugly code to force early configuration of the sun4 on-board timer. 1999-06-28 22:40:15 +00:00
pk
61f60a2fbe Allow SFILES to be empty; from Julian Coleman. 1999-06-28 21:03:23 +00:00
pk
bd0ac6506c Prepare entry for `hme at sbus'; commented out until driver is finished. 1999-06-28 20:26:47 +00:00
pk
4fe4dae943 Ignore (but still generate a console warning) unhandled user-generated traps. 1999-06-28 15:51:26 +00:00
minoura
6895a21734 Correct imbalance #if. 1999-06-28 15:35:04 +00:00
pk
7c5f595062 mmu_pagein() prototype: change address argument to `vaddr_t'. 1999-06-28 14:44:57 +00:00
pk
5814a13657 mmu_pagein: refuse kernel space addresses here. 1999-06-28 14:41:43 +00:00
ragge
1e7b5cf8ae Wrong definition of SID for MicroVAX I, from Brian Chase. 1999-06-28 13:13:53 +00:00
itojun
427639cdce - Call ip6intr if INET6 is defined.
- remove "need-flag" for mac68k esp driver, as it is not used in anywhere
  and conflicts with IPsec ESP header.

This should be the only MD change in IPv6 support, except kernel config file.
Very sorry if you have any compilation problem with it (I believe it is okay).
If your favorite arch is not included in here, please add a
call to ip6intr() from softintr handle.
1999-06-28 08:20:40 +00:00
explorer
12b25faeaf KNFify. Add LINK1 flag to turn off that address munging thing, for cases
where the tunnel endpoint is not the same as the remote GRE destination.
1999-06-28 07:52:38 +00:00
itojun
74d3c214ec KAME/NetBSD 1.4 SNAP kit, dated 19990628.
NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.
1999-06-28 06:36:47 +00:00
briggs
79fe772f46 Include a bit more info about what's not happening with IOP. 1999-06-28 04:33:21 +00:00
briggs
598b09009b Include resourcevar.h for p_limit/rlimit definition. 1999-06-28 04:21:15 +00:00
augustss
622f3d3db5 Regen. 1999-06-28 04:10:26 +00:00
augustss
f69aea19d2 Add some weirdo modem. 1999-06-28 04:09:53 +00:00
sakamoto
8b9b340040 remove display.h 1999-06-28 02:44:49 +00:00
sakamoto
0d8aecad83 Description of making bootable floppy disk for NetBSD/bebox. 1999-06-28 02:19:37 +00:00
briggs
71a4446b04 Unfortunately, several changes that are intermingled:
- Add initial IOP support.  ADB doesn't work yet for me, but it's here so
  that others will be encouraged to work on it.  ADB_HW_IOP basically
  is configured as a NOP so that serial consoles will continue to work.
- Roll via1_intr and via2_intr into the intr.c scheme--this also required
  changing rtclock_intr to grovel the stack differently so that hardclock
  gets the right arguments and softclock() doesn't get all reentrant.
- Make via1 interrupts parallel to via2 interrupts--handlers get a pass-
  through pointer and we can register handlers.  Register via1 interrupt
  with intr_establish()--normally level 1, level 6 for A/UX scheme.
- Use intr_establish() to set real via2 interrupt handler instead of the
  hacked function pointer.
- Reorganize adb-direct interrupts so that a function call is removed.
- Implement A/UX interrupts for all Quadras right now.  We may need to
  special case some Quadras, but Linux folks are reporting success on
  several models.
- Fix intrnames to be accurate for the normal, PSC, and A/UX interrupt
  configurations.
1999-06-28 01:56:55 +00:00
briggs
f9de07203c Add some constants from Linux/mac68k to note SCC, floppy, and SCSI registers.
Add some code, inspired by Linux/mac68k, to shutdown all DMA on the PSC
at startup and to disable and clear all interrupts except the SCC.
1999-06-28 01:41:13 +00:00
sakamoto
d897c73dfc correct tgets loop. 1999-06-28 01:35:11 +00:00
sakamoto
d32f22724c Use loadfile.
KNF
b* -> mem*
1999-06-28 01:20:43 +00:00
sakamoto
a6ad37379e Add elf2pef and mkbootimage. 1999-06-28 01:08:05 +00:00
sakamoto
70b8755876 Convert ELF image into PEF image.
some KNF
1999-06-28 01:03:55 +00:00
sakamoto
9b0b219ff6 Moved from /cvsroot/syssrc/sys/arch/bebox/stand/boot/pef.h,v 1999-06-28 00:56:31 +00:00
sakamoto
8ab4e1005a Moved to /cvsroot/syssrc/sys/arch/bebox/stand/elf2pef/pef.h,v 1999-06-28 00:56:30 +00:00
sakamoto
e6fae19e1f Moved from /cvsroot/syssrc/sys/arch/bebox/stand/boot/magic.h,v 1999-06-28 00:56:03 +00:00
sakamoto
52fc791782 Moved to /cvsroot/syssrc/sys/arch/bebox/stand/elf2pef/magic.h,v 1999-06-28 00:56:02 +00:00
sakamoto
f1be5c4181 Moved to /cvsroot/syssrc/sys/arch/bebox/stand/elf2pef/elf2pef.c,v 1999-06-28 00:51:11 +00:00
sakamoto
13ba815119 Moved from /cvsroot/syssrc/sys/arch/bebox/stand/boot/elf2pef.c,v 1999-06-28 00:51:10 +00:00
sakamoto
5b75eca570 mkbootimage makes bootable BeOS DR8 filesystem(a.k.a. obfs) image. 1999-06-28 00:35:22 +00:00
briggs
d6205b71c6 Undo some of my recent changes that were misguided. 1999-06-27 23:43:37 +00:00
christos
dfa695b9a7 Add missing phy's 1999-06-27 22:35:56 +00:00
christos
ce110dd283 Add missing phy's. Increase miniroot size 1999-06-27 22:35:43 +00:00
is
f4351f7b96 Don't even try to output to, scroll or clear the device if we are in graphics
mode. On this chip, we need to access some registers to set the text plane,
which messes up the graphics setup.
This should fix the grf3 problems reported by several people.
Michael Hitch and Joerg Lehners analyzed the problem and provided the fix.
1999-06-27 21:17:17 +00:00
christos
4440b677e2 add vr* at pci?, sort 1999-06-27 15:58:18 +00:00
drochner
dbd86a254c add driver for realtek 8129/8139, from freebsd, with mii stuff kicked out 1999-06-27 15:19:40 +00:00
drochner
746543928c regen 1999-06-27 15:15:00 +00:00
drochner
120b30daf4 add some realtek 8139 clones 1999-06-27 15:13:54 +00:00
minoura
1330797741 Restore scroll registers after X server exits. 1999-06-27 14:14:30 +00:00
minoura
c88662958f include sys/resourcevar.h to be compiled. 1999-06-27 14:13:14 +00:00
pk
a7e4d3ac4d Add the Sbus front-end for the HME driver. 1999-06-27 12:47:52 +00:00
pk
2688b883b3 Declare the `hme' device. 1999-06-27 12:43:08 +00:00
pk
5041f2a9dd HME ethernet driver.
Note: this is work in progress; needs testing and tweaking. mgr has
promised to do that..
1999-06-27 12:26:32 +00:00
ross
d13c150e3b include <string.h> for memset(3) when compiling userland test setup 1999-06-27 06:18:33 +00:00
cgd
8375a442f7 wildcard root spec, or MEMORY_DIS_IS_ROOT won't work right 1999-06-26 23:17:04 +00:00
mrg
7683f14172 enable xbox and ppp 1999-06-26 18:47:15 +00:00
briggs
eb7ff0a96f Quadra 900/950 SCC-compatibility serial support is at an offset of 0x20
bytes from the base SCC address.  With this change, serial console works
on my Q950 if the MacOS control panel is used.
1999-06-26 18:29:28 +00:00
simonb
29f88d843b Since we know the start and end addresses of the symbol table, subtract
these and pass as the first parameter of ddb_init().  We used to pass
the contents of the start of the symbol table cast to an int, which for
an ELF kernel is "0x7f ELF" - not quite the symbol table size!  How this
used to ever work I dunno...
1999-06-26 17:03:48 +00:00
simonb
3187dcd798 Fix tyop in error message. 1999-06-26 16:58:12 +00:00
tron
b2c4582d6d Regen. 1999-06-26 16:26:57 +00:00
tron
0ddfad8dfa "www.usb.org" says that:
a) Logitech has vendor ID 0x046d.
b) That vendor ID 0x05ac is Apple Computer.
1999-06-26 16:26:20 +00:00
tron
6e72bbdb8a Regen. 1999-06-26 15:21:17 +00:00
tron
62f6e7122f Correct description of vendor "LOGITECH": this is not Apple. 1999-06-26 15:20:53 +00:00
matthias
c343d282b0 Pull over some changes from the i386 port to fix the kernel RSS counters. 1999-06-26 09:09:51 +00:00
augustss
3fd5344a95 Add suspend/resume handling to the UHCI driver.
Currently it only works if the BIOS saves enough state of the controller.
Once I find a machine with a dumber BIOS I'll try to improve that.
1999-06-26 08:30:17 +00:00
augustss
94b815050e Add powerhooks, i.e., the ability to register a function that will be
called when the machine does a suspend or resume.
XXX Will go away when Jason's kevents come to life.
1999-06-26 08:25:25 +00:00
cgd
e9969b5e0d need md if we want a miniroot 1999-06-26 07:29:18 +00:00
cgd
4bb852a2c8 Add a shark kernel with ramdisk for a miniroot file system. 1999-06-26 07:00:44 +00:00
cgd
ecc0edc397 clean up memory disk options 1999-06-26 06:56:26 +00:00
sommerfeld
b7c70d2b2f If the new global variable hostzerobroadcast is zero, no longer assume
address zero of each net/subnet is a broadcast address.
(The default value is nonzero, which preserves the current behavior).

This can be set using sysctl; the boot-time default can also be
configured using the HOSTZEROBROADCAST kernel config option.

While we're here, defopt HOSTZEROBROADCAST and SUBNETSARELOCAL
1999-06-26 06:16:47 +00:00
thorpej
c52d839a6e Nuke some code ripe for garbage-collection. 1999-06-26 03:15:54 +00:00
augustss
701eca7576 Remove unneeded #include. 1999-06-26 03:14:25 +00:00
cgd
2055d9d08d emulate (parts of) flock 1999-06-26 01:24:41 +00:00
cgd
1e29f2fb1f convert flock struct 1999-06-26 01:23:23 +00:00
cgd
b9c997eba9 flock struct and related constants and types 1999-06-26 01:21:30 +00:00
augustss
7ef0c8eef3 Add a quirk for mice with reversed Z-axis. 1999-06-26 00:09:15 +00:00
augustss
55fbc23acc Regen. 1999-06-26 00:08:15 +00:00
augustss
c4c81ec6fa Add another Logitech mouse. 1999-06-26 00:07:35 +00:00
perseant
c951c272b0 Fixes PR #1206, by setting va_mode and va_flags in the copied-up vnode's
attributes.
1999-06-25 19:05:49 +00:00
thorpej
59da37b37e Go to splbio() when calling scsipi_free_xs(), just like the SCSI counterpart.
Fixes PR #7853, Paul Dokas <dokas@cs.umn.edu>.
1999-06-25 18:58:54 +00:00
nisimura
09a2fed6f9 - Show 1bpp for MX during configuration stage.
- Replace memory layout 'struct' with array/pointer access.
1999-06-25 03:33:20 +00:00
sakamoto
b1790e3799 Sync with i386. 1999-06-25 01:54:39 +00:00
pk
c118a70deb When overriding cache flush functions for specific cpu models, make
sure to update the correct function pointers in `cpuinfo'.
1999-06-24 20:22:12 +00:00
pk
4f2e48c4d2 Don't turn on the engine too early.
Add and use QEDEBUG.
1999-06-24 19:59:14 +00:00
pk
9335333dee Issue a reset command when initializing. 1999-06-24 19:56:51 +00:00
ad
118d1e7afa Remove a few entries for nonexistant TC graphics boards. 1999-06-24 18:47:58 +00:00
kleink
7b67bca335 Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
1999-06-24 14:18:10 +00:00
kleink
346afb20f6 Name space protection. 1999-06-24 14:07:44 +00:00
tsubai
5b34d35e45 findroot() should also use "compatible" property. 1999-06-24 08:14:48 +00:00
nisimura
8dd0e06ba1 - Hide memory mapped VDAC hardware register layouts using the array
element access instead of C bitfield (hello, BCPL).
- XXX Some TURBOchannel framebuffers might need shutdownhooks().  It
seems not necessarily hardware sprite cursor images are re-initialized
by DECstation PROMs upon exits from kernel.
- XXX It'd be an arguable point to allow user programs to change the
shade of gray freely for pixel value 0 and 1.
1999-06-24 03:51:14 +00:00
sakamoto
129b091aa8 Use powerpc's header. 1999-06-24 01:35:33 +00:00
sakamoto
cce254bef2 Add some declarations. 1999-06-24 01:33:08 +00:00
sakamoto
4364147a17 include machine/intr.h
CACHELINESIZE enabled with defined(_STANDALONE).
1999-06-24 01:28:02 +00:00
sakamoto
943b8c34be Sync with i386's fd.c, fdreg.h. 1999-06-24 01:22:19 +00:00
sakamoto
fb1608de31 Comment out MKDEP SFILES. bebox dir has only locore.s.
include bsd.own.mk.
1999-06-24 01:19:51 +00:00
sakamoto
dfb8f015ec display.h doubly exists in include and include/pc. 1999-06-24 01:16:52 +00:00
sakamoto
95dac23012 Some cleanup.
Move bootinfo related things to boot.c
and console related things to cons.c.
1999-06-24 01:10:31 +00:00
nisimura
463e258cdb - Allow to choose the 'color' of sprite cursor. Only red cmap makes sense.
- Drop TC Alpha support (OSF/1 and Digital UNIX never supports PMAG-AA).
1999-06-23 23:48:28 +00:00
thorpej
b59b8bd5c6 Enable DDB history. 1999-06-23 22:42:52 +00:00
leo
7a4fed2916 Allow the loading of compressed kernels. This makes it again possible
to make a 'system disk' on a 720KB floppy that is usable.
1999-06-23 19:26:13 +00:00
bouyer
4fd8325ec6 Resurect the old register read/write test for non-ATA/ATAPI drives, to avoid
false matches on controllers which properly respond to a WDCC_RECAL command.
Should close PR port-i386/7702 (the author tested this patch, and said it
solves his problem).
1999-06-23 19:00:17 +00:00
minoura
b749d34eb9 I forgot to commit this. 1999-06-23 15:20:36 +00:00
mjl
52d0d1398b Regen after tyop. 1999-06-23 10:41:08 +00:00
mjl
1720673bc2 Corrected tyop. 1999-06-23 10:40:16 +00:00
mjl
2abd78cfd3 Regen. 1999-06-23 10:37:10 +00:00
mjl
e44e18cc01 Add manufacturer Lasat Communications A/S, product Lasat Credit 288 Modem. 1999-06-23 10:36:19 +00:00
marc
cd040ea927 s/mkdir/mkdir -p/, since not all the parents of $(FONTDIR) are
guaranteed to exist.
1999-06-23 04:29:28 +00:00
abs
b02dbae17e In xxx_mediachange(), if there is no callback to the front-end, just
return 0 instead of EINVAL.  In this case, there will only be one media
type, and the upper-level if_media code will ensure that the user is
setting to that type.
This matches changes Jason made a while back to sys/dev/ic/lance.c
1999-06-23 04:17:10 +00:00
nisimura
839bcbbe9f - Fix an error in the depth of PMAG-AA MX. This driver can take 72Hz
virtical video retrace interrupt and was verified ok on Nanao grayscale
monitor.  XXX seems still confusion/mistake on Bt431 cursor image
manipulation.
1999-06-23 01:58:22 +00:00
christos
b953fb0414 bring back my friend the twiddle. 1999-06-22 22:44:16 +00:00
christos
16e8020994 Nuke obsolete printf comment. 1999-06-22 22:09:49 +00:00
is
7a132d78b7 Align adresses better 1999-06-22 21:12:00 +00:00
oster
7824f40e5f Add a '#include <sys/resourcevar.h>' to each of these to allow them
to compile again.
1999-06-22 14:51:57 +00:00
tsubai
a2ded1ab73 NVRAM read/write functions. 1999-06-22 13:12:11 +00:00
tsubai
2068c8b6e4 Use RTC on PB. 1999-06-22 11:29:11 +00:00
sakamoto
a9088f55c8 Add casts for -Wall. 1999-06-22 02:04:06 +00:00
sakamoto
40629ff8cc rename pms to opms. 1999-06-22 01:48:33 +00:00
sakamoto
4763a9b0a0 Remove sc_id member from fdc_softc. 1999-06-22 01:41:48 +00:00
sakamoto
f93507970d Use powerpc/reg.h 1999-06-22 01:39:43 +00:00
sakamoto
ade7d52fc9 Use powerpc/pmap.h. 1999-06-22 01:38:38 +00:00
wrstuden
17900cd587 Install ofwboot.elf in addition to ofwboot. Thanks to Chris for info on how
to do this!
1999-06-21 21:02:49 +00:00
ad
7a71d12944 Clear out 'struct fbdevice' cruft; it represents bitrot on pmax. Add
#ifdef'ed out definition for 'struct fbsoftc', the way forward until
[nisimura-pmax-wscons] is merged.
1999-06-21 19:21:10 +00:00
ad
5756acc071 Cleanup. 1999-06-21 19:07:16 +00:00
ad
ebd6cdffde px.c requires that qvss_compat.c be compiled in. 1999-06-21 19:05:10 +00:00
thorpej
abb48c5b71 Protect prototypes, certain macros, and inlines from userland. 1999-06-21 17:25:11 +00:00
ragge
51dd099ef5 Add DW750 and DW780 UBA support. Still no BDP's. 1999-06-21 16:23:00 +00:00
mrg
5425cbfa41 fix compile warning. 1999-06-21 06:28:33 +00:00
sommerfeld
c45e268d01 Fix PR7373 for real: Rearrange locking to avoid need for LOCKPARENT in lookup 1999-06-21 05:11:09 +00:00
sommerfeld
8d750c058f regen (no actual change, but comments in the master file changed) 1999-06-21 02:30:53 +00:00
sommerfeld
9bad197221 Correct comment about how LOCKPARENT affects VOP_LOOKUP 1999-06-21 02:28:46 +00:00