summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2012-03-19Only change the default boot device to a bootable softraid volume, if weJoel Sing
are able to handle the given discipline. At this stage amd64 boot(8) is limited to RAID 1. This makes life easier for users who are booting from a softraid crypto volume, but are loading a kernel from hd0a:/bsd. Tested by jrick@devio.us - thanks!
2012-03-19more intel cpu models, though the low/high est method is largelyJonathan Gray
irrelevant with acpi machines
2012-03-16Display L3 cache information on amd64 for amd cpus, Intel now uses aChristiano F. Haesbaert
different scheme. ok jsg@
2012-03-15Take cd9660 support off the "obviously a floppy" install media, to findTheo de Raadt
new space. The same cannot be done yet with some other architectures which share the RAMDISK kernel amongst media types too tightly. I am investigating the horrific src/distrib cleanups required to fix that.
2012-03-09- remove a redundant note about tftpd; ok dlgJason McIntyre
- whilst here, normalise Nd
2012-02-25Remove useless code.Christiano F. Haesbaert
ok kettenis@
2012-02-25Make CPUF_GO setting atomic.Christiano F. Haesbaert
ok kettenis@
2012-01-31remove an unused msr readJonathan Gray
from Bryan Steele
2012-01-13Crank amd64 boot(8) version for the softraid changes.Joel Sing
2012-01-13Switch back to bootduid, however remember to include sys/systm.h...Joel Sing
2012-01-13handle m_copyback errors, this code is too sensitive for suchMike Belopuhov
failures to be neglected; ok markus
2012-01-11Backout premature use of 'bootduid', as 'rootduid' has not yet beenKenneth R Westerback
renamed.
2012-01-11Pass the DUID of the boot disk via bootduid instead of rootduid, since itJoel Sing
is the DUID that we booted from, which is not always going to be the same as the DUID that we mount root on.
2012-01-11Teach OpenBSD/amd64 boot(8) how to access softraid(8) volumes. ThisJoel Sing
allows a kernel to be loaded from a softraid RAID 1 volume. Furthermore, if you boot from a disk that is a member of a bootable softraid volume then it will default to booting from the softraid volume (sr[0-9]a:/bsd). Discussed with deraadt@
2012-01-08Make sure we only read cpuid 0x80000001 features if pnfeatset reports it.Christiano F. Haesbaert
This is already done in i386. ok jsg "if there is no change to the flags in your dmesg"
2012-01-07Check that we have pstates in _PSS before calling the pstate status MSR.Jonathan Gray
While the docs say we should check a bit in cpuid this should work as well. Fixes problems related a fictitious AMD machine dreamed up by Linux KVM. Reported/tested by Walter Haidinger, diff from Bryan Steele.
2011-12-26Add the missing ECX cpu flags from CPUID at 0x80000001.Christiano F. Haesbaert
This is all documented at: http://support.amd.com/us/Embedded_TechDocs/25481.pdf (page 20) http://www.intel.com/assets/pdf/appnote/241618.pdf (page 41) ok jsg@
2011-12-17Initialize the (abridged) tag word correctly.Mark Kettenis
ok mikeb@
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-11-16Make userret() MI. On architectures which jammed stuff into it in theTheo de Raadt
past, pull that code out seperately. ok guenther miod
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyTheo de Raadt
by krw and myself.
2011-11-14merge syscall.c into the end of trap.c as almost all architectures do.Theo de Raadt
2011-11-13If a softraid chunk is offline we are not necessarily going to have theJoel Sing
disk/partition name - in this case print the chunk number instead.
2011-11-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-10-29Make sure we don't accidentally use ISA or EISA interrupt mappings on PCIMark Kettenis
busses. tested by krw@
2011-10-21Add bounds checks for access to mp_busses.Mark Kettenis
2011-10-19Oh yeah, a cvs id is goodPhilip Guenthe
2011-10-15"TLS-lite": add kernel support for a per-thread userspace pointer,Philip Guenthe
for pointing to the thread-control-block. Support for mapping this to the correct hardware register can be added as it's finished; start with support for amd64, sparc, and sparc64. Includes syscalls for getting and setting it (for a portable __errno implementation) as well as creating a new thread with an initial value for it. discussed with miod@, kettenis@, deraadt@; committing to get the syscalls in with the impending libc bump and do further refinements in tree
2011-10-13I'm sick and tired of people doing misalgned reads and writes to PCI configMark Kettenis
space and not noticing because they only test on amd64. So enforce alignment there as well, at least for a little while such that we find those bugs and force people to fix them.
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-10-04In the coming future, we are more likely to need ehci(4) than sk(4) orTheo de Raadt
vge(4) discussed at length with jsg
2011-09-20Remove commented-out leftovers from old drm drivers that have been removedMatthieu Herrb
from tree. ok oga@
2011-09-20Fix bogus comment. Okay miod@Paul Irofti
2011-09-08Provide namespace-safe alignment macros in <machine/_types.h>, withPhilip Guenthe
compat names kept in <machine/param.h>. In <sys/socket.h>, pull in <sys/_types.h> instead of the namespace polluting <machine/param.h> and completely eliminate __CMSG_ALIGN, replaced by _ALIGN ok deraadt@
2011-09-08Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.Philip Guenthe
Since the underlying types of the int_fast types are set by machine/_types.h, put internal macros in that same file and define the exposed INT_FAST*_{MIN,MAX} macros from those. ok millert@, kettenis@
2011-09-03Add a general warning about gdb matching against sigcode instructionsPhilip Guenthe
2011-08-29Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.Mark Kettenis
ok guenther@
2011-08-18stray spaces; no binary changeMarco Peereboom
2011-08-17Assembler implementation of the GCM mode using the Carry-lessMike Belopuhov
Multiplication (CLMUL) instruction found in the new Intel and future AMD CPUs. Done about a year ago and was rotting in my trees until Ryan prodded Theo to read the white paper and figure out the license issues. Apparently, there are none. All C code and SSE glue code was written by me, while the GF multiplication function is taken from the CLMUL white paper, specifically Figure 6: "Code Sample - Performing Ghash Using Algorithms 1 and 5".
2011-08-02disable mmuagp due to reports it breaks some machines.Theo de Raadt
oga has disappeared
2011-07-19Warn about but don't prevent installboot from installing /boot whenKenneth R Westerback
the OpenBSD partition starts at >128G. This restores previous behaviour but adds the warning. ok deraadt@ guenther@
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-10remove irrelevant commentsTheo de Raadt
2011-07-10remove irrelevant old commentTheo de Raadt
2011-07-08When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For ↵Kenneth R Westerback
all these arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
2011-07-07deraadt says disable bluetooth everywhere else tooTed Unangst
2011-07-07The drahn memorial bad kernel build fix: prevent blood pressurePhilip Guenthe
spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok