summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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@
2013-07-04To ease future changes, move several internal type definitions that arePhilip Guenther
the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@
2013-07-03fix: cast void * to char *, fix format args for (u)int64_t,Stefan Fritsch
tc_frequency is unsigned ok kettenis@
2013-07-01Make the acpi global lock functions actually work. Luckily these functionsMark Kettenis
were still unused. ok millert@
2013-06-23Stop using -traditional-cpp on gcc3/4 platforms.Miod Vallat
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
2013-06-14give up on fitting siopTheo de Raadt
2013-06-13bcopy/memmove/memcpy are now in libkernTheo de Raadt
tested by various
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-09remove fxp because uvm additions overflows all i386 install mediaTheo de Raadt
2013-06-09the kernel is supposed to provide memmove, but some archs are missing it.Ted Unangst
add i386 sparc and sparc64. ok deraadt
2013-06-04Remove remaining references to HIBERNATE_COPY_PAGE. It was effectivelyMike Larkin
removed at n2k13 but a few errant references still remained. No functional change. Spot tested by my on i386 and amd64 UP environments, no regressions seen. noticed by deraadt@
2013-06-04Add RCS ids.Paul Irofti
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
ok matthew@ deraadt@
2013-06-03changes for isc fuse support. not enabled. ok beck deraadt.Ted Unangst
from Sylvestre Gallon ccna.syl gmail.com
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-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-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-01Add vmx(4) to the kernel config, but comment it out for now.Reyk Floeter
ok deraadt@
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-31remove counters for simplelocksTed Unangst