Commit Graph

71465 Commits

Author SHA1 Message Date
petrov 3936b06424 Initialize restartcnt. from FreeBSD. 2004-06-11 17:25:47 +00:00
chs 5579fe0ffc change sigdebug default to not print anything. 2004-06-11 14:01:02 +00:00
chs a9402ad488 convert another %b to bitmask_snprintf(). 2004-06-11 13:59:40 +00:00
yamt c9817d1a97 umap_lookup/layer_lookup: NULL out *ap->a_vpp after calling
underlying filesystem because some caller including lookup()
assume that *vpp is NULL on error.
2004-06-11 12:34:13 +00:00
yamt e3b58482fb nfs_doio_read: use np->n_rcred instead of curproc->p_ucred for VDIR.
XXX maybe it's better to use a cred passed by VOP_READDIR.
2004-06-11 12:26:31 +00:00
is 1a51c1000a Don't recompute loadbase; use the value passed by the bootloader instead.
(It should know where it loaded us, right?)
Patch contributed by Gunter Nikl.
2004-06-11 12:23:10 +00:00
he ed6110e9dd The __used__ attribute first appeared in gcc 3.1, not in 2.7, according
to the gcc expertise.  Fixes build problem for the vax port, which still
uses gcc 2.95.3.
2004-06-11 07:11:00 +00:00
itojun 501233726d implement IPV6_USE_MIN_MTU sockopt. needed by bind9 + EDNS0 + big receive buffer. 2004-06-11 04:10:10 +00:00
petrov 3c80c1c781 pci_find_ino: support pci-pci bridges. 2004-06-11 03:52:00 +00:00
jonathan d907e82ddc Fix potential memory leak in sbappendaddrchain():
We do an MGETHDR)() for each mbuf "packet" of the input chain, to hold
the socket address prepended to that "packet".  If those MGETHDR()s
ever failed, we would leak all the successfully-allocated mbuf
headers.  Leak noted by Yamamoto-san (yamt@NetBSD.org); thanks for catching it!

Add socketbuf invariant-checking macros to sbappendaddrchain(), and
replace a stray bcopy() with memcpy(), also as suggested by Yamamoto-san.
2004-06-11 03:46:01 +00:00
uch 4ce277b80f make hpcboot compile again. 2004-06-10 18:35:26 +00:00
matt 7fe2525338 Update RESIDUE_LW[01] to their correct offsets 2004-06-10 18:32:20 +00:00
kleink c004d32eb8 Reflect <sys/endian.h> rev. 1.4: make htonl() et al. arguments and
results uint{16,32}_t.  Noted by Ian Zagorskih.
2004-06-10 16:01:39 +00:00
uch 02fac2e6f2 recompile. 2004-06-10 16:00:08 +00:00
uch 237009a03b add __daddr_t=int32_t 2004-06-10 15:59:21 +00:00
uch 352d7c06a3 add Multimedia Card entry. 2004-06-10 15:58:33 +00:00
uch 4d7bd279c7 allocate section and program header table dynamicaly.
fixed section header table over flow problem.
2004-06-10 15:57:18 +00:00
uch 40fef19ff3 change uuencoded suffix. 2004-06-10 15:55:36 +00:00
yamt 03db65e256 make sure that nfssvc sockets are zapped before being freed. 2004-06-10 12:59:57 +00:00
yamt b0ac3e4201 nfsrv_zapsock: fix an inverted condition in nfs_syscall.c rev.1.74. 2004-06-10 12:57:43 +00:00
seb c97029b2ee Add cnmagic(9) support: previously only <Break> was supported to break
into the debugger or ROM monitor from the console.
Note that <Break> is still the default.

Thanks to martin@ for testing.
Approved by petrov@.
2004-06-10 12:11:19 +00:00
atatat a74d44c1c9 #include sys/lock.h for struct simplelock definition.
Addresses PR pkg/25772.
2004-06-10 06:15:23 +00:00
jonathan 37b1ad2317 Commit changes to make ACQUIRE messages -- actually, all messages
to ``registered'' sockets -- be treated ``specially'', as suggested
by RFC-2367.

The "special" treatment sys/netipsec now gives such messages is that
we use sbappendaddrchain() to deliver the (single) kernel-generated
message to each registered PF_KEY socket, with an sbprio argument of
SB_PRIO_BESTEFFORT, thus by-passing

