Commit Graph

74787 Commits

Author SHA1 Message Date
chs
4d33e8a954 move recursion-detection code inside interrupt-protected region. PR 24254. 2005-02-13 02:03:54 +00:00
heas
2d4ced7c82 For controllers (eg: hme & gem) that can only perform linear hardware checksums
(from an offset to the end of the packet), the pseudo-header checksum must be
calculated by software.  So, provide it in the TCP/UDP header when
M_CSUM_NO_PSEUDOHDR is set in the interface's if_csum_flags_tx.

The start offset, the end of the IP header, is also provided in the high 16
bits of pkthdr.csum_data.  Such that the driver need not examine the packet
at all.

XXX At the request of Jonathan Stone, note that sharing of if_csum_flags_tx &
    pkthdr.csum_flags for checksum quirks should be re-evaluated.
2005-02-12 23:25:29 +00:00
christos
be3704c73f pass the flag to fdclone. 2005-02-12 23:14:03 +00:00
fvdl
7b10f1cabc Don't panic when lwp_suspend finds an LWP on another CPU, just return
EINVAL for now.
2005-02-12 21:39:00 +00:00
chs
365df27e4b in sparc_interrupt(), wait to enable interrupts until just before calling
the handler and disable them again right after the handler returns.
we don't want another hardware interrupt coming in while we're mucking
with the list pointers.  also, clear the intrhand's ih_pending pointer
before calling the handler rather than after, so that if another interrupt
comes in while the handler is running, we can put the intrhand back on
the list so it will be called again.

in send_softint(), disable interrupts via %pstate instead of %pil, so that
hardware interrupts at higher levels are blocked while we manipulate the
intrpending list.  also, if the intrhand already has ih_pending set,
don't bother poking the SET_SOFTINT register again, since being on the list
implies that there is already a softint pending in the hardware.

these appear to fix PR 21750 (the "sleep forever" problem).

while I'm here, remove more vestiges of the !INTRLIST softint stuff
(code and comments).  and in sparc64_ipi_flush_all(), interrupts are
already disabled so we don't need to fiddle with %pstate.
2005-02-12 21:32:56 +00:00
jdolecek
f40d6d8ba8 add npx* at pnpbios? (commented out) 2005-02-12 13:07:27 +00:00
manu
5c217c1a67 Add support for IPsec Network Address Translator traversal (NAT-T), as
described by RFC 3947 and 3948.
2005-02-12 12:31:07 +00:00
rearnsha
ef3f4c0f7e DMA on the i31244 is now enabled by default. 2005-02-12 10:23:21 +00:00
rearnsha
d0a75ee514 Change PCIIDE_I31244_ENABLEDMA to PCIIDE_I31244_DISABLEDMA as
suggested by briggs.  Put the flag in opt_pciide.h.
2005-02-12 10:20:50 +00:00
rearnsha
16574672f1 Document the types and addresses of the IIC devices
(Disabled, beacuse they seem to be non-functional at present).
2005-02-12 09:59:29 +00:00
rearnsha
fdac3760e5 ... but make it's filesystem type FFS (not NFS :-). 2005-02-12 09:54:36 +00:00
rearnsha
3633c570d2 Build a kernel variant with root on wd0. 2005-02-12 09:53:27 +00:00
rearnsha
d8a87d92cb Bump the symtab space 2005-02-12 09:51:05 +00:00
rearnsha
6085be19d6 Redboot defaults to a console speed of 115200 baud on this board. 2005-02-12 09:49:40 +00:00
rearnsha
699b0c2c38 This board has a 33.0 crystal, so the counter speed comes out at 198MHz 2005-02-12 09:45:49 +00:00
rearnsha
31711b756b Permit the counter frequency to be overridden by a board configuration 2005-02-12 09:44:15 +00:00
nakayama
2d2c3aa5fa Make 32-bit kernels with DIAGNOSTIC compile again. 2005-02-12 09:38:28 +00:00
jmc
02a4880993 vm_map_max needs a struct pointer, so add a missing deref here 2005-02-12 09:38:25 +00:00
yamt
05617b0ee7 hp300 part of the following change,
which was missed due to a sticky tag in my local tree.
pointed by Izumi Tsutsui.

> remove uvm_map_protect from cpu_startup of several ports.
> - they shouldn't be needed with the current fault handler.
> - they causes assertion failure with the recent vm_map implementation.
>
> discussed on tech-kern@.  reviewed by Chuck Silvers.
> PR/29179 from Julio M. Merino Vidal.
2005-02-12 08:17:38 +00:00
oster
be864067da The 'next' argument to rf_CreateDiskQueueData is always NULL. Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.
2005-02-12 03:44:41 +00:00
oster
0b15470982 Add a 'waitflag' argument to rf_CreateDiskQueueData() and use it to
determine if we are willing to wait for memory to come from the
diskqueuedata (dqd) and bufpool pools.  Cleanup the mess related to
code calling rf_CreateDiskQueueData() with different expectations
(and/or blatent disregard) of what might happen if there were
insufficient pool resources.
2005-02-12 03:27:33 +00:00
briggs
ef57c7b216 Add twe. 2005-02-12 03:24:39 +00:00
heas
52b0cd6b47 ntohs->htons for ip6 plen (payload length).
It is not technically necessary to set plen here, since ip6_output() starts
off by calculating it, but leaving it keeps it consistent with other code.
2005-02-12 01:24:07 +00:00
matt
4612c7a119 When building kernel for OEA, allow unaligned accesses since OEA
processors will deal with them properly.
2005-02-12 00:03:21 +00:00
rearnsha
dfcdd57e20 Add support for the Artisea device operating in DPA mode.
Approved by briggs.
2005-02-11 21:12:32 +00:00
rearnsha
920296fb7f Add support for Artisea chips operating in DPA mode, which has a
16-bit view of the ATA command registers for extended commands.

