summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2013-06-03changes for isc fuse support. not enabled. ok beck deraadt.Ted Unangst
from Sylvestre Gallon ccna.syl gmail.com
2013-06-02Start working on hibernate support for LoongsonPaul Irofti
This is work in progress. Nothing to test or play with for now. Commiting it now so that I can work on it in-tree. Okay miod@
2013-06-02Revert previous: libsa/ufs.c was fixed to not use big types when notPhilip Guenther
necessary. If something crawls in again that needs these we want to know ok deraadt@
2013-06-02move octeonreg.h to a more generic location and add multiple inclusionJasper Lievisse Adriaanse
guards while here. ok uebayasi@
2013-06-02compile with -fno-builtin-exitJasper Lievisse Adriaanse
ok miod@ pirofti@
2013-06-02remove unneeded octeonreg.h includeJasper Lievisse Adriaanse
2013-06-02- remove double rcs idsJasper Lievisse Adriaanse
2013-06-02Fix a bug where the calibration loop could show wrong CPU frequencies.Gerhard Roth
In case the 'starttick' had a rather large value, the code could miss one or more cycles of the i8254 timer. ok tedu@
2013-06-02Hide members of __va_list in the implementation namespacePhilip Guenther
ok miod@
2013-06-02Fix descriptions of structuresPhilip Guenther
2013-06-02Add the TLS relocationsPhilip Guenther
2013-06-02Don't need gdt.h herePhilip Guenther
2013-06-02fix tpyoPhilip Guenther
2013-06-02To 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. discussed with many ok mpi@, tedu@
2013-06-01remove unused octeon prefetch macros which won't work due to the fact itJasper Lievisse Adriaanse
uses '.set arch=octeon' and as has only gotten support for that after the gplv3 switch. ok uebayasi@
2013-06-01Introduce a new amd64 IPI, x86_ipi_halt_realmode to park CPUS into realMike Larkin
mode and halt them. Needed for hibernate. ok deraadt@ kettenis@ "there's no risk there"
2013-06-01as discussed with uebayasi@ we should only use the "sync" instruction on octeon,Jasper Lievisse Adriaanse
instead of syncs/syncw etc. so remove the OCTEON_SYNC* macros and use mips_sync() directly. ok uebayasi@
2013-06-01Call x86_ipi_halt_realmode to park APs in real mode before unpacking imageMike Larkin
ok deraadt@
2013-06-01as discussed with uebayasi@ we should only use the "sync" instruction on octeon,Jasper Lievisse Adriaanse
instead of syncs/syncw etc. so remove the OCTEON_SYNC* macros and use mips_sync() directly. ok uebayasi@
2013-06-01unbreak tree (will take a shot at flash_activate later)Theo de Raadt
2013-06-01- whitespace cleanupJasper Lievisse Adriaanse
- add a comment explaining how OCTEON_MAXCPUS was derived
2013-06-01- remove more backward compat code and switch the callers over to the new ↵Jasper Lievisse Adriaanse
function ok uebayasi@
2013-06-01- remove an __mips_o32 block which'll never be used on openbsdJasper Lievisse Adriaanse
- remove some defines intended for backward compat, but that are unused now. ok uebayasi@
2013-06-01add missing license (PD) blockJasper Lievisse Adriaanse
ok guenther@
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
2013-06-01Fix offset error when clearing the resume time stack pagesMike Larkin
2013-06-01Add code to drop a CPU from long mode back to real mode, will be used toMike Larkin
park CPUs back to a known state in preparation for re-INIT/SIPIing them later in the hibernate resume cycle.
2013-06-01add GENERIC.MPJasper Lievisse Adriaanse
ok miod@ pirofti@
2013-06-01corectly initialize the number of cores/cpus on the board. this fixes a NULLJasper Lievisse Adriaanse
deref in cpuattach() since we advertised only a single CPU, but tried to attach two. with this diff bsd.mp boots up on the ERL. discussed with pirofti@ ok miod@ pirofti@
2013-06-01remove bogus XXX comment, 32 is just the way it is.Jasper Lievisse Adriaanse
2013-06-01Add vmx(4) to the kernel config, but comment it out for now.Reyk Floeter
ok deraadt@
2013-06-01make the way of doing debug printfs genericJasper Lievisse Adriaanse
2013-05-31Replace shutdownhooks with activate functions, properly doing thoseTheo de Raadt
operations only if device is console ok kettenis
2013-05-31We need to halt the APs on MP hibernate resume or else they will beMike Larkin
executing code possibly causing side effects during the image unpack operation. But before we can halt the APs, we need to complete their init (as they will be hatched but idling, possibly with interrupts off). Introduces MD function hibernate_quiesce_cpus to do this, called from the MI hibernate resume code. ok deraadt
2013-05-31Rename tpms(4), the driver for Apple USB touchpads, to utpms(4) and moveMartin Pieuchot
it to dev/usb because it could be used on intel based mac laptops. Discussed with jcs@, ok deraadt@
2013-05-31Change option -mcpu=armv5 to -march=armv6 and move it to Makefile.beagle.rapha
ok bmercer@
2013-05-31remove counters for simplelocksTed Unangst
2013-05-31Unbreak after recent shutdown-hook removal.Martin Pieuchot
2013-05-30Fix a bug in amd64 hibernate introduced when we moved the kernel to load atMike Larkin
16MB physical. Document the same in i386 (i386 was not affected, just commented for diffability)
2013-05-30Make interrupt handling in hibernate resume MI by providing MD-specificMike Larkin
functions to enable and disable interrupts, if needed. If a platform doesnt need interrupt handling in this way, the MD function can be a no-op. discussed with pirofti and deraadt
2013-05-30Even though we reserve 3 pages for the amd64 hibernate stack, we set theMike Larkin
resume time stack pointer to the first page reserved, effectively giving us only one page to work with. Found when I was debugging some unrelated stack issues in the resume code.
2013-05-30If ACPI is not compiled in, pci_min_powerstate() has no facts to supportTheo de Raadt
is should return D3. It should return the current power state. ok kettenis mlarkin
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-30fix typos in some commentsMike Larkin
2013-05-30Switch to using unhyphenated VIA padlock mnemonics. VIA abandoned theMatthew Dempsky
hyphen in their official programming guide sometime between 2003 and 2005, and Clang's integrated assembler does not support hyphenated mnemonics. ok jsg, deraadt
2013-05-29Add PMAP_PA_MASK to mips64. Needed for loongson hibernate.Paul Irofti
Okay miod@.
2013-05-29remove non-existing kernel configurationsJasper Lievisse Adriaanse
ok miod@
2013-05-27Use FLUSH_PIPELINE instead of rolling our own. No functional change.Miod Vallat
2013-05-27Drop lvalue casts; allows this to compile with gcc 4.Miod Vallat
2013-05-27Correctly specify the visible part of the rightmost tile when the currentMiod Vallat
resolution is not a multiple of the tile size, in emulation (text) mode. The usual 1280x1024 resolution ended up with the correct value, by chance, but a width of 1600 would be wrong. (X11 was running fine) Tested on the 1600x1024 resolution of the 1600SW display. Thanks to Johan Sanchez for lending me a 1600SW monitor and an adapter board.