For now, we check for registered messages, set a local `sbprio'
argument, and call sbappendaddrchain() (as opposed to sbappendaddr())
if and only if sbprio is non-NULL. As noted, we can rework
key_sendup_mbuf(), and all its callers, to pass the sbprio argument;
pending consensus (and hopeful KAME buy-back).
2004-06-10 01:39:59 +00:00
jonathan 121767b691 Fix oversight from re-using reworked sysctl() code for unicast SPD,SADB dump:
because the sysctl() code wasn't setting the requestor-pid field in dump
responses, the reworked unicast dump wasn't setting the requestor pid, either.
More exaclty, the pid field was set to 0.

No problem for setkey(8), but racoon reportedly ignores SADB dump-responses
with any pid (including 0) which doesn't match its own pid. A private bug
report says the 0-valued pid field broke racoon code which attempts to recover
from death of a prior racoon process, by dumping the SADB at startup.

Fix by revising sys/netipsec, so that both the new unicast PF_KEY dump
responses and the sysctl code set the requestor pid field in all
response mesages to DUMP requests.
2004-06-10 01:28:25 +00:00
kleink 8a98994beb Get rid of the silly CPU601 hooks and move BAT register restoration and
obliteration to RESTORE_{KERN,USER}_SRS, respectively; have oea_init()
patch these sequences to be skipped on non-MPC601s.  The code sequence
matching heuristic isn't as pretty as the one for VRSAVE and MQ but works
well enough with the current structure of the trap code, and can be easily
updated when necessary.
2004-06-09 23:24:51 +00:00
rumble 533084bbc7 Refactor consinit() for readability by pulling out mach_type
specific code into their own functions. No functional change is
intended.

ok'd by pooka and sekiya
2004-06-09 23:01:01 +00:00
martin 86494c7fd4 Add pseudo-device ptm. 2004-06-09 20:25:54 +00:00
kleink 15764c5ab2 pmap_extract(): consider the MPC601's different battable layout, and its
use of I/O segments.
2004-06-09 19:30:57 +00:00
kleink 00fcabcfc9 Print SPR 0x100 as VRSAVE on non-4xx. 2004-06-09 19:19:05 +00:00
he b22e6a658e Bump size of ramdisk image from 3148KB to 3200KB so that the contents
fits again.
2004-06-09 19:04:38 +00:00
kochi d639792bc2 The "implicit return" problem is already fixed since when I imported
ACPICA_PEDANTIC changes from FreeBSD.
Added one item (processor driver).
2004-06-09 16:48:49 +00:00
chs 5183104959 redo rev. 1.13, handle curlwp being NULL correctly. 2004-06-09 16:06:56 +00:00
rumble df731a5f0f Use global static prom vectors within the module instead of
creating them on the fly. Simplify arcemu_ip12_putc() since the
printf vector behaves as expected.
2004-06-08 22:51:21 +00:00
he 32381a5299 PAGE_SIZE is apparently not a constant on the sparc port, so don't
use it in a static initializer.  Instead, initialize in signal_init().
2004-06-08 19:35:30 +00:00
kleink b7ca652249 Add MPC601 support. 2004-06-08 19:29:53 +00:00
kleink 1e669a49c6 Repair a comment misplaced in rev. 1.43. 2004-06-08 19:07:00 +00:00
kochi d29c4e62c3 Fix typo:
ACPI = Advanced *Configuration* and Power Interface
2004-06-08 12:46:11 +00:00
nathanw 23ac7ba060 pxa2x0_bs_unmap(): KVA allocated in pxa2x0_bs_map() needs to be freed. 2004-06-07 19:45:22 +00:00
drochner 4e2399e344 analogous to cfefs_elf.h, use __used for link set entries (untested) 2004-06-07 18:42:18 +00:00
drochner 3a3f462dc7 use the __used attribute for link set entries to avoid them being
optimized out (by gcc-3.4)
2004-06-07 18:41:38 +00:00
drochner dd8c99b244 define a __used attribute (empty for gcc<2.7) 2004-06-07 18:36:24 +00:00
yamt 656e74e298 do a LAYERFS_REMOVED hack for vop_rename as well. 2004-06-07 17:36:38 +00:00
kochi 7322c3b561 Add code for replacing DSDT. See comments in the file.
Ideas from T.Shiozaki.
2004-06-07 17:35:14 +00:00
kochi 96f8bc3637 Add ACPICA_PEDANTIC/ACPI_DISABLE_ON_POWEROFF options; follow the i386
changes.
2004-06-07 15:36:22 +00:00
kochi 7e55bddc3a Add ACPI_DISABLE_ON_POWEROFF option. 2004-06-07 15:33:52 +00:00
kochi 71dc5a9687 Add ACPI_DISABLE_ON_POWEROFF option.
Note: the default behavior is changed.  Now we don't disable the ACPI
subsystem on power off (halt -p) by default.
'options ACPI_DISABLE_ON_POWEROFF' in a kernel config file makes the kernel
behave the way we used to be.
2004-06-07 15:33:17 +00:00
kochi 248f79eb70 Remove the first one (split _REG initialization path into two phases;
which has been done since post-20031203 version of ACPI-CA).
Pointed out by mycroft.
2004-06-07 15:30:03 +00:00
christos f6a0807a9e make the scroll lines ioctl struct take u_int's again. The wsconsctl
command does not deal with shorts well.
2004-06-07 01:13:40 +00:00
kleink d92e6963e4 Add some BAT-style predicate macros. 2004-06-06 21:23:53 +00:00
martin 0db10bbadb In acpitz_get_zone only print verbose temperature thresholds when called
from acpitz_attach. This removes strange (and possibly scaring) messages
described in PR kern/25747.
2004-06-06 17:27:05 +00:00