summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2014-01-18if the controller is too busy to do a POLLed command, return XS_BUSYDavid Gwynne
instead of XS_NO_CCB. ok krw@
2014-01-16Appease LLVM's integrated assembler. Matches the same code as it existsBrad Smith
for i386. error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', 'cmpl', or 'cmpq') ok mlarkin@
2014-01-15Add WSDISPLAYIO_SETGFXMODE ioctl on LUNA's frame buffer.Kenji Aoyama
This ioctl changes `pseudo' frame buffer depth, in order to use color wscons and monochrome X server both. Also need to some luna88k-specific initialization in xenocara/driver/xf86-video-wsfb/src/wsfb_driver.c.
2014-01-15Enable by default the DS1337 TOD clock.Paul Irofti
2014-01-15Add support for the DS1337 TOD clocks found on some of the octeon models.Paul Irofti
This is a very low resolution clock (1 second) that some models seem to be blessed with. Found at least on CAM-100 and DSR-500 models. It seems the EdgeRouter doesn't have support for this. Tested by jmatthew@ and bcallah@. Okay miod@, bcallah@
2014-01-12crank to 5.5betaTheo de Raadt
2014-01-10Resurrect the "park APs in realmode" idea that we explored back at t2k13Mike Larkin
(and which didn't work at that time due to a bug which has since been fixed). The APs are now demoted to real mode and placed in a HLT loop while the hibernated image is being unpacked. Helps my x230 significantly, no more spurious reboots on resume. ok deraadt
2014-01-08Be sure to have pmap_extract() return FALSE for existing, but non-valid userMiod Vallat
pmap ptes. Found the hard way by tobiasu@.
2014-01-06document random buffer must be multiple of 4 in sizeTheo de Raadt
2014-01-06Disable the code disabling memory beyond 1.5GB on Octane temporarily, butMiod Vallat
hopefully for good; I believe the kernel panics with large memory fast MP systems have been fixed in mutex.c 1.13
2014-01-06Use the dedicated BCD macros from sys/time.h instead of handrollingPaul Irofti
our own for the m41t8x clocks. Tested by me and jasper@. Okay jasper@, guenther@, deraadt@
2014-01-06typoMiod Vallat
2014-01-06Fix sparc64 kernel profiling, add the etext symbol back.Tobias Ulmer
ok miod@
2014-01-06In readsgilabel(), do not override the driver-provided initial geometry withMiod Vallat
the volume header geometry, if one is found. The driver knows better. This will allow a 2048-byte sector media to use a volume header using fake 512-byte sectors, and still be able to read the native label off it.
2014-01-06Put PG_EXEC and PG_FOE into the PG_PROT mask, and make sure the defaultMiod Vallat
pte protection masks, as initialized in alpha_protection_init(), set PG_FOE by default when VM_PROT_EXECUTE is not set. Also, change pmap_emulate_reference() to only clear PG_FOE if the affected pte has executable permission. This allows various pmap_pte_exec() checks (added to explicitely set PG_FOE) to be removed. All tests of regress/sys/kern/noexec now reliably pass on EV5. EV6 systems still see spurious (but no longer 100% reproduceable) failures of the `catch a signal' tests, which is likely caused by the effect of mprotect() removing execute permission not taking effect correctly, despite PAL IMB being issued (and no, this is not caused by the previous pmap_changebit() change), to be investigated.
2014-01-06Remove I-sync stuff from pmap_changebit(). The AARM says that weMiod Vallat
only have to sync the I-stream when the mapping is removed or changed, and since the I-stream is fetch-only, changing protection bits does not constitute changing the mapping (the VA->PA translation is still the same). From NetBSD
2014-01-06Program window #2 to allow the second GB of low memory to use direct DMA;Miod Vallat
adapted from a long gone FreeBSD.
2014-01-06Make macppc/socppc boot() code path more similar to others.Masao Uebayashi
This changes calling boot() during (cold != 0) to not call if_downall() and uvm_shutdown(). Both of which must not be specific to PowerPC. OK mpi@
2014-01-06Increase NPTECL, as cache-lines are 64-bytes nowadays.Stefan Fritsch
Also move it from pmap.h to pmap.c because it is an internal detail.
2014-01-05HIBERNATE_SELTABLE is not used anymore. Remove, and reclaim its stolenMike Larkin
page.
2014-01-05Don't use the first 64KB for anything, including tramps. Move tramps andMike Larkin
hibernate goo up after 64KB to avoid posible corruption by buggy BIOS SMM code. Diff also ensures the first 64KB doesn't get handed to UVM either. ok deraadt@, tested by many with no regressions reported
2014-01-05Cleanup some leftovers from previous changes.Miod Vallat
2014-01-04Fix of_cmap[] size. Makes the textmode cursor reappear on vgafb (i.e.Miod Vallat
non-radeon) systems.
2014-01-04Add rnddata[] placeholders to make these boot blocks build again.Miod Vallat
2014-01-03KNF, update comments, and delete LUNA(m68k) specific DIPSW comments.Kenji Aoyama
No functional change.
2014-01-02crank version after random instruction fix from jsingTheo de Raadt
2014-01-02Add primary support for LUNA-88K 4bpp/8bpp frame buffer.Kenji Aoyama
This brings color support on LUNA's wscons. And, with the help of recent development version of 'mlterm-fb' (frame buffer version of ports/x11/mlterm), graphic images can be displayed in 16/256 colors on the screen. Thanks to arakiken, the original developer of mlterm! This diff is based on NetBSD/luna68k work: http://mail-index.netbsd.org/source-changes/2013/12/28/msg050266.html Need more work to coexist with the monochrome X.Org server. "go ahead!" miod@
2014-01-02Simplify things slightly by using four byte indexing.Joel Sing
2014-01-02Ensure that we preserve callee-save registers.Joel Sing
2014-01-01Switch alpha to __HAVE_VM_PAGE_MD. From NetBSD.Miod Vallat
2014-01-01fix header to get symbols loaded correctlyMiod Vallat
2014-01-01Add a linker script to force the .openbsd.randomdata section to be put afterMiod Vallat
.data, so that it will not get mapped read-only by pmap_bootstrap().
2013-12-30Correct initialization of Bt458, used in LUNA's 8bpp frame buffer.Kenji Aoyama
According to the manual, the address register does not automatically increment when we access to the control registers. Also we disable overlay planes, because we do not use them. This diff should be one of preliminaries for upcoming colored wscons on luna88k. ok miod@
2013-12-30Fix IOC4DEV_xxx numbers, so that devices besides the first two serial portsMiod Vallat
actually handle their own interrupts. How could this get unnoticed so far?
2013-12-29In tlbdsmiss, do not trash the tlb pointer by mistake. From NetBSD (PR #39257)Miod Vallat
2013-12-29Remove excessive parentheses.Brad Smith
pmap.c:1061:13: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality] ok mpi@
2013-12-29Force clock clamping after one byte received instead of three. There are stillMiod Vallat
circumstances where the pckbc code gets confused otherwise, on *some* controllers.
2013-12-28The mips partition table in the volume header uses 512-byte logical units,Miod Vallat
not sectors; don't multiply by the sector size to get the proper disk offsets. This will let install.iso be built with the OpenBSD label at the expected location, instead of within the ffs filesystem; we had been lucky enough the area being overwritten was not in use so far.
2013-12-28Try to load entropy data from disk:/etc/random.seed. Then, insert this intoMark Kettenis
the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start.
2013-12-28Make sure the PT_OPENBSD_RANDOMIZE program header actually covers the dataMark Kettenis
we want to initialize with randomness. It covered exactly nothing before!
2013-12-28Back out the previous commit; rodata gets merged with text by the linker.Mark Kettenis
Having a seperate rodata segment won't work anyway without significant pmap changes.
2013-12-28create rodata PHDR; ok kettenisTheo de Raadt
2013-12-28Require an explicit PT_OPENBSD_RANDOMIZE program header in the kernel linkerMiod Vallat
script (note that the amd64 linker script is currently not used). Discussed with deraadt@
2013-12-28Further clean up and unification of the amd64 and i386 boot(8) makefiles.Joel Sing
2013-12-28crank the versionTheo de Raadt
2013-12-28Try to load entropy data from disk:/etc/random.seed, and additionallyTheo de Raadt
use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler
2013-12-28If we fail to decrypt the softraid keys, return EPERM rather than fallingJoel Sing
through and failing when we attempt to read and validate the disklabel. Also return ENOTSUP rather than EPERM if an attempt is made to write to a softraid volume.
2013-12-28Use preprocessor symbols where possible.Theo de Raadt
2013-12-28Add initial implementations of early MD random, for use in the boot code.Joel Sing
This makes use of rdrand if the CPU supports it, otherwise we fall back to using rdtsc. Further development will happen in the tree. Tested by phessler@ ok deraadt@
2013-12-27remove lots from the Makefile, since this never depended on libsa.Theo de Raadt