summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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-21de-static-ize prototypes as well, which makes these functions not-staticMark Kettenis
for real! Pointed out by Alexey E. Suslikov.
2013-05-21remove unused cpu_lock code (where it is truly unused). it is notTed Unangst
part of the future we have planned. middling ok from a few
2013-05-20de-static-ize, such that people don't get confused by aesni failures onMark Kettenis
AMD hardware the next time somebody tries to run on a broken KVM hypervisor.
2013-05-16Implement a mechanism to establish interrupt handlers that don't grab theMark Kettenis
kernel lock upon entry through a new IPL_MPSAFE flag/level.
2013-05-12Tell wsdisplay(4) to switch back to the console screen upon entering ddb(4).Mark Kettenis
This gives users a decent chance to see panic messages and interact with ddb(4) when they're running X on hardware for which we have a KMS driver. Currently that means inteldrm(4). ok jsg@, guenther@
2013-05-12Take the kernel lock and call the actual interrupt handler from aAlexandre Ratchov
single c function. This will hopefully make easier to stop taking the kernel lock when running "mp safe" interrupt handlers. help from ok kettenis
2013-05-08this comment is not attached to this value. removeTed Unangst
2013-05-08remove stale cyrix emc support, and switch to just using intial npxcwTed Unangst
ok kettenis
2013-05-06the use of modern intel performance counter msrs to measure the number ofDavid Gwynne
cycles per second isnt reliable, particularly inside "virtual" machines. cpuspeed can be calculated as 0, which causes a divide by zero later on which is bad. this goes to more effort to detect if the performance counters are in use by the hypervisor, or detecting if they gave us a cpuspeed of 0 so we can fall through to using rdtsc. ok jsg@
2013-04-24Use the manufacturer-supplied bios serial/uuid as a source ofBret Lambert
uniqueness to seed the random pool; although it's somewhat hit-or-miss, as serial numbers of 123456789 (I have the same combination on my luggage!) and lazy uuid instantiation mean it's not as unique as we would like. Still, on those boards where the manufacturer isn't a slacker, it's better than nothing... ok deraadt@
2013-04-23Include udivdi3/umoddi3 when compiling the amd64/i386 boot blocks - theyJoel Sing
are needed for the upcoming type changes. ok deraadt@
2013-04-23Remove obsolete comment, okay mlarkin@.Paul Irofti
2013-04-23tedu unused makefiles.Joel Sing
2013-04-23Remove softraid boot support from fdboot (again).Joel Sing
2013-04-17Don't set the frequency of the statclock if we don't have one.Gerhard Roth
Prevents strange hang-ups during reboot. Joint work with hshoexer@. ok mikeb@, mlarkin@, miod@, deraadt@
2013-04-09Need #include "isa.h" for NISAPhilip Guenther
Diff from Christian Groessler (chris (at) groessler.org)
2013-04-05Brad didn't even try building the ramdisk, because it is 7.5K oversize.Theo de Raadt
2013-04-05Add the remaining USB Wifi adapters to the CD RAMDISK media for usersBrad Smith
using the media with upgrades - athn(4), atu(4), otus(4), rsu(4), uath(4) ok deraadt@
2013-04-05enable com3 on both i386 and amd64 (com4 config is added, but disabled)Theo de Raadt
ok miod kettenis tedu
2013-04-04zap redundant assignmentsAlexander Hall
2013-04-01Do not expose the trap T_* values to userland, since they invade theTheo de Raadt
namespace a bit much. These are the names for the value encoded in core.c_ucode or siginfo.si_trapno, but userland never looks directly and only cares about the abstract signal code. ok guenther
2013-03-31try to avoid pulling in pte.h and other more crazy things. Checked againstTheo de Raadt
the things that libkvm needs.
2013-03-30reorder include search directories. cuts lookups by quite a bit.Ted Unangst
ok deraadt miod
2013-03-29put urtwn in big ramdisks so I can use it for upgradesTed Unangst
2013-03-28Add STRONG_ALIAS macros to be used from assembly code in libc andMartynas Venckus
libm. While at it, remove now unused workarounds for lint. Agreed by kettenis@, guenther@, matthew@.
2013-03-28Add __strong_alias macros for all architectures to be able to aliasMartynas Venckus
another symbol without weak attribute. To be used in libc and libm soon. Agreed by kettenis@, guenther@, matthew@.
2013-03-28the ramdisk is a bit special, and some tedu arguments do apply. # outTheo de Raadt
the drivers which were disabled.
2013-03-27Remove commented out tr(4) stanzas, since support for them has been removedMiod Vallat
almost 6 years ago; Alexey Suslikov
2013-03-26PGSHIFT and PGOFSET are now contained inside the kernel namespace.Theo de Raadt
2013-03-25PGSHIFT -> PAGE_SHIFTTheo de Raadt
2013-03-25unused relicsTheo de Raadt
2013-03-25ALIGNBYTES/ALIGN/ALIGNED_POINTER can move to the MI file.Theo de Raadt
2013-03-23refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedTheo de Raadt
to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
2013-03-23Avoid using DEV_BSHIFT, and use DEV_BSIZE instead.Theo de Raadt
2013-03-21NBPG -> PAGE_SIZE, PGSHIFT -> PAGE_SHIFT, PGOFSET -> PAGE_MASKTheo de Raadt
2013-03-20Previous commit to acpi_machdep.c broke suspend because the IPI to save theMark Kettenis
FPU state needs a little bit more setup. Fix things properly this time by simplifying matters and saving the FPU state from the IPI that halts the CPU. With help from deraadt@ and mlarkin@. ok deraadt@, mlarkin@
2013-03-19in acpi_sleep_mp() properly flush fpu and halt the AP'sTheo de Raadt
found when i told mlarkin to look at it for re-use in a different place ok mlarkin
2013-03-17Add an interface to rebind AGP DMA mappings. To be used by the upcoming KMSMark Kettenis
support to reload bindings after suspend/resume and to update cachability flags in the address translation table entries.
2013-03-15Delete the sequencer(4) driver, since its not used any longer. DiffAlexandre Ratchov
mostly from armani. ok miod, mpi, jsg and help from sthen
2013-03-12Fake 'SMBIOS detection' for the Soekris boxes, by Matt DaintyTheo de Raadt
This will make it easier to have device drivers for some oddities these machines have ok kettenis, assume jsg is ok with it too
2013-03-12Fix kernel profiling on MP systems by using per-CPU buffers and teachMartin Pieuchot
kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@
2013-03-07Reword some wrong comments and some improperly formatted comments and addMike Larkin
information about piglet memory layout. No functional changes.
2013-02-13De-magic IOM_END like in the rest of machdep.c. OK miod@.Martynas Venckus
2013-02-13- Detect and correct stale GDT user code segment limit causedKurt Miller
by another thread in the same process running on another cpu raising pm_highexec and pm_codeseg. w/help from kettenis@ okay beck@ guenther@
2013-02-12Back out per-CPU kernel profiling, it shouldn't modify a public headerMartin Pieuchot
at this moment.
2013-02-11Fix kernel profiling on MP systems by using per-CPU buffer. PreviouslyMartin Pieuchot
various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@
2013-02-09Blame the right function when panic'ing.Miod Vallat
2013-01-29the bus_space api implies that there's a bus endianness that it willDavid Gwynne
swap for you to the hosts endianness. sometimes you dont want this hand holding and just want raw access to the registers. bus_space does have stuff to do this already, but they deal with buffers which can be awkward if you just want to get or set a single register. this adds the following to i386 and amd64: bus_space_read_raw_2() bus_space_read_raw_4() bus_space_read_raw_8() bus_space_write_raw_2() bus_space_write_raw_4() bus_space_write_raw_8() sparc64 already implements this, even though it wasnt part of the official api. how handy. i'll do other archs as i can. kettenis@ and miod@ seem ok with this