Commit Graph

132433 Commits

Author SHA1 Message Date
cube
e32b031c0f Change cf_fstate value to FSTATE_STAR to avoid a panic in config_detach()
for DISAGNOSTIC kernel.  That value of struct cfdata is not currently used
for pseudo-device attachments anyway.
2004-12-13 19:40:56 +00:00
tls
db47b27974 HYPERVISOR_yield is one of the hypervisor calls that's "overloaded"; it
does different things depending what's in %ebx.

We weren't setting %ebx here *at all*; so we did not get SCHEDOP_yield,
which was what was wanted; so unpredictable things happened, notably
immediate return to the NetBSD idle loop, in other words spinning on CPU.
Definitely not cool!

Michael Kukat caught this one and suggested this fix on port-xen.
2004-12-13 19:33:56 +00:00
cube
ab9c18a45c Constify. From Peter Postma. 2004-12-13 19:26:34 +00:00
cube
3957e91683 Fix compilation on LP64 hosts. Reported by Peter Postma. 2004-12-13 19:22:57 +00:00
cube
89a3fae64d Fix a comment. 2004-12-13 19:21:42 +00:00
dyoung
4a2df5a4d4 Bug fix: synchronize Transmit commands with all other commands.
Following Charles Hannum's wi(4) optimizations, there could be a
Transmit command outstanding after wi_tx_intr or wi_start returns.
The driver would blithely issue a second command [*] before the
first command was finished, taking the first command's WI_EV_CMD
indication to mean the second command had finished.  The driver
would be dreadfully confused when the second command's results did
not meet its expectations (e.g., a RID mismatch error would occur).
The packet transmit section of the code would never read the
WI_EV_CMD it expected, so transmissions would cease.

This patch counts the outstanding transmit commands (there can be
only one) and, if a transmit command is outstanding at the top of
wi_cmd(), wi_cmd waits for the command to complete.  If there was
a transmit command outstanding when wi_cmd begins, it calls
wi_cmd_intr() on its way out.

I have tested this on an Orinoco card.  Previously, the card would
stop transmitting or the kernel would panic as desynchronization
occurred.  Now it works beautifully.

[*] A second command could be issued by wi_ioctl or else by
    wi_intr->wi_info_intr->wi_newstate->wi_read_xrid->wi_read_rid.
2004-12-13 17:55:28 +00:00
dyoung
407495af6f In wi_tx_intr, be a little more explicit about which fields we're
reading from the Tx-Complete FID.
2004-12-13 17:24:09 +00:00
dyoung
cdf3961f69 Refactor. wi_read_rid calls,
wi_read_rid(sc, rid, &val, &buflen) == 0 && buflen == sizeof(val),

become wi_read_xrid calls

  wi_read_xrid(sc, rid, &val, sizeof(val)) == 0.

If the actual RID length is different from the expected RID length,
wi_read_rid prints to the log.
2004-12-13 17:21:35 +00:00
nathanw
30b299d965 __libc_thr_yield() signature now matches sched_yield().
Pointed out by Kouichirou Hiratsuka on current-users.
2004-12-13 16:08:12 +00:00
nathanw
50df45f4e5 The __libc_thr_yield_stub() for scched_yield() should return int (and
a 0), not void.
2004-12-13 16:07:13 +00:00
taca
d1d6c02285 Update IP Filter's Archive Site. 2004-12-13 14:09:26 +00:00
christos
f5e5c22a8e PR/28645: Fabien Devaux: Infinite loop at startup with Acer Travelmate 313T
due to buggy BIOS.
2004-12-13 13:46:29 +00:00
pooka
6b0a2a3f0e xmas present for xtos: file 4.12 2004-12-13 10:47:45 +00:00
pooka
f5200852b4 python has wriggled itself in here, yank it out to make the toolbuild work. 2004-12-13 10:43:39 +00:00
pooka
ebbb05cb75 munge conflicts 2004-12-13 10:35:03 +00:00
pooka
16e0e52b61 file 4.12
+ assorted bug fixes
+ switch to 2-clause license
2004-12-13 10:24:25 +00:00
yamt
819738713e sys_acct: use VOP_SETATTR instead of VOP_TRUNCATE as the latter's
filesystem internal.  while i'm here, fix vnode locking.

