is
dc7d5edb51
fix fatal typo
2003-04-18 09:23:17 +00:00
is
4549723d92
iszthreepa() takes a physical address, not a virtual address.
...
This fixes PR 19175, reported and heavily debugged by Pawel Chwalowski.
2003-04-18 09:18:19 +00:00
scw
c6c94cfec3
Make sure _bus_dmamap_load_mbuf() converts cpu-relative addresses
...
to bus-relative addresses.
Spotted by John Gordon, on port-powerpc@.
2003-04-18 09:16:05 +00:00
explorer
2248468d68
add my 80 GB SATA drive to the quirk table.
2003-04-18 04:32:19 +00:00
thorpej
5a20f4be3c
* Add a generic power management event API, defined in <sys/power.h>.
...
Right now, only power switch state change events are supported. This
is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.
This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
2003-04-18 01:31:34 +00:00
simonb
3a00c85d38
Add a KASSERT to make sure that "sizeof(struct mbuf)" is MSIZE.
...
Extra insurance for Steve Woodford's recent <sys/mbuf.h> patch.
2003-04-18 01:24:20 +00:00
mason
d1b448c6e5
From current-users:
...
On Thu, Apr 17, 2003 at 11:26:26AM -0500, Dave Huang wrote:
> Typo police here :) "whose," not "who's."
2003-04-18 00:35:14 +00:00
thorpej
091e93c002
Bump ramdisk size to 4600 blocks.
2003-04-17 22:57:16 +00:00
salo
f35804411a
depreceated->deprecated
2003-04-17 22:55:29 +00:00
matt
062bcd3204
acpi.c needs sysmon_power too.
2003-04-17 20:56:29 +00:00
jdolecek
f331bb3205
do not show nodes corresponding to directory descriptors for process
...
in fd/ subdirectory, nor allow lookup/open for the nodes
this fixes PR kern/21187 for good, and also avoids interesting directory
locking issues
2003-04-17 20:50:46 +00:00
jdolecek
884bdfdbaf
procfs_readdir(): in Pfd case, only show descriptors of types we want
...
how to represent (vnodes, fifo, pipes); also use fd_getfile() et al
this avoids annoying EOPNOTSUPP error messages from ls -F and such
2003-04-17 20:33:17 +00:00
jdolecek
be4c900d41
procfs_lookup(): use fd_getfile() et al in Pfd case
2003-04-17 20:19:18 +00:00
fvdl
1279513402
Need PAGE_SIZE definition for mptramp.S
2003-04-17 20:00:03 +00:00
thorpej
ee5b1a7c61
Protect the definition of offsetof().
2003-04-17 19:58:57 +00:00
jdolecek
ed9a5a7448
use fd_getfile() in procfs_getfp(), and FILE_USE()/FILE_UNUSE() the
...
returned file descriptor pointer appropriately
2003-04-17 19:04:25 +00:00
fvdl
5b38542fe2
Bump MSIZE to 512.
2003-04-17 18:20:17 +00:00
jdolecek
b5bca36101
g/c, it's outdated and the info wouldn't belong here anyway
2003-04-17 18:14:57 +00:00
jdolecek
64b598bf33
make some local arrays/variables static + const
2003-04-17 18:08:28 +00:00
tron
2dcd4d2952
Clear hardware checksum flags before reusing a mbuf for an ICMP reply as
...
suggested by Enami Tsugutomo. This fixes PR kern/21203 by myself.
2003-04-17 16:57:49 +00:00
jdolecek
9d23bccfba
add quirk for Avance Logic USB Audio
...
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:43:44 +00:00
jdolecek
8d4a0cf374
regen:
...
fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:48 +00:00
jdolecek
e566bf6b6e
fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
...
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:00 +00:00
jdolecek
5e0c8413f3
uaudio_match_alt_sub(): fix the rate check in UA_SAMP_CONTNUOUS case
...
to match if UA_SAMP_LO() == UA_SAMP_HI() == rate
problem reported and fix provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:38:02 +00:00
scw
d97029d2df
Fix a problem first reported by Simon Burge when paddr_t is 64-bits on an
...
ILP32 platform.
What happens is that the compiler inserts padding in struct mbuf between the
MH_pkthdr and MH_dat members, due to the paddr_t in struct _m_ext.
Unfortunately, the old MLEN/MHLEN macroes fail to take into account this
padding and, thus, wind up making sizeof(struct mbuf) > MSIZE. This causes
mbuf corruption, which eventually leads to all sorts of bogosity on ILP32
platforms with a 64-bit paddr_t.
Thanks to simonb@ and fvdl@ for helping to track down this bug.
2003-04-17 16:15:36 +00:00
fvdl
f41a4264a0
Remove some items to save space.
2003-04-17 14:45:33 +00:00
fvdl
41aa5664b5
Add mpt.
2003-04-17 13:32:28 +00:00
fvdl
2807f6e56a
A bit of an ugly workaround to avoid a warning for a larger MSIZE.
...
Shouldn't make a difference in the generated code.
2003-04-17 13:12:39 +00:00
nakayama
72911290d9
Comment fixes from OpenBSD.
2003-04-17 12:58:18 +00:00
fvdl
00abb49877
if 0 out some redundant asserts.
2003-04-17 12:52:21 +00:00
fvdl
097bf36e7f
Fix size_t printf formats in DIAGNOSTIC case.
2003-04-17 12:34:25 +00:00
fvdl
cf3fb808d7
Fix DIAGNOSTIC link error (switch_error label).
2003-04-17 12:33:49 +00:00
wiz
ad311c1708
Replace arm32 with arm ports that include the driver name in their GENERIC
...
(or any other kernel config, if no GENERIC exists).
Sort.
2003-04-17 11:55:08 +00:00
wiz
d75ae2c6f5
no iic, thus no rtc@iic, thus no todclock@rtc.
2003-04-17 11:45:13 +00:00
fvdl
0a98e2c329
Correct the previous commit, getmcontext has no local 'gr' variable like i386.
2003-04-17 09:36:47 +00:00
fvdl
0545901d27
configdirs was changed to an array of u_int8_t, so don't compare values
...
to 65535.
2003-04-17 09:32:43 +00:00
thorpej
b7394dfe47
Adapt to the sysmon_pswitch interface.
2003-04-17 01:34:14 +00:00
thorpej
ea45f2ccc1
Oops, remove a debugging define.
2003-04-17 01:26:41 +00:00
thorpej
59ea64b6f0
* Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
...
the kernel config file. That code makes a total mess of any
system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
and let it take the appropriate action. This lets us gracefully
shut down when the power button is pressed.
2003-04-17 01:22:21 +00:00
thorpej
b0f79c65ce
Start at a power management framework for sysmon. Right now we just
...
provide some VERY basic support for power/sleep buttons and lid switches;
if someone presses the power button, shut down the system semi-gracefully.
Eventually, we will send events for all types of button/lid events down
to a userland power management daemon, which will be able to define a
separate policy for each button/switch.
2003-04-17 01:02:21 +00:00
nathanw
2362be75a3
cpu_getmcontext: Test for the the presence of FP state in a LWP by
...
looking for MDP_FPUSED in l->l_md.md_flags, instead of
l->l_addr->u_pcb.pcb_fpcpu being non-NULL. The latter indicates that
FP state is live in the FPU *now*, but doesn't indicate whether there
is any state saved in the PCB.
2003-04-17 00:15:19 +00:00
thorpej
9cac2cc6d1
Add mpt(4).
2003-04-16 23:39:02 +00:00
thorpej
e56e76188e
Fix a typo.
2003-04-16 23:36:22 +00:00
thorpej
f2e804cd79
Add mpt(4).
2003-04-16 23:34:30 +00:00
petrov
62ba316156
rasops32_putchar: don't paint character out of font limits.
2003-04-16 23:28:41 +00:00
thorpej
6f2e904450
Use the standard fixed-sized types on NetBSD.
2003-04-16 23:24:01 +00:00
thorpej
6c29c1f6fb
In the polling case, don't call mpt_timeout() twice.
2003-04-16 23:17:30 +00:00
thorpej
98f531d377
mpt_dma_mem_alloc(): If we fail, only destroy request DMA maps that
...
were actually created.
2003-04-16 23:16:41 +00:00
thorpej
81a8dadfcf
Correctly sync the MPT request buffers, and remove BUS_DMA_COHERENT
...
from the mapping of those buffers.
2003-04-16 23:02:14 +00:00
dsl
60c3e62a42
Add files for 2nd stage boot loader
2003-04-16 22:36:14 +00:00