Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
so that signedness of the input is suppressed.
ok matthew miod kettenis guenther
|
|
i386. Stop abusing it on other archs for controling a shutdown by
pressing the soft power button:
* Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it
allows a power button shutdown.
* Make acpi(4)/acpibtn(4) honor hw.allowpowerdown.
* Switch the various power button intercepts on landisk, sgi, sparc64
and zaurus over to hw.allowpowerdown.
* Garbage collect the machdep.kbdreset sysctl on all archs other than
amd64 and i386.
ok miod@
|
|
So let the intr_list_handler do this, and prevent the real handlers from doing
it as well.
tested by deraadt@
|
|
__cpu_simple_lock_t - gcc most likely ignores the alignment for a stack
variable anyway. Also remove unnecessary initialisation.
ok kettenis@ miod@
|
|
ok marco@
|
|
using MII.
This diff from brad@
Build test and ok yasuoka@
|
|
these macros.
This diff from brad@
built test and ok yasuoka@
|
|
This one wanted some more comments before commit.
|
|
|
|
If one of the usb calls we did here failed we'd return immediately and
not free our buffer.
ok miod@
|
|
all nowait.
While here, plug a memory leak if one of the bus_dma calls near the
bottom of the function fails because it would fail to free the dmamap,
unmap the memory and free the memory. make that part of the code use the
standard list of goto labels for error handling that most callers of
bus_dmamem_alloc; bus_dmamem_map; bus_dmamap_creat; bus_dmamap_load()
use to clean up.
ok miod@
|
|
The addition of M_CANFAIL here made it possible (if rather unlikely)
that we'd fail and goto done, where we would free(NULL).
protect the free with a null check to prevent this.
ok miod@
|
|
This is no function change since aobjs never actually hit this path. (also it is
my bug from a while ago).
ok ariane@
|
|
It will handle an empty list just fine (there's a small optimisation
possible here to avoid grabbing the fpageqlock if no pages need freeing,
but that is definitely another diff)
ok ariane@
|
|
ok ariane@
|
|
college uvm_pglist.c
uvm_pglistalloc and free are just thin wrappers around pmemrange these
days and don't really need their own file.
ok ariane@
|
|
Requested by dlg@
ok oga@
|
|
As discussed on icb: remove the comment,
remove pmap_remove (uvm_km_free does that for us).
ok oga@, deraadt@
|
|
the pflog code and not setting it will cause a panic in pf_setup_pdesc().
Fixes dhill's crashes with funky v6 packets. OK bluhm@
|
|
scsibus(4) for all attached disks, rather than one scsibus(4) per
disk. This takes advantage of recent improvements in the SCSI
midlayer to better support hotplug devices, and also decouples
softraid(4) from scsibus(4) device unit numbers.
ok jsing@, dlg@, krw@, deraadt@; marco@'s still unconvinced
|
|
|
|
better follow current disk driver conventions.
Prompted by oga@.
"go ahead" deraadt@
|
|
|
|
|
|
gets some packets onto the rings.
also annoying, but the hardware doesnt report empty rings, we have to
handle it ourselves.
|
|
state unless the chip is up and handling packets. while its down
it does not report the link state, so it is unknown.
this tweaks the link state handling, in particular it adds code to
myx_down so it moves the link state to unknown, ie, it correctly
reflects reality.
stupidity pointed out by deraadt
|
|
by a previous use
ok claudio
|
|
|
|
ata_get_parms or wdc_ata_get_parms.
|
|
ok kettenis@
|
|
ok dlg@
|
|
|
|
|
|
- Fix MAC address printing for OpenBSD dmesg.
- Set IFCAP_VLAN_MTU to allow for VLAN sized frames.
- Remove commented out code to enable the shutdown hook since OpenBSD
doesn't use these hooks in Ethernet drivers anymore.
this diff from brad@
ok and tested by yasuoka@.
|
|
|
|
|
|
it now works on sparc64, too
ok dlg
|
|
1. we want to write raw values to registers all the time, so promote the
myx_raw{read,write} to myx_{read,write} and use them everywhere. get rid
of the raw funcs.
2. i was setting the watermarks on the rx ring before knowhing how big
they were.
3. rxfill in the interrupt handler could lose data if you loop on
sts_isvalid.
almost working now...
"please commit your diff" deraadt@
|
|
the traced process when the syscall is attempted. This is more useful and
safer for unsupervised sandboxing than returning EPERM (which is the
behaviour of SYSTR_POLICY_NEVER), as this could cause dangerous misbehaviour
in applications that don't expect it.
"I like it" deraadt@ markus@
|
|
ok beck@
|
|
remove two of the remaining three uses of it. (softraid(4) still uses
it at the moment, so the field and its assignment in scsibusattach()
stay for now...)
ok krw@; feedback and "tenteiramen rejid"(!?) miod@
|
|
back to the unaligned firmware. apparently this is only an issue
on the "A" controllers which have been supersceded, but those are
the chips we (openbsd devs) have.
|
|
1. Change adapter_softc to point to a per-channel intermediary
object instead of pointing to the dpt_softc directly. This
removes dpt(4) dependency on scsibus unit numbers.
2. Fix dpt(4) to use a struct scsibus_attach_args instead of a
struct scsi_link for attaching the scsibus. (Evidently no one
has tried using dpt(4) since Nov 2006...)
ok krw@, miod@
|
|
|
|
|