summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
AgeCommit message (Collapse)Author
2013-01-20Add viomb(4).Brad Smith
ok sf@
2013-01-18fix bogus dependencies, and allow mkdep to runMarc Espie
checked on amd64 by rpe@ okay jsing@
2013-01-18Fix the makefile so it works on other architectures.Joel Sing
Found the hard way by bluhm@
2013-01-18twist the amd64 bus_space implementation a bit. instead of using the tagDavid Gwynne
as an identifier for IO or memory mappings that was checked inside the api, turn it into a pointer to a structure of function pointers. the api then generally becomes a set of macros that deref the function pointers on the callers behalf. the idea is that following a pointer to very small functions is cheap compared to doing compares continuously. a notable exception to the macro wrappers is bus_space_barrier which is now a static inline function. the only argument to it that gets used is the flags, and thats usually a constant at compile time so it can be inlined to a single fence instruction. the kernel is smaller and the api is more cache friendly now. ok deraadt@
2013-01-17Generate assym.h where we need it, instead of reaching around into otherJoel Sing
object directories. Discussed with deraadt@
2013-01-17Clean up/standardise makefiles for amd64/stand.Joel Sing
2013-01-17Clean includes.Joel Sing
2013-01-17option HIBERNATE for amd64Mike Larkin
presently there are issues with SMP which are being looked at, and a few machines still reboot on the unpack stage. ok deraadt@
2013-01-17use .quad for gdt load when returning from long mode. Fixes a rebootMike Larkin
problem after unpack
2013-01-17fix an error in the amd64 asm unhibernate code and a slight adjustment toMike Larkin
the MI hibernate code to handle 64 bit archs
2013-01-16MD hibernate goo for amd64Mike Larkin
2013-01-16asm resume functions for amd64 hibernateMike Larkin
2013-01-16cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; onlyMiod Vallat
affects a.out binaries' core dumps.
2013-01-16properly distinguish /boot and biosboot in informational and error messagesChristian Weisgerber
ok guenther@
2013-01-16init comconsiot to X86_BUS_SPACE_IO in case someone changes the value ofDavid Gwynne
that thing to be something other than 0, which as a global it gets initted to.
2013-01-15implement bus_space_foo_8 for amd64. it will panic on attempts to do 8David Gwynne
byte operations on I/O space with "invalid I/O operation", but works great for mem mappings. compiled AND tested on myx(4) on amd64. ok deraadt@ kettenis@ miod@ pirofti@
2013-01-02Zero out sbv_maskkey to make it boot when there's a softraid cryptoMartynas Venckus
partition. OK jsing@.
2012-12-31Remove emulation errno mapping code from platforms that no longer havePhilip Guenther
non-native emulations. ok miod@
2012-12-10Implement support for Extended Sequence Numbers for the aesni driverMike Belopuhov
exercising the same approach as in sys/crypto/cryptosoft.c rev1.67.
2012-12-09clarify that changes to this module were not done by intelMike Belopuhov
2012-12-09get rid of awkward label names and use simple forward/backwardMike Belopuhov
notation; no binary change
2012-12-09whitespace cleanup that's been due a long timeMike Belopuhov
2012-12-08Make bus_dmamem_mmap(9) honor BUS_DMA_NOCACHE.Martin Pieuchot
ok kettenis@
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-12-02Determine whether we're currently on the alternative signal stackPhilip Guenthe
dynamically, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/. Also, fix alt stack handling on vax, where it was completely broken. Testing and corrections by miod@, krw@, tobiasu@, pirofti@
2012-11-29Enable rtsx(4) in GENERIC on i386 and amd64.Stefan Sperling
2012-11-27Add acpi_{acquire,release}_glk locking functions.Paul Irofti
These functions represent the basic blocks for using the ACPI global lock that provides mutual exclusion between the OSPM and the BIOS. No functional change. Okay kettenis@, deraadt@.
2012-11-19Add atomic 32-bit cas operations.Paul Irofti
This is needed for future acpi global locking routines. Okay kettenis@
2012-11-16Add oce(4) / mfii(4) and virtio devicesBrad Smith
i386 CD image also build/boot tested by todd@ ok mikeb@ deraadt@
2012-11-10Recent x86 CPUs come with a constant time stamp counter. If this isMarcus Glocker
the case we verify if the CPU supports a specific version of the architectural performance monitoring feature and read out the current frequency from the fixed-function performance counter of the unhalted core. My initial motivation to implement this was the Soekris net6501-70 which comes with an Intel Atom E6xx 1.60GHz CPU. It has a constant time stamp counter plus speed step support and boots on the lowest frequency of 600MHz. This caused hw.cpuspeed and hw.setperf to reflect the wrong values. The diff is a cooperation work with jsg@. The fixed-function performance counter read code comes from a former diff of him. OK jsg@
2012-11-05unifdef -D __HAVE_TIMECOUNTERMiod Vallat
2012-11-02uvm_km_alloc() allocs bytes rounded up to the nearest page not pages.Jonathan Gray
Problem spotted by and diff to fix this (and convert to km_alloc) from oga ok deraadt@
2012-10-31Add support for Intel's Supervisor Mode Access Prevention (SMAP) feature.Jonathan Gray
When enabled SMAP will generate page faults on the kernel attempting to read/write user data pages unless an override flag is set. Instructions that modify the flag are patched into copyin/copyout and friends on boot if SMAP is enabled. Those with access to hardware with SMAP can contact me for a test case. joint work with deraadt@ ok miod@ deraadt@
2012-10-30Apply a bunch of style(9) and whitespace fixes to i386/amd64 libsa, makingJoel Sing
the code actually diffable. No binary change.
2012-10-29add (consistent) STANDARDS;Jason McIntyre
2012-10-29Bump version.Joel Sing
2012-10-29Enable softraid boot support in pxeboot(8).Joel Sing
2012-10-29Make pxeboot(8) work correctly when it is larger than 64KB in size. WhenJoel Sing
relocating use blocks that are a maximum of 32KB in size and increment the segment registers after relocating each block. This keeps us within the confines of the %cx register and the real mode segmented addressing.
2012-10-29Bump version.Joel Sing
2012-10-29Enable softraid boot support in cdboot(8).Joel Sing
2012-10-29Make cdboot(8) work correctly when it is larger than 64KB in size. WhenJoel Sing
relocating use blocks that are a maximum of 32KB in size and increment the segment registers after relocating each block. This keeps us within the confines of the %cx register and the real mode segmented addressing.
2012-10-28Use the same (shorter) error message as the i386 version.Joel Sing
2012-10-28Save and restore %ebx across the call to read. Otherwise we load the firstJoel Sing
64KB segment at 0x7c00 and any additional 64KB segments over top of each other at 0x10000.
2012-10-27Move the code for softraid boot into separate files, leaving only minimalJoel Sing
hooks that are called from the normal code path. This allows softraid boot support to be completely enabled or disabled at compile time. For boot(8) all softraid boot support is now enabled by default, including support for booting from crypto volumes. Disable softraid boot support for fdboot, which further shrinks the binary.
2012-10-25Some LIBC_SCCS found lurking in the shadowsTheo de Raadt
2012-10-19amd64 hibernate "unpack-time" mmu/pmap code and asm goo. Work inMike Larkin
progress.
2012-10-17Document the 'boothowto hack' used to flag to (a few) DVACT_POWERDOWNTheo de Raadt
handlers how hard they should hit the hardware.
2012-10-16Change the PCI memory extent to cover the whole 64-bit memory spaceMike Belopuhov
but reserve everything above 36 bits so that the erroneous extent allocation will fail but not panic the system. Fixes the notorious IBM x3100 panic where one of the PCI BARs is programmed with an incorrect 64 bit address. Idea and OK kettenis@, tested by Walter Souza, thanks!
2012-10-13pxe spec reference is better placed in STANDARDS;Jason McIntyre
2012-10-13Only build fdboot on the appropriate architectures. Also fix the path toJoel Sing
check-boot.pl so that it works with both boot and fdboot.