Commit Graph

166685 Commits

Author SHA1 Message Date
uwe ec7fffd0f0 Drop exec and endianness options that are in std.sh3* and instead
include std.sh3el.
2008-02-02 03:10:06 +00:00
uwe a82100c2ca Add back std.sh3. For now it contains obvious EXEC_* options and
CPU_IN_CKSUM.

Introduce std.sh3e{b,l} that include std.sh3 and just add
corresponding endianness options.
2008-02-02 03:06:04 +00:00
tls 9b6c682b45 From Darran Hunt at Coyote Point: don't truncate HMAC to 96 bits unless
actually asked to.

Fixed in FreeBSD a while ago, discussed on tech-kern and tech-crypto.
2008-02-02 02:39:00 +00:00
uwe 1d3b24feca Add cpu_in_cksum.S 2008-02-02 02:19:42 +00:00
uwe 8c87580a0e Convert in_cksum() to new generalized cpu_in_cksum(). 2008-02-02 02:15:40 +00:00
uwe d6b98318d5 Rename in_cksum.S to cpu_in_cksum.S as is to preserve original code in
the new file history.
2008-02-02 02:11:19 +00:00
xtraeme b5abdb42f6 Destroy the callout via sysmon_envsys_destroy() now that it's
initialized in sysmon_envsys_create().
2008-02-02 02:02:37 +00:00
xtraeme 16f978c748 Fix a bug in the 'refresh-timeout' device property that was giving
the same value to all devices even if the configuration file was
changed.
2008-02-02 01:44:04 +00:00
matt ab1d549cb1 Improve my version of mtprng_random. Reshuffle things. Add an compatible
version of init_by_array.
2008-02-02 01:13:04 +00:00
dyoung 46be8b643f Fix a two races between the initialization code and cbb(4) interrupts:
establish the interrupt handler before enabling interrupts, so that
we will not get an interrupt storm that keeps the system from making
any progress.  (We may have only been susceptible to the storm if
cbb(4) shared an interrupt with, say, uhci(4)).  Also, finish
setting up the pcic_handle before enabling interrupts, so that the
Pcic_read() call in pccbbintr() will not jump to address 0!

Now, pccbb_intrinit() encapsulates all of the interrupt initialization.

Explicitly enable card-status changed (CSTSCHG) events.

Paranoia: ensure that writes to the socket event register (interrupt
acknowledgements) are flushed to the h/w by reading the register
(gross).  We really need something like
bus_space_sync(BUS_SPACE_BARRIER_WRITE_BEFORE_INTERRUPT).

More paranoia: in pccbbintr(), if the device is inactive, get out.
2008-02-02 00:31:25 +00:00
christos 56709adfc9 Try to fix previous commit of /.. and /. handling for GLOB_PERIOD. I will
write a regression test for this.
2008-02-01 23:29:54 +00:00
xtraeme 74a0270856 aiboost_getcomp: use Package.Count to allocate and iterate over
the elements rather than Integer.Value, which sometimes doesn't
match and gives unexpected results on the error path.

This fixes the kmem_poison_check on DEBUG kernels (finally). Patch
by Fukumoto Atsushi. Thanks!
2008-02-01 23:12:30 +00:00
christos f6a680bbd6 add a couple more 2008-02-01 22:40:01 +00:00
christos ebcc6ba679 handle cap style databases. 2008-02-01 22:39:20 +00:00
dyoung b31e1f190c Use aprint_*_dev() and device_xname() instead of accessing dv_xname
directly.
2008-02-01 21:13:44 +00:00
elad cd23f36378 Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.
2008-02-01 20:01:06 +00:00
tls 8edf0049e7 don't allocate AES keys with M_WAITOK! 2008-02-01 19:10:31 +00:00
tsutsui f27a14abed - use common/termcap.mini
- set TERM=wsvt25
2008-02-01 17:18:07 +00:00
tsutsui 4b2713682e Catch up with "Refactor in_cksum/in4_cksum/in6_cksum implementations". 2008-02-01 16:37:30 +00:00
tsutsui da6308963f Use common/termcap.mini. 2008-02-01 14:25:58 +00:00
tsutsui 8dcb83c8d0 Remove an entry for obsolete pccons. 2008-02-01 13:46:26 +00:00
tsutsui d92ad10bca Move and share a common termcap.mini file. 2008-02-01 13:43:11 +00:00
jdc 608790d545 Note bugs in the HW checksum routines. 2008-02-01 11:04:06 +00:00
jdc 0806e2a957 Disable HW RX TCP4 checksums because it is buggy (it appears to only checksum
src IP, dst IP and packet len).

