summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-03-19Enable upd(4) on three archs to get it tested, requested by deraadt@.Martin Pieuchot
2014-03-19It's safe to assumed 'signed' existsPhilip Guenther
2014-03-18- Fix clipping bounds in fill and blt operations; the lower-right corner isMiod Vallat
supposed to be outside the clipping region, not inside (i.e. there was an off-by-one everywhere). - Add colormap support, by programming the RAMDAC palette registers at init time, and also implement the colormap ioctls.
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
2014-03-18To prevent lock ordering problems with the kernel lock, we need to make sureMark Kettenis
we block all interrupts that can grab the kernel lock. The simplest way to achieve this is to make sure mutexes always raise the ipl to the highest level that has interrupts that grab the kernel lock. This will allow us to have "mpsafe" interrupt handlers at lower priority levels. No change for non-MULTIPROCESSOR kernels. ok miod@
2014-03-18More a.out detritusPhilip Guenther
ok miod@
2014-03-18First setup that stops using isp(4), and relies on ql[aew](4).Theo de Raadt
Not due to testing... but because they can't fit side by side. ok kettenis
2014-03-18Initialize len, from netbsdRaphael Graf
ok syl@, bmercer@, jasper@
2014-03-18Add missing parts of the tiic driver.Sylvestre Gallon
inspired by rapha@ ok rapha@, jasper@
2014-03-17Add upd(4) to the tree, disabled. Please do not enable it yet.andre
At this moment upd(4) exposes data from usb-based uninterruptable power systems (or just USB Power Devices), sysctl(8) sensors (read snmpd(8) friendly), it is also an "in-base" alternative to other 3rdparty UPS-monitoring software, we have plans to bring more features. This is my first "something" into the tree. Lots of thanks: sthen@ and blambert@ are the ones to blame for the idea/challenge. mpi@ is the one whom pushed me to get it correct (from uhub -> uhidev). reyk@ mentored me on OpenBSD-way with previous iked/relayd experiences. ok mpi@, deraadt@ "get it in".
2014-03-16DDB supports ELF symbols are all archs, and it's always the same as thePhilip Guenther
native size, so eliminate the #defines. ok miod@
2014-03-16fix typo; unbreak buildMark Kettenis
2014-03-16Kill DB_*TASK_NAME* macros which were only ever on i386/amd64 and never used.Philip Guenther
2014-03-16Comment fixes: document the direct map and the kernel image, correctPhilip Guenther
the address of the alt L1 PTE, etc. Remove extern declaration of pdes, as it doesn't exist as a global.
2014-03-16Remove warnings on unknown x86 models in the code that returns the FSBJonathan Gray
speed and remove the no-op cases added to avoid the warning. We shouldn't normally hit the warning anyway, the bus speed is only used on older i386 machines with piixpcib/ichpcib based speedstep or to create a fake high/low table with newer style speedstep when we can't get the table from ACPI. ok kettenis@
2014-03-15Enable qlw(4) at sbus(4).Mark Kettenis
2014-03-15make the membars look more correct for any memory ordering mode.David Gwynne
ok kettenis@
2014-03-15Enable qla(4) and qle(4) to match the corresponding RAMDISKs.Miod Vallat
2014-03-14Remove the userland AGP interface. Now that we have KMS, it is no longerMark Kettenis
used by any of the remaining xenocara drivers. Except perhaps for the legacy i810 support in the xf86-video-intel driver. But i810 support has almost certainly been broken for more than a year now, and any remaining users are probably better off using the xf86-video-vesa driver ever since XAA support was removed from the X server. ok deraadt@, jsg@, mpi@
2014-03-14Revert previous; turns out to be necessary to build the 32-bit boot blocksMiod Vallat
on sgi.
2014-03-14provide an MI api for doing byteswapping loads and stores. someDavid Gwynne
archs have instrutions that can do this, and the rest that dont get to use wrappers around the byteswap(3) api. this provides MI backends for sparc64 and powerpc which get a big benefit from this because byteswapping in registers is really hard for them. the intended use case is for reading and writing bits of dma memory handed to and from hardware. discussed with miod@ guenther@ deraadt@ ok miod@ kettenis@
2014-03-14enable qla(4) and qle(4) in ramdisks, except on sgi where the cdfs overflowsJonathan Matthew
2014-03-14rework mplocks to use tickets instead of spinning. this providesDavid Gwynne
fairer access to the kernel lock between logical cpus, especially in multi socket systems. i first wrote this diff in 2011. ok n2k14 for post 5.5 (deraadt@ and kettenis@ in particular)
2014-03-14rework mplocks to use tickets instead of spinning. this providesDavid Gwynne
fairer access to the kernel lock between logical cpus, especially in multi socket systems. i first wrote this diff in 2011. it provided the model for the i386 and sparc64 ticket locks. ok n2k14 for post 5.5 (deraadt@ and kettenis@ in particular)
2014-03-14rework mplock as ticket locks instead of spinlocks. this providesDavid Gwynne
fairer access to the kernel lock (which suffers very heavy contention at the moment). i wrote this at n2k14 and reworked it shortly after to use the mi atomic ops api when that was agreed on. ive been running it on my systems ever since. the version before the atomic op tweaks was tested by kettenis@ n2k14 (deraadt@ and kettenis@ in particular if i recall correctly) oked this going in after 5.5
2014-03-13Unhook httpd(8) from build; man page bitsFlorian Obser
tweaks jmc@ OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@ "The time is right." and much help getting the show on the road deraadt@
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-03-13Drop the REPUN bit from CvmCtl register not to allow unaligned access.YASUOKA Masahiko
Also add new cn30xxcorereg.h to provide constant variables of octeon core.
2014-03-12Add compiler barier to bus_dmamap_sync(9), just in case compiler/linkerMark Kettenis
optimizations really become as evil as some people claim, or some poor soul tries to optimize things by inlining this function.
2014-03-12enable qla(4) and qle(4) in GENERIC configs where isp(4) is alreadyJonathan Matthew
2014-03-11Simpler RM7000 L2 cache initialization code (no longer matches what pmon2000Miod Vallat
did, but less awkward). Also make sure that the code changing the K0SEG CCA value has enough nops, before returning to cached space, to match the recommended procedure in the RM52xx and RM7000 erratas.
2014-03-11lint is gone, and the 'lint' conditional was never in the implementationPhilip Guenther
namespace, so stop changing behavior when it's #defined ok beck@ krw@
2014-03-11remove #if(n)def __LP64__ from the mips64 codebase, as mips32 never really ↵Jasper Lievisse Adriaanse
went anywhere. ok miod@
2014-03-11Synchronize the i386 and amd64 ddb disassemblers and add supportPhilip Guenther
for many newer instructions. With feedback from jsg@
2014-03-10Support BUS_DMA_NOCACHE in bus_dma(9). Memory allocations done withMiod Vallat
BUS_DMA_NOCACHE (or BUS_DMA_COHERENT if the platform does not have coherent caches) will use PMAP_NOCACHE when invoking pmap_enter(), to avoid creating cached mappings, and then evicting them from the cache.
2014-03-10Support PMAP_NOCACHE in pmap_enter() flags. If set when mapping a managedMiod Vallat
page, the pte is created uncached. Make sure pmap_enter_pv() honours the cache bits of the pte, instead of assuming it will only get called for cached pages. Have it set PV_UNCACHED in the pv flags for the page, if this is the first use of this page and the mapping is not cached. Only check for a virtual aliasing cache condition if the new mapping is cached.
2014-03-10n64 is the default, drop the o32/o64 register assignment conditionals.Miod Vallat
2014-03-10- fix the mediastatus when the interface is not configured.Jasper Lievisse Adriaanse
- remove unneeded comment, kern.netlivelock doesn't get set here. - rework octeon_eth_mediainit() to be more like other drivers and remove a bunch of XXXs in the process. testing and ok yasuoka@
2014-03-10acpi_saved_rsp was defined twice. The asm resume code was using the firstMike Larkin
definition and the C part of the resume code was using the second. This manifested itself as mysterious reboot and stack corruption problems on resume. ok deraadt@
2014-03-09Rework the per-cpu cache information. Use a common struct to store the lineMiod Vallat
size, the number of sets, and the total size (and the set size, for convenience) per cache (I$, D$, L2, L3). This allows cpu.c to print the number of ways (sets) of L2 and L3 caches from the cache information, rather than hardcoding this from the processor type.
2014-03-09Replace more magic numbers with OPENGL_xxx constants. No functional change.Miod Vallat
2014-03-08No reason to leave hppa behind.Mark Kettenis
2014-03-08Enable qlw(4) on alpha/amd64/i386/macppc/sgi/sparc64 to force people to test.Mark Kettenis
2014-03-07We already assume global mappings (PG_G) are supported, so pmap_pg_g isPhilip Guenther
unnecessary ok krw@ kettenis@
2014-03-07Remove superfluous 'return'.Gerhard Roth
ok deraadt@
2014-03-05Remove TIMEZONE and DST options from GENERIC-* kernels.Miod Vallat
Remove APERTURE, DDB_SAFE_CONSOLE and *_DEBUG from RAMDISK-* kernels. Add option USBVERBOSE to all kernels.
2014-02-25/etc/random.seed support (unless booting from tape). Crank version.Miod Vallat
2014-02-25Put edata after the .openbsd.randomdata phdr, to prevent the former's contentsMiod Vallat
from being bzeroed when locore bzeros what it thinks is the bss.
2014-02-24/etc/random.seed support in da bootblockz.Miod Vallat
2014-02-23Try and load /etc/random.seed before attempting to load the kernel.Miod Vallat
Bump version.