Commit Graph

163854 Commits

Author SHA1 Message Date
agc
23c77f8d12 Do runtime detection of machine's endianness, rather than relying on a cpp
macro which was never changed. This is the QAD fix, longer term we will
move to use native md5 routines if available.

Should go some way to fixing authentication problems when using an
initiator and target of different endianness.
2007-11-28 16:46:38 +00:00
ad
a0b58b4601 Remove remaining CPUCLASS_386 tests. 2007-11-28 16:44:46 +00:00
ad
157ae0ddef Use the new atomic ops. 2007-11-28 16:40:40 +00:00
ad
6def667f04 Use the new atomic ops. 2007-11-28 16:28:43 +00:00
ad
0cddf536c0 Hook in the atomic ops from libkern. 2007-11-28 15:26:00 +00:00
ad
db42e14f44 Hook the atomic ops in. Right now they are only built into libkern, and
only if available.
2007-11-28 15:25:44 +00:00
ad
b47fc5f5e0 Fix up a few minor problems. 2007-11-28 15:24:38 +00:00
yamt
82d61b9ade - merge {i386,xen}/i386/trap.c.
- add a comment about a hack for xen2.
2007-11-28 14:02:30 +00:00
jnemeth
fd5cef8508 Sync with src/sys/sparc/dev/fd.c change to use softint(9) API.
XXX Please keep these two in sync as this one is a drop-in replacement
for the sparc version and the idea is to have both sparc and sparc64
use the same file one day.
2007-11-28 12:44:13 +00:00
simonb
f717d58276 Use lswi/syswi instead of lwz/stw when doing loads/stores since we don't
know the alignment of data being copied.  403 cores have alignment
restrictions on lwz/stw that 405 cores don't have.  lswi/syswi benchmark
at the same speed as lwz/stw on a 405 Walnut.

