yamt
0238f7233c
simplify x86 bus_dma internal "load" functions.
...
(by eliminating a variable "first" and using seg == -1 instead.)
2004-06-12 17:10:04 +00:00
mycroft
738ef9dc5d
Fix an unimportant typo.
2004-06-12 16:02:42 +00:00
uch
d20b906b5b
When serial console boot, don't find power supply port from
...
config_hook. Windows CE already power on it, and config_hook is not
initialized yet.
2004-06-12 15:39:33 +00:00
uch
c135c6674f
malloc program/section header table instead of fixed array.
...
properly terminate tag chain.
add debug print.
2004-06-12 14:31:49 +00:00
uch
7bc635be96
recompile.
2004-06-12 12:10:04 +00:00
uch
fe28a59378
adjust segment load address to 4byte align.
2004-06-12 12:09:38 +00:00
uwe
2869ffe3e5
As the 2nd stage loader uses simple word-by-word copy, make sure that
...
destination addresses of page tags are properly aligned.
2004-06-11 22:56:00 +00:00
tshiozak
1b7c9e7222
- make sure to use proc0's PTD for the ACPI wakecode.
...
- add re-initialization for npx while resuming.
2004-06-11 19:45:55 +00:00
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
he
4d1d8d6c84
Remove spurious second argument to sizeof().
2004-06-06 13:34:36 +00:00
kleink
7498ed2ff7
Mark cr0 as clobbered in mfrtc().
2004-06-06 10:45:06 +00:00
christos
ff64927ee9
Don't include the rnd device; it makes us too big.
2004-06-06 07:04:27 +00:00
dyoung
b0ce431f32
Add sysctl(9) descriptions for net.link and net.link.ieee80211.
2004-06-06 05:45:29 +00:00
dyoung
390d3859bf
Fix a typo in some #ifdef notdef code.
2004-06-06 05:44:25 +00:00
dyoung
7b92b29893
Improve argument checking. Convert from seconds to some number of
...
inactivity countdown intervals (currently these are 5 seconds).
2004-06-06 05:43:17 +00:00
dyoung
43dcf72c5f
Finally, refactor wi_media_change and ieee80211_media_change.
...
ieee80211_media_change handles a lot more conditions than
wi_media_change did.
This helps with the second bug mentioned in kern/25604, which causes
"SIOCSIFMEDIA: Invalid argument."
2004-06-06 05:32:17 +00:00
dyoung
e071e08cc6
Fix for kern/25604: ifconfig wi0 media DS11 panics system.
...
In ieee80211_chan2mode, do not dereference the marker for "any
channel," IEEE80211_CHAN_ANYC.
2004-06-06 05:28:58 +00:00
dyoung
8c3cb8f859
Resolve kern/25721 by detaching ethernet(-like) devices from a
...
bridge in ether_ifdetach.
2004-06-06 04:44:05 +00:00
dyoung
86fed42ae8
In ad hoc mode, ignore the MAC's link up/down indication, since it
...
does not appear to be reliable.
2004-06-06 04:38:33 +00:00
dyoung
eaa20d476a
Use bpf_mtap2 in tun(4).
2004-06-06 04:36:29 +00:00
dyoung
e80559eec4
Per Matt Thomas' and Darren Reed's suggestions:
...
Add bpf_deliver prototype.
Rename bpf_measure to m_length and move it to sys/sys/mbuf.h. I
make m_length an inline function in the header file to preserve
its performance characteristics, for better or for worse.
Optimize m_length: use the length in m_pkthdr.len, if M_PKTHDR.
In bpf_deliver, zero the on-stack mbuf before we do anything else
with it.
2004-06-06 04:35:53 +00:00
dyoung
50c193fc53
Define IEEE80211_RADIOTAP_HDRLEN, the length of a radiotap header.
2004-06-06 04:13:28 +00:00
dyoung
bcc2926388
Name some constants. Perhaps this deserves the cardbus_setpowerstate
...
treatment?
2004-06-06 04:10:49 +00:00
christos
6671f6dc9e
make copyright comments go to the ".copyright" section so that they
...
don't end up in the data segment and eat space.
2004-06-06 01:36:25 +00:00
lha
a9970d44c9
Return directly when pty_alloc_master failes in ptmioctl,
...
bug-report on current users from Denis Lagno dlagno at smtp dot ru.
Make debug message in pty_alloc_master to match the code.
2004-06-05 11:23:15 +00:00
jdolecek
849c8f1904
attach to Sitecom USB to serial cable
...
patch submitted in PR kern/25510
2004-06-05 08:41:43 +00:00
jdolecek
3173ee1a05
regen:
...
add Sitecom USB to serial cable
info submitted in PR kern/25510
2004-06-05 08:40:10 +00:00
jdolecek
80ce2a5588
add Sitecom USB to serial cable
...
info submitted in PR kern/25510
2004-06-05 08:39:31 +00:00
jdolecek
aaba5c2cd4
unify the statvfs-reporting related code to single smbfs_smb_statvfs routine
...
for easier maintenance; the decision to use either
SMB_TRANS2_QUERY_FS_INFORMATION or SMB_COM_QUERY_INFORMATION_DISK
is done inside it, the code for populating struct statvfs with values
is shared
2004-06-05 07:36:25 +00:00
yamt
cc5720dc40
unexport following x86 bus_dma internal functions.
...
_bus_dma_alloc_bouncebuf
_bus_dma_free_bouncebuf
_bus_dmamap_load_buffer
2004-06-05 07:31:31 +00:00
yamt
1b31a2b6a0
- introduce a function, i82489_icr_wait, which waits for
...
LAPIC_DLSTAT_BUSY cleared, and use it where appropriate.
- panic if lapic's busy too long and DIAGNOSTIC.
2004-06-05 07:15:57 +00:00
yamt
26239e60ec
a comment about SBLASTRECORDCHK and SBLASTMBUFCHK.
2004-06-05 07:14:05 +00:00
dyoung
9494e60fdb
No need to detect and exit on short 802.11 packets, since
...
ieee80211_input will do that (and tap the packet).
2004-06-05 07:12:45 +00:00
jdolecek
88edd838ec
set 'frag' size to the same value as the file system block size, so
...
that userland would pick up correct size of unit (it uses lower of
these values as the size of one 'block' for f_blocks et.al.)
fixes PR bin/25319 by Juan RP
2004-06-05 06:28:11 +00:00
mycroft
4713b8ea6e
Remove a couple of items that are done now. XXX Is the first one also done?
2004-06-05 03:14:45 +00:00
bouyer
851ca6fa98
Don't try to bus_space_subregion() registers that didn't get mapped.
...
Problem reported and fix tested by Kurt Schreiner on port-alpha.
2004-06-04 21:15:00 +00:00
thorpej
85c0b77956
twe_ccb_map(): Remove the DEBUG panic case of "unknown" S/G list offset.
...
In all likelihood, this is a command passed from userspace management
tools where no S/G list is needed because no data is being passed.
2004-06-04 20:11:17 +00:00
uch
c58b450e06
fix hd64461video_get_clut.
2004-06-04 13:23:34 +00:00
skrll
b00b102b41
Allow for struct sigacts being greater than PAGE_SIZE on sun2. sun2
...
-current kernels now work again.
Reviewed by Matt Thomas. Thanks.
2004-06-04 12:23:50 +00:00
he
72160a1d69
In order for netstat for the vax port to build, add a forward
...
declaration of "struct proc" for usage outside the kernel.
2004-06-04 09:49:12 +00:00
he
94319b09bc
Need to forward-declare "struct timespec" because the new ffs_snapshot()
...
function declaration refers to it. Fixes build problem of sbin/badsect
for the vax target, which still uses gcc 2.95.3.
2004-06-04 07:43:56 +00:00
sekiya
f7212a9a5d
Use the SPLAY_* macros. Copied from the i386 pmap, okay'ed by fvdl@
2004-06-04 07:42:33 +00:00
thorpej
e33c2bb5d5
Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
...
common Makefile.kern.inc has been included.
2004-06-04 04:45:49 +00:00
thorpej
6c0c39322a
Wrap a noisy probe message in FD_DEBUG.
2004-06-04 01:12:04 +00:00
nathanw
956448b619
Initialize simple_lock in struct cwd; otherwise, one gets an
...
uninitialized lock panic at the first use of cwdshare().
2004-06-03 20:35:30 +00:00
christos
6a5f1d6689
return ENODEV if functions are not compiled in the kernel.
2004-06-03 19:04:58 +00:00
heas
4a60d04fc7
Double the time we wait for the attention bit following a soft reset (and make
...
the timeout message just a bit clearer), as the latest firmware appears to be
a bit slower.
OK from Jason Thorpe.
2004-06-03 18:07:30 +00:00
petrov
9b8bcb0518
Add DIAGNOSTIC in iommu_dvmamap_load if pmap_extract fails.
2004-06-03 06:17:05 +00:00
yamt
6c4915e34d
linux_sys_ioctl: map EPASSTHROUGH to EINVAL as sys_ioctl does.
...
otherwise, linux_syscall() returns garbage, at least on i386.
(it returns native_to_linux_errno[EPASSTHROUGH] where EPASSTHROUGH == -4.)
i choose EINVAL rather than ENOTTY, because linux's pipe returns it
and i think that it's a common case.
2004-06-03 01:53:28 +00:00
drochner
e7bdadd856
fix const'ificication, gcc-3.4 will notice it
2004-06-02 22:58:28 +00:00
martin
1cb74de1d2
From Peter Eisch: do not try to recover msgbuf on E450s, it fails just
...
like on E250s.
2004-06-02 20:23:35 +00:00