summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-12-21Prevent writing to the kernel area via the direct map. We do this by paddingMike Larkin
the end of the kernel area to 2MB, so that the direct map pages can then have the W permission removed (X permission was already removed in a previous diff). This creates a VA hole at the end of bss, so adjust for that since that's where symbols get loaded by the bootloader (for now, map that region RO until the boot loader can be updated to place the symbols at "end" instead of "end of bss"). with help from and ok deraadt@
2014-12-19Use <sys/endian.h> instead of <machine/endian.h>Philip Guenther
ok dlg@ mpi@ bcook@ millert@ miod@
2014-12-19remove ipw. it wasn't included in generic, but nobody complained,Ted Unangst
indicating probably nobody has one of these in amd64 capable hardware. spotted by krw. ok kettenis krw
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gatherKenji Aoyama
'C-bus' device drivers in it. More devices on cbus(4) will be added, hopefully :-) ok miod@
2014-12-18use suspend_randomness() and resume_randomness()Theo de Raadt
2014-12-18perform cpu setperf at same position in sequence as acpi.cTheo de Raadt
2014-12-18suspend & resume RNG subsystemTheo de Raadt
2014-12-18If support is present, use rdrand() at resume time. Make the rdrand()Theo de Raadt
function easier to call. ok reyk djm
2014-12-18ansi function prototypes. no functional change.David Gwynne
2014-12-18white space tweaks, no functional change.David Gwynne
2014-12-18replace splhigh and a simplelock with a mutex.David Gwynne
slight tweak and testing by deraadt@ ok miod@
2014-12-18Unmap the MP hatch and ACPI resume trampolines when not in active use.Mike Larkin
ok deraadt@
2014-12-17minimal removal of simplelock to eliminate lock.h dependencyTed Unangst
2014-12-17fix/reduce header dependencies. clock.c doesn't need any of this uvm.Ted Unangst
ok deraadt kettenis
2014-12-17remove simplelocks (trivial)Theo de Raadt
2014-12-17delete simplelocksTheo de Raadt
2014-12-17remove simplelocksTheo de Raadt
ok tedu
2014-12-17pretty easy removal of simplelocksTheo de Raadt
ok miod (a while back)
2014-12-17remove simplelocksTheo de Raadt
ok kettenis
2014-12-17remove simplelocks useTheo de Raadt
ok kettenis mpi
2014-12-17Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterPhilip Guenther
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
2014-12-17delete archaic simplelock use.Theo de Raadt
ok miod
2014-12-16Temporarily expand the pci memory range to suit Dell 13G servers.Jonathan Matthew
They have devices outside the 36 bit range that their firmware needs to talk to, and they get constant acpi interrupts if it can't. We should get the necessary ranges via ACPI, but for now just make the allowed range bigger. ok kettenis@ deraadt@
2014-12-16don't include lock.h by default. poisons namespace. ok deraadtTed Unangst
2014-12-16Do not grab the kernel lock for clock interrupts, hardclock() will behaveMiod Vallat
correctly without. Modeled after sparc64 logic.
2014-12-16these headers do not need to (and should not) include lock.h poisoningTed Unangst
the namespace. ok deraadt
2014-12-16Define and print HV cpuid flag.Stefan Fritsch
This is set by many hypervisors, including kvm, vmware, hyper-v.
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
2014-12-15fully parenthesize the PMAP_DIRECT_* macrosPhilip Guenther
ok tedu@
2014-12-15move needed macros to pmap.c and delete stale ones. ok guentherTed Unangst
2014-12-15Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,Philip Guenther
eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
2014-12-15change bcopy to memcpy. ok deraadtTed Unangst
2014-12-14Disable MWAIT again, this time on both i386 and amd64. Too many systemsPhilip Guenther
run excessively hot with it to have it on by default, and I still don't have good logic to let acpicpu enable it when the AML says it's good.
2014-12-13An UVM_ADV_NORMAL -> MADV_NORMAL was missed herePhilip Guenther
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-13Create a MOP version of the network boot loader; verified to boot on DEC 3000.Miod Vallat
2014-12-13add a sxidog_activate() function so the kernel will link againJonathan Gray
after the changes made in rev 1.5
2014-12-12oops, i was not supposed to disable mwait. found by stspTed Unangst
2014-12-11dragonflybsd has added a urio driver. conservation of urios requiresTed Unangst
that we delete ours, which isn't actually useful. ok mpi sthen
2014-12-11Delete #ifdef'd code that hasn't been compiled in years from sparc64 ofwboot.Stefan Sperling
ok miod@
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-12-10Convert watchdog(4) devices to use autoconf(9) framework.Mike Belopuhov
ok deraadt, tests on glxpcib and ok mpi
2014-12-10enable skgpio(4)Jonathan Gray
2014-12-10Add skgpio(4) a driver for the Soekris net6501 GPIO and LEDsJonathan Gray
from Matt Dainty.
2014-12-09Check strlcpy(), strlcat(), and snprintf() return values in sparc64 ofwboot.Stefan Sperling
tweak and ok millert@ miod@
2014-12-09Replace some malloc(n*size,...) calls with mallocarray().Doug Hogan
ok tedu@ deraadt@
2014-12-08Add an intermediate layer driver, cbus(4), to manage its ownKenji Aoyama
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on LUNA-88K2. Existing pcex(4) is now attached at cbus(4), i.e. cbus0 at mainbus0 pcex0 at cbus0 With this driver, some other PC-9801 boards might be supported on luna88k in the (near?) future:-) ok miod@
2014-12-08Use tabs instead of spaces here.Brad Smith