summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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
2013-12-27oops, correct wordingTheo de Raadt
2013-12-27correct comment about why first 16 pages are skipped: SMI corruptionTheo de Raadt
is the real cause discussed with mlarkin
2013-12-26When running the ll/sc version of the mutex code (for MULTIPROCESSOR kernels),Miod Vallat
correctly handle sc failures. All other ll/sc constructs were doing this correctly but apparently noone had noticed mutex did not.
2013-12-26Back at t2k13, I wrote code to park APs in real mode before resuming aMike Larkin
hibernated image. We backed out the code because it was causing reboots on resume. Turns out the parking code had a bug that caused the CPU to jump to some bogus address (calculating a bad offset for the jump target), which was likely the source of the problem. This diff fixes the bad offset calculation (verified by looking at the resulting asm output). This will be the first step in attempting to resurrect the original idea (and eventually add i386 if/when it works). discussed with deraadt@
2013-12-25Instead of deciding which iockbc port is the keyboard port, and which one is theMiod Vallat
mouse port, depending upon the system time, match what the prom is doing and actually probe for a keyboard on both ports, and decide the first port with a keyboard is the keyboard port. If no keyboard is found, but a mouse is found, decide the keyboard port is the empty one. If no device is found, then we can try and pick the defaults, depending upon the system we are running on, as this used to be the case (i.e. coping with Fuel having keyboard on port 1 and mouse on port 0 when connecting devices according to the chassis' markings). This is necessary because different IO9 board revisions on Tezro come with different wirings, and we can not tell these boards apart. Discussed with "nullnilaki" (nullnilaki on gmail) who is the lucky owner of an Onyx 350 with correct wiring and a Tezro with inverted wiring. Tested on Octane and Fuel with all combinations of devices connected (mouse only, keyboard only, keyboard and mouse) in both ports, glass and serial console. XXX We probably want to allow for more pckbd attachment flexibility on non-x86 XXX platforms eventually (at least where the PS/2 slots are really independent, XXX so that we can attach pckbd to any port and better cope with human error XXX when connecting devices.
2013-12-25Add missing IPL_MPSAFE, as same as mvme88k.Kenji Aoyama
ok miod@
2013-12-24get rid of if (timeout_pending()) timeout_del(). this is racy. anyDavid Gwynne
conditionals you did on timeout_pending can now be done on timeout_del now that it returns what it did. ok and a very good fix from kettenis@
2013-12-23spellingTheo de Raadt
2013-12-23- fix gamma ramp (now white is real white instead of light grey)Miod Vallat
- speed-up the integer to single precision float routine by omitting the sign check and starting the log2 computation at 12 instead of 32, since all the values passed to this routine are actually on-screen coordinates.
2013-12-23Add an instruction barrier to bus_space_barrier(). From David Hill.Mark Kettenis
ok deraadt@
2013-12-22Only attach cpu0 on single-processor kernels, to match the expected behaviour.Miod Vallat
2013-12-22Compute ncpusfound correctly. The logic was there but the count variable wasMiod Vallat
kept MD.
2013-12-22MP-safe rw_cas() implementation for rwlocks.Miod Vallat
2013-12-22Set the primary CPU's PAL revision to the OSF/1 PAL revision after switchingMiod Vallat
to it, per the Green Book; from NetBSD. It turns out this is necessary on some (if not all) systems to properly spin up secondary processors. Bump version.
2013-12-22format string fix: %lx for register_tStefan Fritsch
2013-12-20Add vioscsi(4) driver.Matthew Dempsky
Still a work-in-progress, but functional enough to work with both Google Compute Engine and RHEVM. Committing so additional testing and cleanup can be handled in tree. thx Jiri B for RHEVM testing ok dlg, deraadt
2013-12-19oh sorry, I forgot two #ifdefTheo de Raadt
2013-12-19Mtrr stops being a pseudo-device. We need to probe the cpu type andTheo de Raadt
initialize the structures when we see the first cpu. We also need to initialize each cpu's properly (for PAT) before we setup mtrr on that cpu. On i386 (late hatch) we were getting this desperately wrong on the primary cpu. After suspend/resume, we also need to do the same work. re-initialize PAT before mtrr. On some laptops apparently PAT was not turned on by the BIOS, so we ended up with incorrect setup for the primary cpu. Oops. This makes mplayer on the x201 (and similar) machines work without weird pauses after a suspend/resume. Many other things are likely fixed. ok kettenis
2013-12-19Use shifts instead of integer multiplication by the page size in theMiod Vallat
Octeon-specific code paths. No functional change. ok bcallah@ pirofti@