XXX vn_start_write
2004-12-13 08:46:43 +00:00
sekiya
c01662e204 Add prototype for r5k_sdcache_wbinv_range_index() 2004-12-13 08:39:50 +00:00
sekiya
07b6e1e982 Implement r5k indexed writeback-invalidate, and fix usage of Page_Invalidate_S.
Originally written by rafal@ back in April 2003.  Field-tested by many
people since.

(I am not committing the pmap hack at this time; although pmap changes are
necessary to fully address the r5k panic/coma problems, the implementation
needs further thought)
2004-12-13 08:39:21 +00:00
sekiya
d1eab478d8 Remove gratuitous use of MIPS1/MIPS3. 2004-12-13 08:31:54 +00:00
sekiya
d45f3ffb2c MIPS3_CONFIG_SC is an unreliable indicator for SC presence; r5k_enable_sdcache()
will gracefully exit if there is no secondary cache.  Rework #ifdef'd out
r5k cache code to take this into account, and remove pointless r10k case.
2004-12-13 08:30:58 +00:00
he
387711acf9 Hm, don't delete old bfd entries, mark obsolete instead. 2004-12-13 07:19:17 +00:00
nathanw
480a2816f2 Add #defines to make use of libc stubs for pthread_cond_wait() and
pthread_cond_timedwait().

XXX as noted in the comments, in the situations where these are
useful, they should never be called in a single-threaded
process. Perhaps they should die rather than return 0.

Addresses xsrc/28630.
2004-12-13 03:10:52 +00:00
chs
f873a82973 for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:39:07 +00:00
chs
25c1fe704b rather than duplicate the contents of the MI version of this file,
just include it and redefine the one thing that we want to be different.
2004-12-13 02:36:50 +00:00
chs
fa37aec784 remove an unused macro (which was also removed from the sh3 version of this). 2004-12-13 02:34:03 +00:00
chs
f91d38c18c adjust for b_bcount changing from long to int. 2004-12-13 02:33:06 +00:00
chs
1da81163d5 for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:31:56 +00:00
chs
0ded74691b for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:14:13 +00:00
dyoung
0842199905 Fix a typo, s/high/low/. 2004-12-13 01:15:07 +00:00
dyoung
87f615f34e At last, I have rtw w/ Philips RF receiving packets.
I added some sysctls to aid debugging:

  * hw.rtw.debug -- enable debugging

  * hw.rtw.flush_rfio -- Linux voodoo: possibly makes the MAC
    "flush" bits down the serial bus to the RF

  * hw.rtw.host_rfio: force the host to bang bits to the RF, instead
    of the MAC banging bits

  * hw.rtw.rfio_delay: after telling the MAC to bang bits to the
    RF front-end, delay rfio_delay microseconds.

  * hw.rtw.rfprog_fallback: there is this notion of the "RF
    programming method."  I believe the choice influences the
    polarity/timing of the serial bus used to program the RF
    front-end.  I know the correct choice for Intersil/RFMD/Philips
    front-ends, only.  For all other front-ends, I "fallback" to
    rfprog_fallback.

Make rtw_txdac_enable take an rtw_softc argument.  I will probably
revert this change.

Add some Linux voodoo to rtw_continuous_tx_enable.  I will probably
revert this change.

Important: add rtw_set_rfprog, which sets the correct RF programming
method.  This change and the following change are probably responsible
for making the Philips RF work.

Important: RTW_CONFIG1 is an 8-bit register, treat it that way!

Important: RTW_BRSR is 16-bit, RTW_CRCOUNT, RTW_PHYDELAY, and
RTW_MSR are 8-bit: treat them that way!

Vastly simplify rtw_resume_ticks.

Note to self: set the LED state to match the power state.

