Commit Graph

131383 Commits

Author SHA1 Message Date
mycroft
04699fb576 Reorder some register writes just to be safe. 2004-10-31 06:25:55 +00:00
mycroft
91c9307af1 Attempt to mitigate "fifo underrun" errors in two ways:
1) Update the queue pointers any time we get a block completion interrupt,
   not just when we hit the last block.
2) Set the "back-to-back enable" bit.
In addition:
3) Make sure we ack every block we transfer; there was a bug that could cause
   the audio layer to get out of sync.
2004-10-31 05:50:58 +00:00
darrenr
90032de19d build a new fr_info_t structure in fr_send_ip() and pass it through to
the fastroute function so that it uses accurate packet information about
the packet being sent out rather than the packet received (impacts both
return-rst and return-icmp features.)

PR: kern/27093
2004-10-31 04:52:50 +00:00
grant
0e29cab3fe don't explicitly call gunzip, just pass the right arguments to tar. 2004-10-31 02:45:37 +00:00
thorpej
bebd825b66 iee_ioctl(): Make this look like other drivers, fixing a missing "splx(s)"
as a side-effect.  Don't bother handling IFF_PROMISC here, because
ether_ioctl() already calls (*if_init)() to handle flags changes.

When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 23:52:22 +00:00
thorpej
559857f039 - qtinit(): Don't skip initialization if we're already marked RUNNING.
ether_ioctl() will call (*if_init)() when flags change.  Instead, do
  what other drivers do and stop the interface in this case before
  re-initializing.
- qtioctl(): Now that qtinit() does the right thing, remove the check
  for IFF_PROMISC change.

  When adding/deleting multicast addresses, only whack the address
  filter if the interface is marked RUNNING.

  Fixes kern/27678.
2004-10-30 23:45:10 +00:00
thorpej
711247fa68 When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 23:33:29 +00:00
bouyer
c31b572a47 Allow polled commands to be queued, if ata_exec_xfer() is called in thread
context. For this introduce 3 new xfer tags:
- C_WAIT, equivalent of AT_WAIT
- C_WAITACT, when there is a thread waiting on this xfer to become the active
  one (that is, to be at the head of the queue)
- C_FREE, set by ata_free_xfer() when it can't free the xfer because it's
  still in use. The holder should then free the xfer ASAP.

If ata_exec_xfer() is called with (C_POLL | C_WAIT), and there is already
xfers to be processed, assert C_WAITACT and sleep.
atastart() checks for C_WAITACT, and wakeup the thread waiting for this xfer
to become active if set. atastart() won't process this xfer, it's the
responsability of the thread waked up to handle it.

