summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2013-10-29unbreak glxsb(4) by properly allocating it's key schedule;Mike Belopuhov
reduce pctr.h usage while here. ok jsing, deraadt
2013-10-28Document softraid boot process for i386/amd64.Stefan Sperling
Requested by Adam Thompson. suggestions and ok deraadt, earlier version ok jmc
2013-10-28tedu FDDI support and the 3 flavors the driver for DEC devices, evenMartin Pieuchot
miod@ cannot find two boards using the same media. With precious punctuation review from guenther@, thanks! ok deraadt@, henning@
2013-10-26Remove unused variable.Mark Kettenis
From Sebastien Marie.
2013-10-25some cleanup for "machine memory";Jason McIntyre
2013-10-23Crank bootblock versions after last commitMike Larkin
2013-10-23Allow uppercase "K/M/G" specification in "machine memory" boot command.Mike Larkin
ok guenther, dlg, deraadt
2013-10-21enable support for VMware ParaVirtual SCSI via vmwpvs(4).David Gwynne
ok deraadt@
2013-10-20Realmode park is causing more problems than it's solving. Remove until weMike Larkin
have a better handle on it. Add an assert in i386 MP hibernate quiesce cpu function to ensure we are running on the BSP
2013-10-20Add i386/amd64 boot(8) support for keydisk-based softraid crypto volumes.Stefan Sperling
So far, only passphrase-based crypto volumes were bootable. Full disk encryption with keydisks required a non-crypto partition to load the kernel. The bootloader now scans all BIOS-visible disks for RAID partitions and automatically associates keydisk partitions with their crypto volume. Attempting to boot from a volume without its keydisk currently results in a passphrase prompt (this might be changed in the future). There is no need to re-create existing volumes. Moving the root partition onto the crypto disk and running installboot(8) is all that's needed. help & ok jsing
2013-10-20Simplify definition of the side-effect-free wd io routine.Theo de Raadt
2013-10-20SMEP (on Ivy Bridge and later CPUs) require page protections that includeMike Larkin
at least one supervisor mode (U/S bit = 0) setting in higher level paging structures. This diff removes PG_u flags from the hibernate resume time pmap (there was really no reason we needed it), to allow hibernate to work on Ivy Bridge and later CPUs. ok deraadt
2013-10-19Use daddr_t * instead of int * for the partoffp parameter toKenneth R Westerback
readdoslabel(). Ditto all the MD variables whose addresses are passed to readdoslabel() via partoffp. Fix some 512-byte block vs disk sector confusion in hppa and sgi. All the DL_GETxxxxx() defines return disk sector values. All DL_SETxxxx() take disk sector values. These changes should be no-ops until a drive using non-512-byte-sectors is encountered. ok deraadt@
2013-10-18Comment out cd* at scsibus? from installation media which lack CD9660 support.Miod Vallat
2013-10-18Disable global page mappings before we start to unpack. This was likelyMike Larkin
one cause of the random gzip errors and reboots we've been seeing with hibernate as we were creating new mappings for kernel text which likely conflicted with the non-flushed global mappings from the resuming kernel. Also remove an unnecessary wbinvd (i386) ok deraadt
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
ok miod
2013-10-16Prefer ACPI over APM. For years, we had a SMBIOS-probing hack to preferTheo de Raadt
APM on machines where it suspended better. These days, suspend/resume works better in ACPI. Specific machine: x40. There is a class of very early ACPI machines which are going to break, because of buggy AML and bugs in our acpi code. By making this change, we will expose those, and hopefully get them fixed. ok many
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-10-09Use monitor/mwait to idle when available. Make cpu_unidle() do nothingPhilip Guenther
if it can tell the target CPU isn't actually idling and introduce cpu_kick() for the cases where we want to force a non-idle CPU into the kernel. just a port of the amd64 version; testing by many
2013-10-05Use K1X_FID macro on msr read.Bryan Steele
2013-10-05sadly, some removals to make things fitTheo de Raadt
2013-10-02Format string fixes: Use %l* for paddr_tStefan Fritsch
2013-10-01Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_tStefan Fritsch
- despite the name, ntohl returns uint32_t, not long - also fix some %d into %u
2013-10-01Use %z* for size_tStefan Fritsch
while there, fix a few %d into %u
2013-10-01format string fix: it's u_long *addrStefan Fritsch
2013-09-29Get rid of cnset(). It is only used on amd64/i386 and doesn't really doMark Kettenis
anything useful there. Switching from glass console to serial console is already done by cninit(), and the reinitializaton of cn_tab by cnset() breaks the conseleness checks in the wsdisplay code. Tested on various amd64/i386 systems with both glass and serial console. ok mpi@
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-14Disable COMPAT_LINUX until it can be fixed post-time_t changePhilip Guenther
ok pirofti@
2013-09-08Enable vmx(4) on i386 and amd64.Reyk Floeter
It will be enabled by default in the GENERIC and RAMDISK_CD kernels, but you have to set vmxnet3 in the VMware configuration on the host; see vmx(4). ok deraadt@
2013-09-05ugold(4) is a driver for PCsensor's USB gold TEMPer temperaturesasano
measurement device (idVendor:idProduct=0x0c45:0x7401). newly added. ok by mpi@ and sthen@
2013-08-25one change missed by jsging's commit is needed to unbreak the build;Mike Belopuhov
spotted by sthen@
2013-08-24Remove call to sched_start_secondary_cpus in MP unhibernate case until weMike Larkin
can more fully understand the side-effects. Tested by various people back at t2k13, been sitting in my tree since then.
2013-08-24Cleanup amd64 and i386 MTRR code -Mike Larkin
1. Makes amd64 and i386 MTRR code nearly identical 2. Removes support for per-process MTRRs (which were never implemented) 3. Treat "unknown" MTRR types as uncacheable instead of trying to preserve bogus settings made by the BIOS 4. Various KNF cleanups Should be no functional change. ok jsg@, deraadt@
2013-08-21Use the console locator to make sure wsdisplay0 always is the glass console.Mark Kettenis
ok miod@
2013-08-20Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.Antoine Jacoutot
No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
2013-08-20tedu netnatm and ueagle(4).Martin Pieuchot
ok mikeb@, sthen@, tedu@ (implied), doc bits ok jmc@
2013-08-18make them fit, sighTheo de Raadt
2013-08-15Blast uhts(4). This code was merged into ums(4) last week.Edd Barrett
OK mpi@
2013-08-15Include files.agp and files.drm from files.pci. Makes sure "drm.h" getsMark Kettenis
generated on all architectures that support pci, making alpha and loongson compile again. ok todd@, miod@ seemed to agree with the idea
2013-08-13Let ray(4) rot in the attic. OK mpi, jsg, kettenis, henning, millert.Mike Belopuhov
Mickey approves these changes.
2013-08-12Add a port of the TTM and Radeon DRM code from Linux 3.8.13.Jonathan Gray
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.
2013-08-07We uniformly define size_t to be unsigned long and ssize_t to be long. MakeMark Kettenis
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
2013-07-14IPL_VM is "mpsafe" now as well.Mark Kettenis
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-10To 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 matthew@
2013-07-05Take II, this time without flubbing off_t: : move several internalPhilip Guenther
type definitions that are the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@ kettenis@ otto@
2013-07-04format string fixStefan Fritsch
ok kettenis@
2013-07-04Format string fixes:Stefan Fritsch
f_count is long ok kettenis@ Change esm_sensor_map.arg to int ok deraadt@
2013-07-04backout previous; off_t must be signed and there might be other C++ APIOtto Moerbeek
breakage lurking; ok kettenis@