Commit Graph

68393 Commits

Author SHA1 Message Date
scw
7ef39665ff ipflow (IP fast forwarding) is not compatible with FAST_IPSEC either.
XXX: The decision whether or not to fast forward should be made
XXX: dynamically. Using the current approach seriously reduces
XXX: routing performance on gateways with IPsec enabled.
2003-12-04 10:02:35 +00:00
he
afc065b0f9 Catch up with the recent changes in wdcvar.h, patterned after wdc_isa.c. 2003-12-04 09:32:37 +00:00
briggs
5513f6b2e8 Make PCI host/slave detection work for the iq31244 as well as the iq80321. 2003-12-04 07:02:18 +00:00
thorpej
c0ddd8220b Bump the Tx DMA segment count to 40. Apparently, it's common to have
DMA segment counts in this ballpark when using jumbo frames (so says
the "ti" driver).
2003-12-04 06:57:37 +00:00
thorpej
ca75be9eb7 When performing command pass-through for management tools, don't poll
for CCB completion.  Instead, sleep, and use a CCB callback to wake the
sleeper.
2003-12-04 05:46:47 +00:00
lonewolf
803a8479e6 Replace some magic numbers by symbolic constants. 2003-12-04 05:31:27 +00:00
lukem
4404046b3f fix the MAKEVERBOSE messages to be consistent with the standard ones 2003-12-04 02:33:41 +00:00
christos
f1a738c8b7 add stub file so that the kernel compiles. 2003-12-04 01:17:19 +00:00
bjh21
9ec6a8db4d Synchronise with <ftp://ftp.t10.org/t10/drafts/spc3/asc-num.txt>:
SCSI ASC/ASCQ Assignments
Numeric Sorted Listing
as of  9/12/03
2003-12-03 23:20:53 +00:00
manu
ac7838e90f In the basic thread info, suspend count is the suspend sempahore. Just return
0 for now. This is plain wrong, but at least it allows gdb to startup a
program.
2003-12-03 22:25:46 +00:00
cube
a00292cf94 o Add support for accessing the PHY through MDIO for recent SiS chips
o Add support for the recent SiS96x chipsets that have a new revision.
  That includes a new bit of code to access the EEPROM, since it is
  shared with the ieee1394 controller on those chipsets.

Mostly taken from FreeBSD (rev. 1.62 and 1.64 of sys/pci/if_sip.c).  I
tried to make the code look less ugly, but couldn't invent documentation.

Fix PR #23481.  Thanks to Stephane ENGEL <sengel AT melshake DOT com> for
the report and the cheerful testing.
2003-12-03 21:58:49 +00:00
manu
18e13eee35 Add a sigfilter emulation hook. It is used at the beginning of kpsignal2()
so that a specific emulation has the oportunity to filter out some signals.

if sigfilter returns 0, then no signal is sent by kpsignal2().

There is another place where signals can be generated: trapsignal. Since this
function is already an emulation hook, no call to the sigfilter hook was
introduced in trapsignal.

This is needed to emulate the softsignal feature in COMPAT_DARWIN (signals
sent as Mach exception messages)
2003-12-03 20:24:51 +00:00
petrov
f3ac37d795 syscall clean up from ifdeffed out code. 2003-12-03 20:23:41 +00:00
scw
ef87776bdb As per the recent ixp425 fix (which is based on this code):
In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.

This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 19:55:37 +00:00
manu
7973f2217b Rework Mach exceptions and softignals
Exceptions coming from a trap are generated from darwin_trapsignal()
softsignals are from darwin_sigfilter(), a function that is called
from darwin_trapsignal() and from kpsignal2() [the latter from a
emulation specific hook which is not yet committed]

Make some sanity checks to avoid sending data to a port with no receiver.

See http://mail-index.netbsd.org/tech-kern/2003/12/01/0008.html and
follow-ups for details.
2003-12-03 18:40:07 +00:00
manu
057381d1b4 Move machine dependent definitions to machine dependent headers. 2003-12-03 18:25:44 +00:00
manu
20fbf8c756 Trace data movement with vm_read and vm_write 2003-12-03 18:19:12 +00:00
manu
eff089cdc0 More santity checks when sending data to a port: is there someone listening
on the receive end?
2003-12-03 18:18:43 +00:00
petrov
7731fd90ac Use pmap_get_page return code instead, remove unused pmap_stats,
delete incorrect KASSERT in pmap_kenter_pa.
2003-12-03 17:58:47 +00:00
scw
99df1a0ae1 In the interrupt dispatch loop, make sure to handle any pending interrupts
which came in while we were dealing with the first interrupt(s), and which
are enabled at the current spl.

