wrstuden
6dfc303f3b
Add PDIRUNLOCK support.
1999-08-02 22:58:29 +00:00
matt
864afe0bc7
Add video blanking support. It does not power-down the TFT
...
since that requires talking to the H8 microcontroller and
that support is not yet done.
1999-08-02 20:36:57 +00:00
augustss
caffcd4895
Another debug message.
1999-08-02 19:49:50 +00:00
augustss
2d4d29a1fa
Test return values the right way.
1999-08-02 19:36:48 +00:00
augustss
094852eb36
Change it so that a pipe can be open RW instead of just R or W.
...
This makes close() work properly, but it is still not ideal. Perhaps
there should be different device nodes for input and output on to
and endpoint with the same number?
Pay attention to the SHORT_XFER_OK ioctl().
1999-08-02 19:32:56 +00:00
augustss
d2db832909
Do abort of transfers in a sane way. Fixes PR 8041.
1999-08-02 19:30:34 +00:00
wrstuden
3954583ce7
Teach nfs_lookup() to set PDIRUNLOCK when appropriate. Should resolve
...
PR 8051 by Konrad Schroder.
1999-08-02 18:58:23 +00:00
matt
016599a30b
Colormaps now work. Besides a small fencepost error, the real problem
...
is that the Tadpole 3GX tech-ref-man was WRONG. The RAMDAC registers
at at 4 byte offsets, not 8. Once that was discovered, all the code
just worked.
1999-08-02 18:00:21 +00:00
augustss
dd3788e008
Alphabetize.
1999-08-02 17:44:59 +00:00
augustss
42fb510148
Move the mpu device declaration to conf/files.
...
Let the mpu device attach at the sb device, and then midi at the mpu.
Update the mpu at eso attachment.
1999-08-02 17:37:41 +00:00
jdolecek
cd613f7348
ntfs_{read|write}ntvattr_plain(): bread() can return maximum one block
...
worth of data under NetBSD -- FreeBSD bread() seems to be able to
return more data and code counted with it
it's possible to actually mount NTFS volume now
1999-08-02 15:31:31 +00:00
ad
233d3887c1
In pm_screen(), return 0 if fballoc() fails, not 1.
1999-08-02 12:52:27 +00:00
mrg
39a5b02150
if there are no FB devices, tc_consprobeslot() fails always.
1999-08-02 12:01:46 +00:00
itojun
6f3fbf1ce6
remove sys/netinet6/in6_systm.h, as it is very empty.
...
crypto-us IPSEC build will be broken.
could someone please update?
1999-08-02 11:04:38 +00:00
darrenr
01f3c66113
merge patch from PR#6279 as suggested some time ago.
1999-08-02 08:34:50 +00:00
nisimura
9ab80b75b8
- Fix MX framebuffer size which should occupy 2MB in address range.
...
- Restore 72Hz interrupt service mistakenly ruined in the previous commit.
1999-08-02 06:00:40 +00:00
nisimura
e78e58a7b8
- Fix TX 8bpp framebuffer size, which occupies 2MB.
...
- Rework CX RAMDAC register access like as other TC framebuffers.
1999-08-02 04:19:03 +00:00
matt
f7141a0ffb
The Tadpole 3GX uses a modified Sun Mouse protocol. Instead of
...
sending 5 bytes per sample, it sends 3 omitting the 2nd set of
dx/dy updates. You can distinguish between the two forms since
the first byte of 5-bytes seq will be 0b10000xxx which a 3-byte
will have 0b10001xxx. This changes allows the Xsun server to
run unchanged on the Tadpole 3GX (ignoring for now that the
colormap is still broken).
1999-08-02 01:50:27 +00:00
matt
825e233d2e
Allow the mouse baud rate to be patched (rather than forcing a recompilation
...
of the kernel). Also, if the mouse baud rate is 0, say the mouse the isn't
there (so a terminal may be attached in its place). Make debugging mouse
problems much easier.
1999-08-02 01:44:22 +00:00
christos
2f73c9bc1d
sparc is not defined anymore... Use __sparc__ and __i386__. Also default
...
to the standard elf NOADDR...
1999-08-01 23:55:40 +00:00
sommerfeld
d96e35f23c
Fix PR4439: directory link count in unions where only upper directory
...
exists is bogus. The goal here is to produce a synthetic link count
which won't confuse fts and similar routines which "know" that
directories with a link count of 2 don't have subdirectories (and
thus, they can avoid having to stat every entry in the directory
looking for subdirectories which aren't there).
We know that non-UNIX filesystem implementations may return a link
count of `1' for directories with an indeterminate number of
subdirectories; if either the upper or lower layer returns a link
count of `1', return a link count of 1. If both layers return a link
count of 2, return a link count of 2; otherwise, return the sum of the
link count of both layers.
Also, fix PR7430: unionfs ignores read-only mounts. Check for
MNT_RDONLY in union_lookup (more-or-less as in layer_lookup) as well
as union_access() and union_setattr().
Note that a read-only union layer may still cause side effects on the
underlying filesystems... Most notably, we'll still attempt to create
shadow directories in the upper layer. Also, of course, we'll
side-effect atimes in the lower layer.
1999-08-01 23:16:34 +00:00
thorpej
868dfcb228
Store computed PSL values in an array indexed by abstract interrupt
...
level, rather than individual shortwords.
1999-08-01 21:50:17 +00:00
thorpej
6489500f0a
Make sure the branch target of the delay loop is aligned to a cache
...
half-line (8-byte) boundary. Inspired by a discussion w/ Scott Reynolds.
1999-08-01 21:43:04 +00:00
thorpej
d721481d50
Make sure the branch target of the delay loop is aligned to a cache
...
half-line (8-byte) boundary. Inspired by a discussion w/ Scott Reynolds.
1999-08-01 21:32:17 +00:00
thorpej
22d6c3f13b
Fix APCI console initialization; we were forgetting to update cn_tab.
...
From Christoph Badura.
1999-08-01 21:30:21 +00:00
thorpej
9c48987e94
Ooops, add a missing break.
1999-08-01 18:17:26 +00:00
augustss
694384f946
Add the MPU 401 ISA attachment.
1999-08-01 18:16:35 +00:00
augustss
cbf1f6f1b9
Move the MPU driver isa/ to ic/.
...
(I didn't move it in the repository because the revision history
is very short and uninteresting. :)
1999-08-01 18:05:39 +00:00
augustss
0c0dc211d4
Make an MPU attachment to ISA. Used for old Roland cards. Written
...
by me and gson@araneus.fi (Andreas Gustafsson).
1999-08-01 17:53:39 +00:00
ragge
6ca9b225e7
Add a timeout-routine that checks if transmit logic dies, and reset it
...
in that case. This is not uncommon when the interface is heavy loaded.
1999-08-01 15:25:41 +00:00
ragge
8f9615d62c
A bunch of changes:
...
- Free pte pages not in use anymore.
- Inline pmap_extract().
- Fix annoying page reference/modify bug. Fixes PR#7858 & PR#7859.
1999-08-01 13:48:06 +00:00
ragge
870769b516
Cpu_swapin() only need to set red zone now.
1999-08-01 12:07:31 +00:00
scw
ba922d31d8
Re-work the Tx side to avoid calling into the tty layer at
...
interrupt time. This was the cause of the 'mmu fault' panics
seen by several people, as the Tx interrupt is at a higher
priority that spltty().
1999-08-01 09:35:05 +00:00
veego
9baa857f5b
Regen.
1999-08-01 08:32:48 +00:00
veego
9657de4af2
Add an entry for the TI PCI1211 PCI-CardBus Bridge.
...
From the cardbus patches.
1999-08-01 08:32:08 +00:00
thorpej
a843b027bd
Sync w/ the i386 port. Fixes some bugs in the conventional interrupt
...
heirarchy. Reviewed by sakamoto@netbsd.org .
1999-08-01 07:52:22 +00:00
matt
d8f4dbb171
fix a few mmap bugs. pretend to be a cg3 and implement a hack
...
to fack the Xsun server to believe that the p9100's framebuffer
is really a cg3's. So if only colormaps worked, X would be able
to run.
1999-08-01 06:27:00 +00:00
matt
4b814be9cf
Initial stab at a P9100 console FB driver for the Tadpole 3GX.
...
It supports RASTERCONSOLE only and the colormap support is
broken (the hardware doesn't seem to be doing what the tech.
docs. say it should be doing). But it is usable as a console
(but with blue on white as the only color choice). I figured
I'd check it in since it is somewhat usable and someone else
might figure what I screwed up in the color map support.
1999-08-01 00:23:48 +00:00
sommerfeld
cb448a064d
Fix PR5146: reboot with working directory in unionfs causes
...
"panic: lockmgr: using decommisioned lock"
(only if DIAGNOSTIC)
The problem turned out to be due to the way LK_DRAIN was (not) handled
in union_lock; it just got passed through to the lock on the upper
vnode (which got marked as decommissioned, instead of that happening
to the union vnode. When the upper vnode was next locked (typically
when it was released), it went kaboom.
1999-08-01 00:00:57 +00:00
sommerfeld
29469abdbd
On forced unmount, do a few passes of non-forced cleanups and then do
...
a single forced pass. Along for the ride with PR5146 fix.
1999-07-31 23:56:15 +00:00
sommerfeld
d6fd753892
Let arm32 kernels build after addition of wsmux.
1999-07-31 23:12:20 +00:00
thorpej
749eee308d
If building without ITECONSOLE, don't install our own NMI handler. Just
...
leave the ROM's NMI handler in place.
1999-07-31 21:49:03 +00:00
thorpej
f4da661b4a
Nuke the DCA check. ACPI can only be console on a 425e.
1999-07-31 21:17:08 +00:00
thorpej
c870d5243c
Skip "serial 1" on non-425e models. It's mapped to DCA at 9 on every
...
other 4xx model, and the "not configured" could be pretty annoying.
1999-07-31 21:15:20 +00:00
thorpej
e1f99936c8
Nuke apcicheckdca(). Since "serial 1" only exists as an APCI serial
...
port on the 425e, key off that instead.
1999-07-31 21:14:36 +00:00
thorpej
232492c350
Oops, forgot to add MMUID_385.
1999-07-31 20:50:48 +00:00
thorpej
5ab8857d4e
Add HP385.
1999-07-31 20:19:31 +00:00
thorpej
f7b10e4c9f
defopt HP385.
1999-07-31 19:56:48 +00:00
thorpej
72fa12a41c
Oops, forgot the HP_385 case in identifycpu().
1999-07-31 19:52:35 +00:00
itojun
70ada0957e
sync with recent KAME.
...
- loosen ipsec restriction on packet diredtion.
- revise icmp6 redirect handling on IsRouter bit.
- tcp/udp notification processing (link-local address case)
- cosmetic fixes (better code share across *BSD).
1999-07-31 18:41:15 +00:00
thorpej
ca091a5e33
Fix oversight in last.
1999-07-31 17:20:22 +00:00
christos
93146392a8
OpenBSD patch to prevent non-root users who own block or character devices
...
(typically ttys or ptys) from changing the flags on them. [Commit by cjs.]
1999-07-31 03:18:43 +00:00
thorpej
7d1889a8bd
Identify the 385 and 425e. Partially from OpenBSD.
1999-07-31 01:26:04 +00:00
thorpej
7c21482563
Add 385 and 425e SPU detection. From OpenBSD.
1999-07-31 00:45:28 +00:00
thorpej
834772047c
Add MMUIDs for the 385 and 425e, and a machine ID for the 385. From OpenBSD.
1999-07-31 00:28:20 +00:00
matt
d4b9056054
Add preliminary support for the built-in modem on Tadpole 3GX/S
...
laptops. There is currently something wrong with the interrupt
code but it does attach and sense a 16550a. (anyways the built
in modem is only a 14.4Kb and you'd really want to use a PCMCIA
modem to get faster dialup rates).
1999-07-30 23:58:25 +00:00
matt
8c0f3c5a5f
Add config file specificially for Tadpole 3GX/3GS laptops.
...
It save ~800KB over the standard GENERIC config file.
1999-07-30 23:55:43 +00:00
augustss
b6b44d6809
Eliminate the need for needs-count for wsmux. This should make
...
wsdisplays work properly again.
1999-07-30 20:52:27 +00:00
thorpej
fff1639c50
GRR! Kludge around the extremely annoying wsmux configuration lossage
...
by removing the "| wsdisplay" from the wsmux.c file declaration. This
will cause any kernel which includes wsdisplay but not wsmux explicitly
to fail to link, but at least those of us with multiple wsdisplays on
a single machine can build kernels again.
1999-07-30 20:42:16 +00:00
ross
02140cb46f
Fix the 16-bytes-of-death bug by generating specific-EOI cycles during
...
sio_intr_setup().
1999-07-30 20:33:43 +00:00
thorpej
d7bf3732b0
The new rasops stuff is a LOT faster; turn on rasterconsole on the cgsix.
1999-07-30 18:11:38 +00:00
nisimura
c03616646c
- Fix TX 66Hz interrupt handling. Verified ok with PMAG-JA as an 8bpp
...
console. XXX troubles in cursor color.
- Typo in comments of MX.
1999-07-30 16:23:43 +00:00
drochner
44b56d917e
regen
1999-07-30 16:04:41 +00:00
drochner
287f2ffe69
emulate fcntl(F_SETLK) & Co.
...
(seti@home works now:-)
1999-07-30 16:03:49 +00:00
bouyer
2917356cae
Guard tsleep() with a while (!(wdc_c->flags & AT_DONE)) {}, as suggested by
...
Constantine Sapuntzakis confirmed by Bill Sommerfeld. Although nothing is
supposed to call wakeup on this without setting AT_DONE, it's good practice to
do it this way (the process may be waken up by a setrunnable() call).
1999-07-30 14:59:10 +00:00
augustss
09e76a1645
Remove two items that are done.
1999-07-30 11:40:19 +00:00
itojun
06c350054d
remove reference to in6_systm.h (file itself will be removed afterwords)
1999-07-30 10:35:34 +00:00
fvdl
3c9ce57651
Don't try to copy an mbuf that may have been freed in case of an error.
1999-07-30 09:46:24 +00:00
mycroft
1880910b3a
Sync with GENERIC.
1999-07-30 02:35:18 +00:00
mycroft
0900226864
Make one code path a bit clearer.
1999-07-30 01:55:38 +00:00
thorpej
76dcbfad36
Regen.
1999-07-29 20:58:19 +00:00
thorpej
8548b384f5
Add some Initio SCSI controller IDs.
1999-07-29 20:56:55 +00:00
augustss
f641c4b3b6
Make two wsmux pseudo devices and add mux locators.
1999-07-29 19:36:58 +00:00
augustss
3652732791
Add wsmux device.
...
(Also add lots of missing chrtoblktbl[] entries.)
1999-07-29 19:14:35 +00:00
augustss
265b6769d5
Add mux locator to wsmouse and wskbd.
1999-07-29 18:25:53 +00:00
augustss
3d3f77c49e
Add the wsmux pseudo device.
1999-07-29 18:20:02 +00:00
thorpej
d7f9efdafc
In nfs_create(), make sure error is reset to 0 if we restart the operation.
1999-07-29 17:01:21 +00:00
sommerfeld
3267e5e87d
Probable fix for PR7943: lookups fail spuriously over NFS.
...
The problem was due to an interaction between the doomed unmounts done by
amd and getnewvnode.
I convinced myself that it's ok for getnewvnode() to do a sleeping vfs_busy().
Tested with multiple builds running while another process attempted to unmount
/usr once a second.
1999-07-29 13:31:45 +00:00
augustss
a7cd454b1d
It's time to be COMPAT_14.
1999-07-29 10:37:12 +00:00
bouyer
a81c366fed
Bump MAX_START to 256, so that the ncr driver can work with more than 5
...
devices on the same bus. See PR kern/6347 for details.
1999-07-29 10:00:34 +00:00
itohy
5d4686cb63
Fix typo in comment.
1999-07-29 08:19:55 +00:00
jdolecek
053ce167b6
ntfs_statfs(): correct previous: only use mp->mnt_op->vfs_name on NetBSD,
...
FreeBSD does it differently
1999-07-29 07:55:23 +00:00
thorpej
0f0a99bb48
Make sure that pmap == pmap_kernel() when skipping pager mappings.
1999-07-28 23:23:46 +00:00
soren
7220690fb8
Regen.
1999-07-28 22:38:00 +00:00
soren
4341d92cb3
Correct Acard device names.
...
Add and update a few IBM devices.
Add Toshiba and NEC devices in Portege 3K's.
1999-07-28 22:36:10 +00:00
jdolecek
251052b682
ntfs_statfs(): don't forget to copy the fs name into struct statfs buffer
...
on NetBSD
ntfs_vgetex(): make compilable with NTFS_DEBUG defined (should be ok
for both Free&NetBSD)
1999-07-28 20:42:54 +00:00
jdolecek
6ec5efc535
ntfs_strategy(): make compilable with NTFS_DEBUG
1999-07-28 20:36:46 +00:00
thorpej
cb41412726
Fix a thinko in draining of spin locks: bump waitcount in the spin case,
...
too. Remove some needless code duplication by adding a "drain" argument
to the ACQUIRE() macro (compiler can [and does] optimize the constant
conditional).
1999-07-28 19:29:39 +00:00
ad
3d71693ea7
In fbconnect(), append ' (console)' to printed message if called for
...
the console framebuffer at attach time.
1999-07-28 17:13:54 +00:00
drochner
36e00c28de
fix the previous fix
1999-07-28 10:03:02 +00:00
drochner
b513c9a6ad
update comments for mi VME
1999-07-28 09:48:36 +00:00
drochner
6922e1976e
adapt to mi VME attachment (sorry for being late)
1999-07-28 09:45:08 +00:00
drochner
f6fddabf3f
back out previous - there is really a "vmebus" attribute
1999-07-28 09:39:48 +00:00
thorpej
51d09124f9
Fix another locking error: if freeing a PV entry, don't attempt to
...
free a PV page if the PV entry was associated with the kernel pmap,
since the kernel pmap is locked, and freeing the page will execute
a code path which will attempt to lock it again, resulting in deadlock.
No real loss, since the next time a PV entry is freed, the page will
be freed, too.
1999-07-28 06:54:41 +00:00
christos
fb4ecab492
make these compile again s/#endif/#else/
...
again, it is impossible for me to make sure that they work.
1999-07-28 06:35:06 +00:00
is
b0cd4e82f1
regenerate: no gvpbus on DRACO
1999-07-28 05:56:07 +00:00
is
d2cd47b6b2
no gvpbus on DRACO
1999-07-28 05:55:19 +00:00
christos
223cc34183
make the vme stuff compile again; I am not sure this is correct as I don't
...
have the hardware to test, but it has been broken for 3+ weeks now. Hi
Mr. Drochner!
1999-07-28 05:45:50 +00:00
thorpej
eced87ad87
Fix a locking error: When allocating a PV page for the kernel pmap,
...
the pmap would be locked, and we would deadlock when mapping the
newly allocate PV page.
1999-07-28 05:37:54 +00:00
mellon
a976011fcf
- Correct the definition of the COUNT macro so that it takes the same
...
number of arguments when compiled without DIAGNOSTIC as with.
1999-07-28 01:59:46 +00:00
mellon
6d03d79b64
- compat_aout requires compat_13_machdep.c for definition of sigreturn.
1999-07-28 01:57:05 +00:00
thorpej
9d4524778d
Slight adjustment to last; move pmap_kenter_pa() to where the other
...
pmap_k* functions are.
1999-07-28 01:17:01 +00:00
thorpej
31fa5c6f78
Don't inline pmap_kenter_pa(). It doesn't buy us much to do so, and
...
it's nice to have it show up in stack traces.
1999-07-28 01:07:52 +00:00
thorpej
6ec1ededf1
Make a slight rearrangement in how <machine/lock.h> is included.
1999-07-27 23:45:13 +00:00
thorpej
cc668e410f
Define apporpriate an value for SIMPLELOCK_LOCKED, based on the
...
semantics of ldstub.
1999-07-27 22:22:33 +00:00
thorpej
0b1b32b6ff
Make sure the kprintf_slock is initialized, and use the low-level atomic
...
locking primitive directly to lock it, since those will never attempt
to call printf() to display debugging information (and thus deadlock
on recursion into the kprintf_slock).
1999-07-27 21:50:37 +00:00
thorpej
c1ee8f0a8c
Prepend `cpu_' to the machine-dependent atomic locking primitivies.
1999-07-27 21:45:39 +00:00
thorpej
d17dfae658
1.4I - simplelock changed
1999-07-27 21:33:57 +00:00
thorpej
cd992b17df
In _pool_put(), call simple_lock_freecheck() if we're LOCKDEBUG before
...
we put the item on the free list.
1999-07-27 21:31:17 +00:00
thorpej
6390046137
Improve the LOCKDEBUG code:
...
- Now compatible with MULTIPROCESSOR (requires other changes not yet
committed, but which will be later today).
- In addition to tracking simple locks, track exclusive spin locks.
- Count spin locks like we do sleep locks (in the cpu_info for this
CPU).
- Lock debug lists are now TAILQs, so as to make the locking order
more obvious when dumping the list.
Also, some suggestions from Bill Sommerfeld:
- SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED constants, which may be
defined in <machine/lock.h> (default to 1 and 0, respectively). This
makes it easier to support architectures which use test-and-clear
rather than test-and-set.
- Add __attribute__((__aligned__)) to the `lock_data' member of the
simplelock structure. This makes it easier to support architectures
which can only perform atomic operations on very-well-aligned memory
locations. NOTE: This changes the size of struct simplelock, and
will cause a version bump.
1999-07-27 21:29:15 +00:00
castor
0a1820a4e7
regen
1999-07-27 17:55:00 +00:00
castor
424a28aa79
Add vendor ID for Geocast
1999-07-27 17:52:59 +00:00
explorer
ed3b6d5791
Fix a problem where tcp_slowtimo was called twice, once for ipv4 tcp and
...
once for ipv6. This patch makes the ipv6 case pass NULLs in for fast
and slow timeouts iff defined(INET) and passes in the right function
if !defined(INET).
Reveiwed by itojun@iijlab.net .
1999-07-27 06:23:57 +00:00
cgd
a0af6a8443
fix msdosfs export problems which occur on LP64 systems, which were
...
discovered while investigating PR#8037.
1999-07-27 05:39:10 +00:00
cgd
c1a83a09b0
fix LP64 problems which were the cause of PR#8037.
1999-07-27 05:38:02 +00:00
thorpej
d6c9ec0a2e
Make this "should work" on big endian systems.
1999-07-27 00:55:34 +00:00
thorpej
b73b84643f
Add support for the SMC 83c175. Also, print out the chip rev when
...
we attach.
1999-07-27 00:37:34 +00:00
thorpej
f48807a678
Regen.
1999-07-27 00:24:06 +00:00
thorpej
b5dc3f5708
Add product ID for the SMC 83c175 Fast Ethernet chip. This is a cousin
...
of the SMC 83c170 which also supports CardBus.
1999-07-27 00:23:47 +00:00
augustss
43dd17675c
Make it compile with -current. I hope I got it right.
1999-07-26 23:26:14 +00:00
thorpej
c0e24db820
Use wakeup_one() for waking up sleep lock sleepers.
1999-07-26 23:02:53 +00:00
thorpej
1bd7bb28ea
Implement wakeup_one(), which wakes up the highest priority process
...
first in line for the specified identifier. For use in places where
you don't want a Thundering Herd.
While here, add an optimization to wakeup() suggested by Ross Harvey.
1999-07-26 23:00:58 +00:00
explorer
8fa3d8be55
make the JVC 2626 match more than one version, since all seem to be
...
returning errors on the LUN probe.
1999-07-26 22:43:13 +00:00
wrstuden
f3b3a1b98d
If we get into pcclose() without a defined tty, just exit rather than
...
dereferencing a null pointer.
1999-07-26 19:31:54 +00:00
wrstuden
eeefc02aec
Add VLAYER to tests which will cause VOP_REVOKE to be called in sys_revoke().
1999-07-26 19:20:09 +00:00
jdolecek
89c23c0bb0
ntfs_getattr(): do not use dev2udev() on NetBSD
...
ntfs_readdir(): remove some junk accidentaly left in when merging the changes
1999-07-26 14:40:34 +00:00
jdolecek
4d71da4939
ntfs_mount(): there is no bdevsw() under NetBSD - to check if passed
...
block device is valid, just check if it's major is less than nblkdev
ntfs_mountfs(): dev2udev() not needed under NetBSD
1999-07-26 14:35:19 +00:00
jdolecek
afae7d7f3b
resolve conflicts
1999-07-26 14:02:30 +00:00
cgd
f886376518
be more efficient when doing the SYSTEM_LD_TAIL for -g kernels: don't
...
copy them just to strip them, use strip -o.
1999-07-26 05:20:44 +00:00
enami
18a17d4777
Don't use the result of inet_ntoa after calling the another inet_ntoa,
...
since they share the same static storage.
1999-07-26 02:16:35 +00:00
cgd
16db153ba2
fix MSDOSFS_DEBUG printf arg type
1999-07-26 00:14:27 +00:00
ad
724365fa3e
Change the way fb devices are configured and attached:
...
- 'struct fbsoftc' created, which points to a 'struct fbinfo'
- 'struct fbinfo' for each device is allocated with fballoc()
This means:
- Console device doesn't get different 'struct fbinfo' at attach
- Console device doesn't get initialized twice
- Color rcons now works
- The current Xserver MUST BE REBUILT.
1999-07-25 22:50:28 +00:00
thorpej
fc04cf9982
Add calls to lock the proclist as appropriate.
1999-07-25 18:33:47 +00:00
thorpej
e70f375122
Lock the proclist as appropriate.
1999-07-25 18:05:31 +00:00
ad
e6216650d8
Use unsigned integer to hold font bits in putchar(). [This looks like the
...
source of glyph corruption].
1999-07-25 17:36:40 +00:00
darrenr
8b165c84f7
don't log an error for ktrace if it's EPIPE - an error that should be
...
expected with fktrace/ktruss (i.e the error is `noise').
1999-07-25 13:59:08 +00:00
rh
cfa2c0bd79
Remove superfluous NULL argument from proclist_lock_read() call.
1999-07-25 08:55:46 +00:00
thorpej
2fd5daf2d1
1.4H -- struct lock changed.
1999-07-25 06:39:53 +00:00
thorpej
ea8fb3e04a
Turn the proclist lock into a read/write spinlock. Update proclist locking
...
calls to reflect this. Also, block statclock rather than softclock during
in the proclist locking functions, to address a problem reported on
current-users by Sean Doran.
1999-07-25 06:30:33 +00:00
thorpej
50f9f26fe1
Add a spin lock mode to the lock manager. Provides a read/write
...
spin lock facility. Some code and ideas from Ross Harvey.
1999-07-25 06:24:22 +00:00
tron
d5442d74c5
Fix NULL pointer access. Patch supplied by Dave Huang in PR kern/8055.
1999-07-24 15:10:02 +00:00
augustss
4047458551
More DIAGNOSTIC messages.
1999-07-24 01:40:19 +00:00
explorer
4cbf118032
add a SHARK.v6, so the shark specific kernel can get v6, too
1999-07-23 22:45:23 +00:00
itojun
42c5caafe7
do not include unnecessary include files.
1999-07-23 15:21:17 +00:00
thorpej
014078a731
Garbage collect.
1999-07-22 23:31:07 +00:00
thorpej
2860ae9b30
Add proclist locking where appropriate (forgot to commit this file previously).
1999-07-22 23:00:27 +00:00
thorpej
3f176180d5
Garbage collect thread_sleep()/thread_wakeup() left over from the old
...
Mach VM code. Also nuke iprintf(), which was no longer used anywhere.
Add proclist locking where appropriate.
1999-07-22 22:58:38 +00:00
thorpej
2c668fb0d4
0 -> FALSE in a few places.
1999-07-22 21:27:32 +00:00
thorpej
40c08923a8
XXX LOCKING XXX of allproc; DDB runs with interrupts blocked, and MD
...
code should suspend other processors, so this probably isn't a problem,
but the comment is added anyhow.
1999-07-22 21:11:26 +00:00
thorpej
01a8cffe77
Add a read/write lock to the proclists and PID hash table. Use the
...
write lock when doing PID allocation, and during the process exit path.
Use a read lock every where else, including within schedcpu() (interrupt
context). Note that holding the write lock implies blocking schedcpu()
from running (blocks softclock).
PID allocation is now MP-safe.
Note this actually fixes a bug on single processor systems that was probably
extremely difficult to tickle; it was possible that schedcpu() would run
off a bad pointer if the right clock interrupt happened to come in the
middle of a LIST_INSERT_HEAD() or LIST_REMOVE() to/from allproc.
1999-07-22 21:08:30 +00:00
hwr
f6bf685b94
Regen.
1999-07-22 20:58:18 +00:00
hwr
baf7e04902
Insert a space in New Media Corporation. Fixes kern/7817 by Lloyd Parkes.
1999-07-22 20:56:38 +00:00
thorpej
e8485145c1
Rearrange some code slightly.
1999-07-22 18:28:30 +00:00
thorpej
2715b812d1
Rework the process exit path, in preparation for making process exit
...
and PID allocation MP-safe. A new process state is added: SDEAD. This
state indicates that a process is dead, but not yet a zombie (has not
yet been processed by the process reaper).
SDEAD processes exist on both the zombproc list (via p_list) and deadproc
(via p_hash; the proc has been removed from the pidhash earlier in the exit
path). When the reaper deals with a process, it changes the state to
SZOMB, so that wait4 can process it.
Add a P_ZOMBIE() macro, which treats a proc in SZOMB or SDEAD as a zombie,
and update various parts of the kernel to reflect the new state.
1999-07-22 18:13:36 +00:00
thorpej
40d9e23179
Define the Volume Tag format.
1999-07-22 17:43:53 +00:00
itojun
86ef461e35
avoid u_long and hardcoded numbers.
1999-07-22 15:46:13 +00:00
itojun
7fee35f579
- implement IPv6 pmtud, which is necessary for TCP6.
...
- fix memory leak on SO_DEBUG over TCP.
1999-07-22 12:56:56 +00:00
augustss
9e89bd8c34
The configuration and interface locators are pointless for the generic
...
USB device.
1999-07-22 09:35:06 +00:00
leo
416221c95b
Do the mesgbuf initialisation a bit earlier in the boot process. This
...
makes debugging the console somewhat easier.
1999-07-22 09:20:38 +00:00
itojun
76fc599a8d
change unnecessary u_long/long into u_int32_t or something relevant.
...
more fixes should follow.
1999-07-22 03:59:42 +00:00
tron
f808646713
Use wsmouse protocol for PS/2, Logitech bus and Microsoft InPort mice
...
by default. The X11 distribution included in our last release already
supports it and the wsmouse protocol can be used for any of the above
and for USB mice.
1999-07-21 20:28:45 +00:00
tsubai
07bc0e694d
media-bay CD support.
1999-07-21 19:20:04 +00:00
ad
a41907cbf8
- Style nits
...
- Kill some of the dainbramage in variable-depth copycols()
1999-07-21 19:19:03 +00:00
mrg
f484530816
do not "quote" SAMISCMAKEFLAGS values, it causes pain and suffering.
1999-07-21 13:34:34 +00:00
briggs
a33d38257c
Declare struct pmap kernel_pmap_store extern.
1999-07-21 03:18:21 +00:00
oster
5cef006d40
Need to splbio()/splx() protect some of the reconstruction stuff.
...
Without this, we have potentially bad interatctions with the pool
code.
1999-07-21 03:15:26 +00:00
thorpej
befbb301fd
Use the lock manager to lock the GDT, rather than a non-MP-safe homegrown
...
method.
1999-07-20 23:07:12 +00:00
thorpej
eff41cf3b1
Implement cpu_wait(), and move the call to tss_free() from switch_exit()
...
to cpu_wait(); tss_free() may block, and thus requires a valid context.
1999-07-20 22:25:18 +00:00
thorpej
32e1fd0d03
Move the call of cpu_wait() out of the wait4() functions, and into the
...
body of reaper(), right before the call to uvm_exit(). cpu_wait() must
be done before uvm_exit() because the resources it frees might be located
in the PCB.
1999-07-20 21:54:05 +00:00
drochner
963921febe
regen
1999-07-20 20:59:03 +00:00
drochner
62adeef8f6
add TI TVP4020 Permedia 2
1999-07-20 20:58:20 +00:00
bouyer
29664a379a
The options actually used are RASTERCONSOLE_{FG,BG}COL, not
...
RASTERCONS_{FG,BG}COL. defopt the rigth ones.
1999-07-20 18:05:15 +00:00
tsubai
bfba58c1e1
grackle uses different I/O address.
1999-07-20 17:31:59 +00:00
dbj
15c0ebc780
fixed TAGS target for emacs style tags
1999-07-20 08:55:30 +00:00
christos
41cc9a0eb8
enable PPP_BSDCOMP, PPP_DEFLATE, PPP_FILTER, PFIL_HOOKS, IPFILTER_LOG
...
on the GENERIC kernels that had them commented out.
XXX: Please note, that not all the kernels have all the options defined!
1999-07-20 07:40:34 +00:00
simonb
988906cf52
Put tc_machdep.h back - the X server needs it to build.
1999-07-19 23:35:29 +00:00
thorpej
7f53187a85
From Bill Studenmund: unlock the fdescfs "/dev/tty" vnode before calling
...
cttyread()/cttywrite(), and lock it again when it returns.
Squashes the somewhat bizarre lossage I was observing w/ more(1), sudo(1),
etc.
1999-07-19 23:00:47 +00:00
cgd
4eb46531af
make sure 'wide' fault handling is actually done only once per fault.
...
('narrow' was mistakenly set to FALSE instead of TRUE.) Committed after
discussion with chuq.
1999-07-19 19:02:22 +00:00
itojun
869f140395
fix IPV6_CHECKSUM socket option (length computation was wrong).
1999-07-19 18:37:19 +00:00
thorpej
5310e69363
Fix PR #8023 from Bernd Ernesti: when MADV_FREE'ing a region which spanned
...
more than one VM map entry, a typo caused amap_unadd() to attempt to
remove anons from the wrong amap. Fix that typo.
1999-07-19 17:45:23 +00:00
scottr
ba0669d0b6
The Quadra 605 and LC 47x apparently share the same logic board,
...
and hence need the same video hack. From Ken'ichi Ishizaka.
1999-07-19 05:20:15 +00:00
chs
fce05250f9
more cleanup:
...
remove simplelockrecurse, lockpausetime and PAUSE():
none of these serve any purpose anymore.
in the LOCKDEBUG functions, expand the splhigh() region to
cover the entire function. without this there can still be races.
1999-07-19 03:21:11 +00:00
chs
327e64d87b
remove simplelockrecurse, it's no longer needed.
1999-07-19 03:17:42 +00:00
oster
ce7cb7114d
rf_UnconfigureVnodes() needs to be called in the DO_RAID_FAIL macro.
1999-07-19 01:36:07 +00:00
oster
0c7600ca4e
sectorsPerStripeUnit should be larger than 0. If it isn't, simply fail.
...
(Thanks to Thor Lancelot Simon for noting the problem).
1999-07-19 01:35:19 +00:00
eeh
5e22318a8d
More fun with pmap.
1999-07-18 23:55:57 +00:00
eeh
c6a358d0a8
Lower spl for softints.
1999-07-18 23:54:20 +00:00
eeh
27bc6dd353
Switch to NetBSD/sparc ELF for 32-bit userland.
1999-07-18 23:52:58 +00:00
eeh
01474710ca
Switch over to NetBSD/sparc ELF for 32-bit userland.
1999-07-18 23:51:08 +00:00
chs
a8f10f9e37
allow uvm_km_alloc_poolpage1() to use kernel-reserve pages.
1999-07-18 22:55:30 +00:00
chs
47602880d7
KNF.
1999-07-18 21:33:20 +00:00
tsubai
035071b460
Add VM_MAX_KERNEL_BUF definition.
1999-07-18 17:54:19 +00:00
tsubai
e9f1ccdcd1
Decrease default NKMEMCLUSTERS. (128MB -> 8MB)
1999-07-18 17:53:18 +00:00
abs
2ceba51630
Work with obj dirs (It seems that ${.CURDIR}/... is your friend).
...
If I _had_ to pick an arch on which to learn how this stuff works, it probably
would not have been vax... unless of course I was experimenting with time
compressing drugs. If we have a 1.4.2, this is definitely a candidate.
1999-07-18 05:55:45 +00:00
thorpej
5ee6f3960d
Rework uvm_map_protect():
...
- Fix some locking bugs; a couple of places would return an error condition
without unlocking the map.
- Deal with maps marked WIREFUTURE; if making an entry VM_PROT_NONE ->
anything else, and it is not already marked as wired, wire it.
1999-07-18 00:41:56 +00:00
jtk
92bf84ec68
implement emulation of SIOCGIFHWADDR, PR 7997
1999-07-17 22:03:55 +00:00
jtk
c13299119a
add LINUX_SIOCGIFHWADDR
1999-07-17 21:46:28 +00:00
thorpej
b6f435026c
Add a set of "lockflags", which can control the locking behavior
...
of some functions. Use these flags in uvm_map_pageable() to determine
if the map is locked on entry (replaces an already present boolean_t
argument `islocked'), and if the function should return with the map
still locked.
1999-07-17 21:35:49 +00:00
itojun
b479094c45
no need to include faith.h on non-IPv6 build, so wrap by #ifdef.
...
(dunno if it's better to always include it or not)
1999-07-17 12:53:05 +00:00
itojun
c74f79d16f
fix faith interface support. need testing.
...
(i understand this is a dirty hack, of course)
1999-07-17 07:07:08 +00:00
thorpej
fcc55e7687
Garbage-collect uvm_km_get(); nothing actually uses it.
1999-07-17 06:41:36 +00:00
thorpej
a448b59581
Implement uao_flush(). This is pretty much identical to the "amap flush"
...
code in uvm_map_clean().
1999-07-17 06:06:36 +00:00
wrstuden
976aedb7ac
Adjust mountroot routines to vrele rootvp in case of mount error. Closes
...
PR 7977 by Neil Carson, <neil@brini.com>.
1999-07-17 01:08:28 +00:00
tron
a868069601
Add a few more CPU models as suggested by Scott Telford in PR i386/7048.
1999-07-17 00:42:20 +00:00
wrstuden
2f1cf7a7f1
Oops. Got a little too agressive with changing 06->07.
1999-07-16 20:49:34 +00:00
ad
fe6a4d8ffd
Remove 'already the console' check, which will be handled by fballoc(),
...
fbattach() and fbconnect() shortly.
1999-07-16 14:23:47 +00:00
thorpej
c581bf97c5
A few things to make the Linux clone(2) emulation work a bit better:
...
- When the exit signal is specified to be 0, don't just assume they
meant SIGCHLD. In the Linux world, this appears to mean "don't deliver
an exit signal at all".
- Simplify P_EXITSIG(); don't check against initproc here, just change
the exit signal to SIGCHLD if reparenting to initproc.
A very simple clone(2) test program now works, and the MpegTV package
starts, but doesn't run properly yet (I believe there is a separate
bug which keeps it from working properly).
1999-07-15 23:18:41 +00:00
wrstuden
e4cffe98ac
We're now at 1.4G due to changes in vnode flags.
1999-07-15 22:00:40 +00:00
wrstuden
a0f2937049
Define VLAYER and make layered fs's set this flag when creating their vnodes.
...
getnewvnode now checks this bit, and it if's set makes sure a vnode's not
locked before removing it from the free list.
Closes PR 7954 by Alan Barrett <apb@iafrica.com>.
1999-07-15 21:30:31 +00:00
ross
5122ae5f44
Recognize 3c905C.
1999-07-15 18:10:29 +00:00
ross
4dae830922
Regen.
1999-07-15 18:06:39 +00:00
ross
4495d8362a
product 3COM 3C905CTX 0x9200
1999-07-15 18:02:08 +00:00
drochner
7dab8cef61
fix logics in device recognition
1999-07-15 18:00:27 +00:00
augustss
50eef750e4
Regen.
1999-07-15 14:53:13 +00:00
augustss
8a5bb754c7
Add Cinemaster C 3.0 DVD Decoder.
1999-07-15 14:52:48 +00:00
sommerfeld
5d94c1dc69
Clarify that the empty string, not the string ANY, as the network name means
...
pick any access point
1999-07-15 14:31:52 +00:00
leo
cf85212453
Make this compile again.
1999-07-15 10:46:58 +00:00
thorpej
e314d1d844
Correct the sense of the PCR_FLINK100 bit. From Dave Sainty, PR #7832 .
1999-07-14 23:57:36 +00:00
thorpej
f9b0db3013
Fix a paste-o in procfs_lookup() introduced with the vnode locking changes.
...
Fixes PR #7961 , Mario Kemper <magick@bundy.lip.owl.de>.
1999-07-14 23:52:22 +00:00
sommerfeld
48f2389776
Add shutdown hook to turn off card.
...
Fix BPF tap code.
1999-07-14 23:07:29 +00:00
fvdl
76b2d00f39
Regen.
1999-07-14 23:03:09 +00:00
fvdl
a641b41593
Add/change a few Adaptec controller IDs.
1999-07-14 23:02:01 +00:00
itojun
685747d56c
Use proper ip protocol # field and tcp hdr on sending RST against SYN,
...
when ip header and tcp header are not adjacent to each other
(i.e. when ip6 options are attached).
To test this, try
telnet @::1@::1 port
toward a port without responding server. Prior to the fix, the kernel will
generate broken RST packet.
1999-07-14 22:37:13 +00:00
tron
62af9404e6
Skip LUN check for all versions of the UMAX Astra 1220S as suggested
...
by Dan McMahill in PR kern/7991.
1999-07-14 22:34:18 +00:00
sommerfeld
5d33b8fc14
Install a header needed by userspace wiconfig program
1999-07-14 22:32:05 +00:00
sommerfeld
52faa3e2d7
Blitz port of the FreeBSD wi* driver for the Lucent WaveLan IEEE
...
PCMCIA wireless LAN.
Original driver written by Bill Paul <wpaul@ctr.columbia.edu>
1999-07-14 22:24:07 +00:00
sommerfeld
313081da93
Add a few 802.11 cards
1999-07-14 22:13:27 +00:00
drochner
46f90cb053
make sending of keepalive messages work again:
...
-remove bogus sanity check involving an uninitialized variable
-correct mbuf cluster allocation
-(non-critical) remove redundant check in cleanup after error
1999-07-14 22:08:52 +00:00
thorpej
8e06a75bcb
Fix an operator precedence error which caused msync(2) to fail to pass
...
the PGO_CLEANIT flag to the object pagers. Fixes PR #7978 , from
Matthias Pfaller.
1999-07-14 21:06:30 +00:00
augustss
021319d9b3
Avoid crashing if we are forced to close() before teh open() completed
...
(can happen on disconnect, probably due do dubious logic in vdevgone()).
1999-07-14 19:12:07 +00:00
drochner
8137f06eac
recognize SIS 85C503 as PCI-ISA bridge, from Gregory McGarry per PR
...
port-i386/7972
1999-07-14 09:18:20 +00:00
scw
801242dfdc
From patch supplied in PR-7951 by Joachim Kuebart:
...
Add support for Microsoft Joliet long filename extensions to the
cd9660 filesystem.
1999-07-13 11:12:05 +00:00
thorpej
5fdbf26214
Regen.
1999-07-12 23:01:47 +00:00
thorpej
bee019244f
Remove two lines that were apparently added by accident.
1999-07-12 23:01:27 +00:00
kleink
dfa5aad003
Regen.
1999-07-12 22:04:00 +00:00
kleink
e79a283e47
XSH5: change function signature to `void *sbrk(intptr_t)'.
1999-07-12 21:55:19 +00:00
kleink
07a43a7c2e
Also make available <sys/inttypes.h>.
1999-07-12 20:55:32 +00:00
ragge
e859716a79
Unused in MI code.
1999-07-12 19:47:40 +00:00
thorpej
c08800739a
Back out previous. I was getting bitten by a bug in make(1), which is
...
now fixed.
1999-07-12 18:15:09 +00:00
tsubai
4aec314394
Add PowerBook LCD brightness and speaker volume button device.
...
Only brightness works for now.
1999-07-12 17:48:26 +00:00
wrstuden
b7f5310486
Fix tyop pointed out by Chuck Silvers <chuq@chuq.com>.
1999-07-12 16:37:03 +00:00
tsubai
b7fc95a188
Add read/set LCD brightness and eject PCMCIA card function.
1999-07-12 15:54:55 +00:00
kleink
a963797502
Add eso(4) and the devices attached to it.
1999-07-12 15:16:23 +00:00
kleink
cf917747a1
Add a driver for the ESS Technology Solo-1 PCI AudioDrive line of chips.
1999-07-12 15:13:30 +00:00
kleink
7d8abaa49e
Regen.
1999-07-12 15:04:41 +00:00
bouyer
fdb68cb866
Needs cpu.h for netisr (compile breaks on sun3).
1999-07-12 15:03:26 +00:00
kleink
ecbc7c6afd
Change the ESS Solo-1 description string to match the data sheet.
1999-07-12 15:02:46 +00:00
bouyer
0612a1ddef
Fix typo in a printf, from Soren S. Jorvan.
1999-07-12 13:49:38 +00:00
ragge
497378ce6d
Copied from ../../arch/vax/bi/uba_bi.c,v
1999-07-12 13:43:40 +00:00
ragge
af86c7da93
Copied from ../../arch/vax/bi/kdbreg.h,v
1999-07-12 13:43:24 +00:00