Fix (the right way) kern/27421 by Martin Husemann.
2004-10-30 23:10:37 +00:00
dsl
58d3abc94f Add (unsigned char) cast to ctype functions
Stop infinite loop if get lower case char with no upper case equiv.
2004-10-30 21:52:09 +00:00
dsl
e2a58c7a44 Add (unsigned char) cast to ctype functions
A password containg 80...ff could be reported (incorrectly) as being
all lower case.
2004-10-30 21:05:53 +00:00
dsl
dfdc37e2fe Add (unsigned char) cast to ctype functions 2004-10-30 20:56:20 +00:00
dsl
108eb2ab42 Add (unsigned char) cast to ctype functions 2004-10-30 20:39:35 +00:00
dsl
06dd932c49 Add (unsigned char) cast to ctype functions - Char is unsigned char. 2004-10-30 20:37:35 +00:00
dsl
5355c81879 Add (unsigned char) cast to ctype functions 2004-10-30 20:17:19 +00:00
mbw
7c1ffafac2 Change to fix PR 25689 for Swedish ADB keyboards
-    KC(52),    KS_Mode_switch,KS_Multi_key,
+    KC(58),    KS_Mode_switch,KS_Multi_key,
2004-10-30 20:13:15 +00:00
dsl
807394cff5 Add (unsigned char) cast to ctype functions 2004-10-30 19:34:01 +00:00
christos
027df12dd8 Pass WARNS=3 2004-10-30 19:29:27 +00:00
christos
175795754a WARNS=3, and remove comment about WFORMAT issues. 2004-10-30 19:28:35 +00:00
christos
a7e7123b05 - KNF, WARNS=3, pass lint.
- Simplify octal parsing code.
2004-10-30 19:28:10 +00:00
thorpej
fc44282f79 Use elf32-hppa-netbsd output format. 2004-10-30 18:38:38 +00:00
thorpej
e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
dsl
b23af931be Add (unsigned char) cast to ctype functions 2004-10-30 17:43:02 +00:00
dsl
c28aa2083f Add (unsigned char) cast to ctype functions
Change a couple of local buffers to 'unsigned char'
2004-10-30 17:37:09 +00:00
dsl
e833833eb1 Add (unsigned char) cast to ctype functions 2004-10-30 17:29:47 +00:00
dsl
eee0442cb4 No need to call isupper() before tolower() 2004-10-30 17:27:28 +00:00
dsl
25b3737cd3 isupper(x) can be true for x in [128..255], but since tolower(x) is required
to return x if it cannot be translated we don't need the isupper() test.
2004-10-30 17:25:34 +00:00
dsl
43371ff1ac Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
bouyer
235e7412c1 Revert 1.215, with a comment explaining why we can't use interrupts here. 2004-10-30 17:17:21 +00:00
dsl
78f35b774e Add (unsigned char) cast to ctype functions
Add fpurge(stdin) before prompt - unexpected question.
for usr.bin/crontab
2004-10-30 17:14:36 +00:00
dsl
3145a29f62 Add (unsigned char) cast to ctype functions 2004-10-30 17:08:12 +00:00
dsl
f77de37ccc Use strtoul() for integer conversion 2004-10-30 17:02:20 +00:00
dsl
8383dcf78c Add (unsigned char) cast to ctype functions 2004-10-30 16:57:27 +00:00
dsl
ee9ce6e95c Add (unsigned char) cast to ctype functions
Make 'queue' and 'atqueue' unsigned char.
2004-10-30 16:55:06 +00:00
dsl
3cca093e74 Add (unsigned char) cast to ctype functions 2004-10-30 15:51:20 +00:00
dsl
9122339b9f Add (unsigned char) cast to ctype functions 2004-10-30 15:39:39 +00:00
dsl
c4670c4ec7 Add (unsigned char) cast to ctype functions 2004-10-30 15:28:45 +00:00
dsl
e2f49bd9e2 Add (unsigned char) cast to ctype functions 2004-10-30 15:15:37 +00:00
dsl
9efede97a9 Add (unsigned char) cast to ctype functions 2004-10-30 15:04:45 +00:00
dsl
968ad08000 Stop argument to ctype function being char 2004-10-30 15:01:32 +00:00
dsl
3ab2c084c9 Add (unsigned char) cast to ctype functions 2004-10-30 14:31:45 +00:00
darrenr
541f8060fe In going from 3.4.x to 4.1.x, "state-age" became "age" but the input grammar
did not allow for backwards compatibility.

PR: kern/27590
2004-10-30 13:33:58 +00:00
skrll
59abd634ef We emulate more than SVR4, and IBCS2 on the i386 and Linux on the i386
and the Alpha there days. Remove this statement in a comment.
2004-10-30 09:38:15 +00:00
dsl
e7df4576bb Add (unsigned char) cast to ctype functions 2004-10-30 08:56:00 +00:00
dsl
03f1c17583 Add (unsigned char) cast to ctype functions
The argument rules suck.....
2004-10-30 08:54:51 +00:00
dsl
f7571bacc2 Add (unsigned char) cast to ctype functions 2004-10-30 08:46:12 +00:00
dsl
75ba9fc767 Add (unsigned char) cast to ctype functions
Some of this code could usefully be converted to use strtoul() and/or
some small helper functions.
2004-10-30 08:44:25 +00:00
dsl
8668419e38 Add (unsigned char) cast to ctype functions 2004-10-30 08:34:24 +00:00
dsl
c32255add6 Add (unsigned char) cast to ctype functions
Change validation of -t<number> to use return ptr of strtoul (not isdigit)
2004-10-30 08:31:39 +00:00
dsl
e26801d6fb Use unsigned char * variables when scanning buffer - saves casts and & 0xff 2004-10-30 08:22:40 +00:00
dsl
91fe418901 Add (unsigned char) cast to ctype functions 2004-10-30 08:19:30 +00:00