summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-07-03ANSI-fy, de-register as was done in lib/gen/nlist.c years ago. Reduces delta toKenneth R Westerback
make differences obvious.
2011-07-03Add more useful $OpenBSD$ tag.Kenneth R Westerback
2011-07-03Add missing $OpenBSD $ tag.Kenneth R Westerback
2011-07-03Change name of pointer to partition from pl to pp, as is used everywhere ↵Kenneth R Westerback
else, No functional change.
2011-07-03Rip out and burn support for UVM_HIST.Owain Ainsworth
The vm hackers don't use it, don't maintain it and have to look at it all the time. About time this 800 lines of code hit /dev/null. ``never liked it'' tedu@. ariane@ was very happy when i told her i wrote this diff.
2011-07-03Do as all other direct archs do and map contig memory through the directOwain Ainsworth
map in bus_dmamem_map(). ok miod@
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-07-02Per recommandation in the the sparc docs, use unlocked reads whenPhilip Guenthe
spinning on a contended lock. ok kettenis@
2011-06-30ansi, no binary changeJonathan Gray
2011-06-29Replace all instances of "scsibus* at hba?" with a single "scsibus* atMatthew Dempsky
scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.
2011-06-29dmesg@ says pss has never been seen in the wild and the manpage says itTed Unangst
doesn't work. goodbye. ok miod
2011-06-29stop printing in apm, acpi doesn't do this. remove APM_NOPRINT option.Ted Unangst
kind of ok deraadt
2011-06-28Remove the ega driver which is not referenced by any GENERIC kernel.Matthieu Herrb
ok tedu@, "I won't mourn it" miod@, "no objection" oga@, "I won't cry" todd@, "fine, even happy" nick@
2011-06-27If an shared interrupt handler returns -1, continue running other handlers.Theo de Raadt
If it returns 1, skip calling the handlers further down the list. The interrupt pin will remain asserted, and the handler will be called on the next go-around. This makes sparc64 "similar" to other architectures. ok kettenis jsing
2011-06-27When adding interrupt handlers to a chain, install them in priority order.Joel Sing
This results in the higher IPL handlers being run first. ok deraadt@ kettenis@
2011-06-27repair after last commitTheo de Raadt
2011-06-27remove compat_vax1k. no more 4.3bsd reno support. ok deraadtTed Unangst
2011-06-27Ensure we don't re-issue a failed buf without clearing B_ERROR andKenneth R Westerback
b_error. Otherwise a good i/o will appear to have failed. Fixes problem with dkcsum.c being unable to read data to checksum from subsequent devices after an i/o fails. And thus failing to find correct root in some cases. Introduced at k2k11 with buf flags rectification. Scan of all biowait() calls finds no other obvious re-use of a buf that could have error'ed out. Just re-use of bufs that worked. So quick fix pending closer review of all uses. Problem noted by Jens A. Griepen. ok matthew@ deraadt@
2011-06-26kill mcd dead. ok krw matthew millert thibTed Unangst
2011-06-26if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()Theo de Raadt
might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
2011-06-26First stab at MSI support for vpci(4). Still a few rough edges, but seemsMark Kettenis
to work fine on a t1k and a t5120, so let's enable this right from the start.
2011-06-261.500 was a good revision, let's stay there a little longer. (revert ↵Ted Unangst
accidental commit)
2011-06-26remove remnants of scd device, discovered by Frederic PerrinTed Unangst
2011-06-26In the shared interrupt handler, return the pil and ci_handled_intr_levelTheo de Raadt
to the level they were at before we started splraise'ing for the various handlers. with jsing, ok kettenis
2011-06-26Fix some inconsistencies in how we build 64-bit addresses from OF properties.Mark Kettenis
2011-06-26Implement pci_intr_map_msi().Mark Kettenis
2011-06-26Missed a parameter in the pci_msi_setmsiq hypervisor call.Mark Kettenis
2011-06-25Add MSI hypervisor calls.Mark Kettenis
2011-06-25Don't forget to print a newline at attach time.Miod Vallat
2011-06-25Remove irrelevant comments borrowed from loongson.Miod Vallat
2011-06-25ansi, no binary changeJonathan Gray
2011-06-24machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andChristian Weisgerber
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@
2011-06-24We should only ack a shared interrupt once, after we've run all the handlers.Mark Kettenis
So let the intr_list_handler do this, and prevent the real handlers from doing it as well. tested by deraadt@
2011-06-24When reading the value from a simple lock, we do not need to ldcws into aJoel Sing
__cpu_simple_lock_t - gcc most likely ignores the alignment for a stack variable anyway. Also remove unnecessary initialisation. ok kettenis@ miod@
2011-06-24Should always include ukphy(4) in the kernel configs if using any devicesYASUOKA Masahiko
using MII. This diff from brad@ Build test and ok yasuoka@
2011-06-24Remove SET/CLR/ISSET macros from Octeon code. The kernel already providesYASUOKA Masahiko
these macros. This diff from brad@ built test and ok yasuoka@
2011-06-23Fix the error path in bus_dmamem_map.Ariane van der Steldt
As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
2011-06-22some fixes for cnmac(4)YASUOKA Masahiko
- 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@.
2011-06-22enable myx(4), now that it worksTheo de Raadt
2011-06-20enable myx(4)David Gwynne
certainly deraadt@
2011-06-20enable myx(4).David Gwynne
requested by deraadt@
2011-06-19UnbreakMiod Vallat
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotTheo de Raadt
be interrupted. ok matthew
2011-06-19Use disk_lock/disk_unlock directly and in the same way in these drivers,Theo de Raadt
rather than using various wrappings. Convert vnd to using the sc_dk rwlock instead of using one of its own. ok matthew
2011-06-19Clean up ioctl handler a bit and rearrange the receive filter callback toYASUOKA Masahiko
the proper location. this diff from brad@ ok and tested by yasuoka@
2011-06-18Cleanup MSI code a bit by moving the code to eanble/disable MSIs intoMark Kettenis
separate functions and install them as route/unroute functions for the MIS pseudo-PIC.
2011-06-17M_WAITOK cleanup of two cases:Michael Knudsen
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
2011-06-17add missing the copyright notice.YASUOKA Masahiko
delete garbage lines. ok syuu@
2011-06-16Enable acpitoshiba by default in GENERIC.Paul Irofti
Prodded by deraadt@ and the lack of testers on tech@.