Also, remove the "MAC rx fault" redundant printf().
2008-02-01 11:03:19 +00:00
jdc 129b6bc9a9 Set the chip revision in the softc. 2008-02-01 10:58:28 +00:00
jdc 16d4e38d4d Add GEM_IS_SUN macro, and chip revision to the softc. 2008-02-01 10:53:25 +00:00
tnn 54554bfd6e Update comments. 2008-02-01 09:39:20 +00:00
ad 234836feb7 Sync with reality. This is a work in progress. 2008-02-01 09:05:52 +00:00
skrll f5dc52a3c1 Initialise mnt_renamelock in vfs_rootmountalloc. 2008-02-01 08:53:19 +00:00
tls e17d3eea39 This code never worked on a released version of FreeBSD in the form it's
been in in our tree, and certainly does not work on any version of FreeBSD
now.  Run through unifdef -D__NetBSD__ -U__FreeBSD__ yielding a small
reduction of size and a dramatic improvement in readability.

No, this does not yield any meaningful decrease in patchability (unlike
mechanical changes that touch live source lines) -- try it and see.
2008-02-01 04:52:35 +00:00
christos 3f5a745e04 fix 0 bssid problem on rejoin. From FreeBSD. 2008-01-31 22:07:22 +00:00
christos a94d934365 Remove __PIC__ because on mips __PIC__ is used to indicate that the pic abi
is used, and it is set even in the absence of -fpic or -fPIC. Thanks to
tsutsui@ for the explanation.
2008-01-31 20:07:46 +00:00
plunky 6f45ff2e8b do not destroy session callout until the session is definitely finished
with, otherwise trying to stop it will cause a panic
2008-01-31 19:30:23 +00:00
markd 906c80684e s/AD1983_EVENT/AD198X_EVENT/ 2008-01-31 19:01:50 +00:00
markd 5dc269fc53 Use more meaningful names for AD1984 widgets.
Select dac as default input for internal mono speaker.
Handle jack pin detect for headphones and lineout on Dell Optiplex 755.
2008-01-31 18:58:57 +00:00
dyoung 3d8a594471 Let the compiler decide: inline -> static, register -> . 2008-01-31 18:45:45 +00:00
dyoung 8c145c8134 Cosmetic: constify, KNF, use device_t and accessors, use
aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
2008-01-31 18:32:51 +00:00
dyoung cb8aa1ff9b Constify both struct disk->dk_name and the `name' argument to
disk_init().
2008-01-31 18:30:55 +00:00
tsutsui 636d4f1ae2 Account bi_size properly. 2008-01-31 17:38:56 +00:00
tsutsui 3bf45f63f8 Avoid using division ops in delay(9). 2008-01-31 17:37:45 +00:00
reed f8fd203aa2 Add comment to point to manual page for details. 2008-01-31 15:21:32 +00:00
jmmv af05f05499 Let Xen kernels build with "options MODULAR" enabled by pulling in the
appropriate kobj_machdep.c file.
2008-01-31 13:46:33 +00:00
ad d7b9a25622 Remove debugging code that's no longer needed. 2008-01-31 13:13:20 +00:00
ad d8251138f4 pthread_rwlock_wrheld_np: return true only if locked by the calling thread. 2008-01-31 11:50:40 +00:00
tnn 42efa34b27 wtf: I don't know what idk means!
^^^^^^^^^^^^
2008-01-31 11:45:16 +00:00
sborrill 00eb6ae835 Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.

My offer of a development machine to fix this one and for all is still open!
2008-01-31 11:11:09 +00:00
mlelstv 58dedb340c use the correct symbols 2008-01-31 10:07:09 +00:00
wiz 90783e5e06 Fix typo in comment. 2008-01-31 09:57:27 +00:00
simonb e99e83279b Check _STANDALONE as well as _KERNEL when choosing headers to include.
Also pull in <lib/libkern/libkern.h> so we get prototypes and a struct
mtprng_state declaration.
2008-01-31 08:23:13 +00:00
tnn d1e420ee23 - Needs sys/atomic.h for atomic_inc_uint()
- Quench compiler warning about signed/unsigned mismatch when building LKM
2008-01-31 08:23:04 +00:00