This fixes a problem where the intr_enabled/hw mask is not updated to
allow pending interrupts through until the next splx(). In some case,
interrupts could be delayed until the next clock tick.
2003-12-03 13:20:34 +00:00
bouyer
6db04f6724 Adapt for new wdc regiosters array. Should fix port-macppc/23604. 2003-12-03 12:09:32 +00:00
bouyer
67e9511d69 Move WDC_NREG from wdcreg.h to wdcvar.h. First part of fix for
port-macppc/23604.
2003-12-03 12:01:18 +00:00
bjh21
870dad0f43 Update for new world of indirect wdc registers. 2003-12-02 23:47:20 +00:00
martin
9bbe2098c6 Minor cleanup: remove unused code, sync a comment with current reality. 2003-12-02 22:44:17 +00:00
briggs
a4f6bad750 Configure PCI-Cardbus bridges, too.
Patch from KIYOHARA Takashi on current-users.
2003-12-02 16:31:06 +00:00
tsutsui
ab60f77a08 Declare sc_regbase as volatile, so that if_sn.c works with gcc3.
XXX We should switch to MI SONIC driver.
2003-12-02 13:19:06 +00:00
bouyer
0041177a45 Use a different interrupt routine for the CSB6. The CSB6 doens't
assert IDEDMA_CTL_INTR for non-DMA commands.
It would be nice to have a way to know if the interrupt was for us or not at
this point, but for now let wdcintr() deal with it.
Problem reported and patch tested by Martti Kuparinen.
2003-12-02 12:20:06 +00:00
christos
f85ce17392 add stub function, so that kernel links 2003-12-02 04:53:11 +00:00
dbj
d8b416001c clarify comments, especially since ffs_isfreeblock is non-intuitive:
ffs_isblock:
    check if a block is available
      returns true if all the correponding bits in the free map are 1
     returns false if any corresponding bit in the free map is 0
  ffs_isfreeblock:
    check if a block is completely allocated
      returns true if all the corresponding bits in the free map are 0
      returns false if any corresponding bit in the free map is 1
2003-12-02 04:40:43 +00:00
dbj
076b9a1a1e when ifdef DEBUG and debug_verify_freelist != 0
then perform an expensive search of the buffer freelists
in brelse and bremfree to verify consistency
2003-12-02 04:18:19 +00:00
dbj
2162bce654 add explanatory comment in bremfree:
We break the TAILQ abstraction in order to efficiently remove a
 buffer from its freelist without having to know exactly which
 freelist it is on.
2003-12-02 03:36:33 +00:00
christos
d16297df4c PR/23613: Christian Biere: Bogus bounds check in nanosleep. 2003-12-02 01:34:30 +00:00
dbj
f31a623a56 in ffs_unmount, ignore error returned by VOP_CLOSE(devvp)
this fixes a problem where device close error would cause
unmount to fail but structures to be left partially deallocated
2003-12-01 18:57:07 +00:00
dbj
37a927564e In vclean(DOCLOSE), if vinvalbuf fails because of a write error,
then redo the vinvalbuf without the V_SAVE which will force
unflushed buffers to be discarded.
2003-12-01 18:53:10 +00:00
dbj
fed63d5ffe symbolically expand MNT_VISFLAGMASK 2003-12-01 18:42:12 +00:00
rearnsha
e3cb92a81b Avoid alignment faults in fusword and fuswintr. Also handle big-endian
systems in susword and suswintr.
2003-12-01 13:34:44 +00:00
scw
7cf5104b5a - For consistency, use cpsr_all instead of cpsr.
- Make sure IRQs are enabled before handling ASTs.
2003-12-01 08:48:33 +00:00
lukem
4ca8399eb2 prefix ${.TARGET} with "${.CURDIR:T}/" in various _MKSHMSG macros;
per similar change to <bsd.own.mk>
2003-12-01 01:12:58 +00:00
atatat
5f01dc8ab2 Revert revision 1.3 "add sysctl support to firmware loader" by
"removing sysctl support from firmware loader".  It was never
referenced or called from anywhere...

Suggested by augustss@netbsd.org in private email.
2003-12-01 01:09:24 +00:00
fvdl
c7242676d3 Don't use an alternate stack for the trace/breakpoint trap. It can be
called from userspace, and that messes things up.

Thanks to Mark Kettenis to pointing out that not using an alt stack
solved the "loop on gdb sig continuation" issue.
2003-12-01 00:00:07 +00:00
fvdl
22bb1f01c7 Reenable interrupts sooner in the idle_exit case. 2003-11-30 23:58:51 +00:00
wiz
03e41d98b7 Typo fixes in comments from jmc@openbsd. 2003-11-30 20:53:48 +00:00
manu
437424d5f6 I forgot to commit this file for vm_machine_attribute to build correctly 2003-11-30 20:42:55 +00:00
manu
ab8a1b7902 Add task_terminate 2003-11-30 20:42:03 +00:00
provos
a0ce863234 fix off by one in find_last_set(); triggered for processes that have no
open file descriptors; found by tim robbins from freebsd
2003-11-30 18:16:45 +00:00
yamt
c64b77bad6 add definitions of new feature bits. 2003-11-30 14:05:47 +00:00
yamt
b9bb4e3f05 - rename WDC_CAP_LBA48 to ATA_CMD2_LBA48.
- remove WDC_CAP_QUEUE. (there's already ATA_CMD2_RWQ.)

as discussed on tech-kern@.
2003-11-30 13:57:12 +00:00
bjh21
a5bcddc85a Add pcb_onfault handling to address exception handler so users can't crash
the kernel by passing ludicrous addresses to system calls.
2003-11-30 13:22:32 +00:00
fvdl
d8ec3cb507 Keep mxcsr and mxcsr_mask across the fake init in process_read_fpregs.
From Mark Kettenis.
2003-11-30 12:59:30 +00:00
ragge
86f405ed49 Bugfixes for emulated instructions MOVTC and MOVTUC, from Bertram Barth:
> - condition-codes should be set from (unmodified) srclen vs. dstlen
>   instead from the modified (register-) values after completion.
>
> - for MOVTUC the V-bit should be set if the esc-char was found.
>
> - the arguments for comparison should be reversed.
>
> - count is unsigned word, but for condition-codes the comparison
>   should be done with signed words (ie. N = srclen LSS dstlen)
2003-11-30 10:02:21 +00:00