Hedge against the possibility that RTW_MSR is protected as
RTW_CONFIG[0123] are, meanwhile reworking that section of rtw_init
a little.

Add sc_anaparm, which isn't used, yet....
2004-12-13 00:48:02 +00:00
christos
09c258b188 Add ptyfs. 2004-12-12 22:41:03 +00:00
peter
0c0e079ef1 Change pseudo-device ptm to pty in synopsis and explain that the
ptm device is include with the pty device.  Bump date.

ok christos
2004-12-12 22:38:45 +00:00
cube
f770d4aa14 Remove tests that used to make it possible to compile ethfoo_lkm.c with
older versions of NetBSD (specifically, before ksyms was introduced), as
a lot of other changes makes that impossible anyway.
2004-12-12 22:15:28 +00:00
cube
dfc44125a6 Turn ethfoo(4) into a cloning device, following the MOVEFD semantics (like
bpf(4)).

While doing that, still keep around the full cdevsw interface, so that the
ethfoo interfaces can be accessed either through /dev/ethfooN or through
the cloning device /dev/ethfoo (whose minor number is 0xfffff).  Interfaces
created through the cloning device are destroyed at close() time.

Also add an ioctl() to be used by the cloning interface user to know the
minor number of the created interface, so it can be manipulated later to
get an address set and turned up (otherwise EHOSTDOWN is returned on read
and write).

Document some of the new functions, but read, write, ioctl and kqfilter
still has to be commented.
2004-12-12 21:46:58 +00:00
spz
3ca52e72db adds a description of m_apply
closes PR kern/26059
has been looked at by Jason Thorpe and Christos Zoulas
2004-12-12 21:04:16 +00:00
abs
964859d895 Fix comments regarding configration bounaries 2004-12-12 21:03:06 +00:00
oster
10928931ab The switch() in rf_ContinueReconstructFailedDisk() is never actually
used in non-simulation code, and thus is just wasting space (and
making the code more confusing to read!).  Turf the switch, left-shift
the indentation of code, and nuke 'state' field of struct RF_RaidReconDesc_s.

No real functional changes.
2004-12-12 20:53:15 +00:00
abs
5958dd944e Fix comments slighly 2004-12-12 20:42:53 +00:00
christos
c7df97ab82 Another linted comment about empty macro decl. 2004-12-12 19:44:46 +00:00
bouyer
0f82537ed4 The macro used for static server address is NFS_BOOTSTATIC_SERVADDR, not
NFS_BOOTSTATIC_SADDR. From Xen source distribution.
XXX NFS_BOOTSTATIC* doesn't seem to be documented anywhere ...
2004-12-12 16:24:14 +00:00
he
6817787508 Bump libbfd's shared library version number following new binutils import.
Fixes build problem for the vax port which remains without HAVE_GCC3.
2004-12-12 14:31:45 +00:00
spz
f071025256 another fish in the pool :-) (added myself to the list of developers) 2004-12-12 13:59:51 +00:00
mrg
e3f11c0d8c regenerate for fixed tools/binutils/Makefile 2004-12-12 12:43:05 +00:00
mrg
8887f2b7c4 for mknative, move -B from CC to CFLAGS, fixes vax configs 2004-12-12 12:42:35 +00:00
wiz
8433ffc136 cvs-1.11.18/1.12.10 are available. 2004-12-12 12:27:24 +00:00
tsutsui
29ec4fefaa news68k/locore.s directly includes <machine/trap.h> and
m68k/copy.s directly includes <sys/errno.h>,
so remove definitions for them from assym.h.
2004-12-12 10:26:36 +00:00
tsutsui
e76635baae Remove definitions for EFAULT and ENAMETOOLONG.
m68k/copy.s directly includes <sys/errno.h>.
2004-12-12 10:22:20 +00:00
christos
6b367bf779 - Add NetBSD RCSID's
- comment out opie since we don't have it.
2004-12-12 08:54:34 +00:00
christos
cad237d3f4 Pam configuration files from FreeBSD; perl script not imported. 2004-12-12 08:48:21 +00:00