Fixes problems reported by Juergen Hannken-Illjes on the Explora.
2007-11-28 12:22:28 +00:00
he
756f91194a Follow up the removal of the lwp argument to VOP_ functions.
In some cases, use curlwp instead of the now missing argument.
2007-11-28 10:34:37 +00:00
jnemeth
f8660caf4c fix not protecting variable length buffer warning 2007-11-28 08:20:29 +00:00
dyoung
b6995d1653 Bug fix: make pf_route() set M_CSUM_IPV4 before calling ip_fragment().
If you use a route-to rule such as 'pass out quick on ath0 route-to
gre2 all', and the MTU on gre2 is smaller than the MTU on ath0,
then pf_route() will fragment your packet by calling ip_fragment().
Because pf_route() did not set M_CSUM_IPv4, ip_fragment() would
not compute the checksum on the fragments, and PF would send IP
fragments with bad checksums out of gre2.
2007-11-28 04:23:33 +00:00
dyoung
79d53b3100 Move IN_NEED_CHECKSUM() to in_offload.h for re-use. 2007-11-28 04:14:11 +00:00
briggs
75b18122f2 Correct a typo. To create the command/status word, shift the components
left, not right.
2007-11-28 04:03:16 +00:00
dyoung
453e5e8a7d Cosmetic: join two lines. 2007-11-28 02:40:21 +00:00
ad
65728ed419 x86 atomic ops. 2007-11-28 01:33:47 +00:00
kiyohara
b8e760f970 + Use device_t.
+ Increment rptr if send the ESCAPE char.
+ Use m_pkthdr.len for pktlen.
2007-11-28 01:31:55 +00:00
ad
15619e77dc Remove the sub-word atomic ops because they can not be implemented correctly
on some architectures and so are misleading. The same effect can be had by
building on top of the 32-bit CAS. As a side effect this makes it somewhat
easier to complete and document the operations across all platforms.
2007-11-28 01:30:06 +00:00
dogcow
3c143b9440 more lwp cacking fallout 2007-11-27 23:30:56 +00:00
rhaen
480c90d49f Added my name to the list of developers 2007-11-27 22:56:07 +00:00
christos
a9c710744b require that the options argument is the right size, not that it is greater
or equal to the requested size. Suggested by Matt Thomas.
2007-11-27 22:45:29 +00:00
christos
621fa4d8c6 Regen! 2007-11-27 22:19:11 +00:00
christos
5b5262a0af another minor fix from Anon Ymous 2007-11-27 22:16:03 +00:00
ad
23589af2fb lwp arg to VOPs is gone. 2007-11-27 22:12:24 +00:00
ad
99801e924b Use the softint API. 2007-11-27 21:56:06 +00:00
ad
ae87f94d1d Bump libc/libpthread minor for thr_curcpu()/pthread_curcpu_np(). 2007-11-27 21:06:41 +00:00
ad
4084ca7f3f Add thr_curcpu(), pthread_curcpu_np(). 2007-11-27 20:58:26 +00:00
ad
d5e9b90716 Fix a warning with _LP64. 2007-11-27 20:55:03 +00:00
christos
c98098ca80 Add aligned(16) in savefpu like the i386 port has. Suggested by Matthias
Drochner.
2007-11-27 18:23:03 +00:00
reinoud
1783f9c4fa Pullup fixes from UDF RW support project. This commit fixes the
mmc_discinfo conceptional bug and also vastly improves VAT searching.
2007-11-27 18:10:42 +00:00
reinoud
9c2e200bb1 Pullup fixes from UDF write development project. This patch fixes a
conceptional bug in mmc_discinfo, improves DVD+R feature detection and
prevents corruption of mmc_trackinfo readout on some devices that return
short trackinfo structures.
2007-11-27 18:06:37 +00:00
pooka
25e04cd80d regen: assert l == curlwp in NDINIT 2007-11-27 15:52:56 +00:00
pooka
94b846957b Do some dynamic analysis for the next few days: KASSERT that
l == curlwp in NDINIT
2007-11-27 15:52:26 +00:00
christos
8f2e876039 Shuffle things around so that pcb_savefpu goes back to be aligned in a 16
bit boundary. Noted by Arto Huusko.
2007-11-27 15:49:48 +00:00
pooka
69668a6b81 regen 2007-11-27 15:27:51 +00:00
pooka
064cfb563e pull in rev 1.54 of namei.h 2007-11-27 15:27:30 +00:00
jnemeth
3b39a4f529 Add a comment after the copyright boiler plate describing how to
"regenerate" this file.
2007-11-27 13:38:23 +00:00
tsutsui
726acbb131 Use powerof2() macro in <sys/param.h> rather than a homegrown version. 2007-11-27 13:31:10 +00:00
tsutsui
fdc8440c81 - use prop_dictionary_set_bool() to set "aic7xxx-use-target-defaults" property
- set "override_ultra" property against not all but only built-in ahc
2007-11-27 13:26:37 +00:00
haad
8a4a986b56 Add myself to the list of NetBSD developers. 2007-11-27 13:04:01 +00:00
pooka
f9379f7719 a_l -> curlwp 2007-11-27 11:37:27 +00:00
pooka
6a3d9a187d Remove "puffs_cid" from the puffs interface following l-removal
from the kernel vfs interfaces.  puffs_cc_getcaller(pcc) can be
used now should the same information be desired.
2007-11-27 11:31:17 +00:00
dogcow
6c09f19fb4 and one more lwp removal victim 2007-11-27 11:25:29 +00:00
hannken
8b99233008 When using bus_space_map() on the ISA bus unstride the address. Since
Rev. 1.13 of sys/arch/powerpc/powerpc/bus_space.c the address will be
strided by memio_map().
2007-11-27 10:59:24 +00:00
hannken
3b59dbb195 Bump SYMTAB_SPACE so that it fits again. 2007-11-27 10:55:27 +00:00
elad
3862950e53 Add a NOTES section to the manual, indicating that kauth(9) is still under
active development and its ABI (and possibly API) may change between
NetBSD versions.

This is critical to, for example, LKMs, where there might be a case of them
being built using one version of the ABI and used on system with another.

The main concern for "ABI" here is the set of KAUTH_* actions and requests
that is (for now) an enum. This note is likely to be removed as kauth(9)
is stablized -- hopefully before NetBSD 5.0.

okay christos@
2007-11-27 10:50:09 +00:00
dogcow
3465a006e9 more VFS_STATVFS(x,y,z) fallout; change them to VFS_STATVFS(x,y). (hi, pooka!) 2007-11-27 09:47:15 +00:00
dogcow
1e02f40f0f fallout from the not-quite-complete curlwp removal.
I'm not sure why I had to monkey about with the includes to get VFS_SYNC to
reappear.
2007-11-27 09:14:21 +00:00
ad
c3a9a185b4 Tidy up the sigacts locking a bit: sigacts can be shared between
multiple processes.
2007-11-27 01:27:30 +00:00