Approved by briggs.
2005-02-11 21:11:15 +00:00
jdc
7fa1245cbb Add some PCMCIA devices that were missing.
Add/fix comments.
2005-02-11 18:26:59 +00:00
yamt
18acc63fc4 remove uvm_map_protect from cpu_startup of several ports.
- they shouldn't be needed with the current fault handler.
- they causes assertion failure with the recent vm_map implementation.

discussed on tech-kern@.  reviewed by Chuck Silvers.
PR/29179 from Julio M. Merino Vidal.
2005-02-11 15:03:55 +00:00
ws
b2bdc38871 Prevent integer overflow.
Fixes PR29332.
2005-02-11 11:01:10 +00:00
dsl
05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00
simonb
3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
chs
467487d274 use vm_map_{min,max}() instead of dereferencing the vm_map pointer directly.
define and use vm_map_set{min,max}() for modifying these values.
remove the {min,max}_offset aliases for these vm_map fields to be more
namespace-friendly.  PR 26475.
2005-02-11 02:12:03 +00:00
chs
9d5ffb80d3 remove redundant initialization of minaddr for uvm_km_suballoc(). 2005-02-11 02:09:39 +00:00
dsl
25579adfb4 Make ffs snapshots be enabled by 'option FFS_SNAPSHOT' 2005-02-10 22:23:19 +00:00
dsl
2f6f4269bd Add a stub file so that snapshot support can be compiled out.
Will allow INSTALL_TINY to fit back in its designated space.
Since the calling code doesn't allow a snapshot mount to fail, this code
will output a warning and delete any snapshots it finds.
This only happend on rw mounts - snapshots don't seem to be created
when mounting ro.
The whole way the snapshots gets mounted is a PITA anyway, the superblock
'last mounted' time should be used to validate that the fs hasn't been
mounted elsewhere.
2005-02-10 22:22:32 +00:00
drochner
342b8a4cf8 Recognize an obscure cpu feature flag bit "xTPR"
which indicates that Task Priority Messages might
be disabled. Not relevant for the kernel for now
(related to interrupt distribution on the APIC bus
afaict), but present on one of my boxes.
Being here, also recognise the future "Vanderpool"
extension.
2005-02-10 20:52:52 +00:00
jmc
9b1c35ec87 Fixes from PR#29289. Need linux_sg.c in here now as well 2005-02-10 17:37:35 +00:00
is
4119a9ec98 This is not a network - use be32toh etc. instead of ntohl... 2005-02-10 16:31:41 +00:00
tsutsui
b611bd6446 Allocate struct todr_chip_handle in struct rtc_softc rather than
using MALLOC(9).
2005-02-10 16:07:38 +00:00
ws
5964df620b Increase max data size, now that the Xserver can grok it.
(It was the only program that couldn't.)
2005-02-10 10:42:04 +00:00
itojun
692c601c25 backout 1.54. heurestic code should never be used. if you experience DAD
failure, suspect your driver, not ND code.
2005-02-10 02:57:17 +00:00
christos
1b198d8f16 size_t should be cast'ed to unsigned long. 2005-02-09 23:42:30 +00:00
ws
5387f7217c Add support for large files (>2GB).
Like Linux, automagically convert old filesystem to use this,
if they are already at revision 1.
For revision 0, just punt (unlike Linux; makes me a bit too nervous.)

There should be an option to fsck_ext2fs to upgrade revision 0 to revision 1.

Reviewd by Manuel (bouyer@).
2005-02-09 23:02:10 +00:00
christos
7651651a23 Don't de-reference a NULL ktd on error. Fix from enami, thanks. 2005-02-09 16:15:16 +00:00
cube
8066f529e3 Fix typo reported by Patrick Welche on current-users. 2005-02-09 16:13:40 +00:00
hannken
8bb5af4d2e Fss device only checks read access to snapshot vode. On snapshot creation
check we are either super-user or owner of the snapshot vnode.
2005-02-09 16:05:29 +00:00
hannken
78f7fe0941 - Unlock backing store vnode in case of error.
- 32 -> sizeof()*NBBY
2005-02-09 15:12:19 +00:00
he
f29d7ec0d8 One can't portably print a size_t with an %u format directive.
Since this might be in the kernel, cast to unsigned int before printing.
Fixes build problem for amd64 (and presumably also our other LP64 ports).
2005-02-09 08:21:27 +00:00
he
c05368e398 Make the declaration of oip in fr_send_ip() conditional on INET,
since it's use is also conditional on that preprocessor macro.
2005-02-09 08:19:24 +00:00
martti
534d9de60b Added -DINET 2005-02-09 06:41:01 +00:00