summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2012-10-08Avoid accessing .data or .bss from real mode, since they may not be withinJoel Sing
the current segment. Load and store the necessary BIOS registers from protected mode, preserving the register values across the real mode and protected mode switches by directly patching instructions. This allows for boot(8) to be larger than 64KB.
2012-10-08reduce the difference between i386 and amd64 versions of the speedstep codeJonathan Gray
2012-10-04Use information provided by ACPI to attach secondary PCI host bridges.Christian Ehrhardt
ok kettenis@
2012-09-30Remove duplicated chunk; noticed by David GilmoreMiod Vallat
2012-09-27enable smscJonathan Gray
2012-09-27remove the zlib rfc text: these pages already point to gzip(1), whichJason McIntyre
has the references, and the rfc is not that relevant anyway;
2012-09-25Make sure we send MSIs to the primary CPU like we do on amd64.Stuart Henderson
This is a fixed version reinstating the previous commit, fix from Christian Ehrhardt, same fix from brad@.
2012-09-25Remove unused acpi locking code.Paul Irofti
To be replaced with higher level C routines once we settle for a common consistent set of atomic operations across platforms. Discussed with and okay by deraadt@ and kettenis@.
2012-09-25Reduce the diff between amd64/stand and i386/stand, requested by deraadt@.Pascal Stumpf
These create essentially the same bootblocks, so the build system should not be diverging too much, or at least easily diffable. There is still a lot of work to be done here, but this is the low-hanging fruit. ok jsing@
2012-09-22revert previous, breaks the treeStuart Henderson
2012-09-21Make sure we send MSIs to the primary CPU like we do on amd64.Mark Kettenis
Based on a diff from Christian Ehrhardt.
2012-09-19Set up PCI bus number resource accounting for the main PCI bus hierarchy.Mark Kettenis
2012-09-19Add support for the rdrand instruction found in recent Intel processors.Jonathan Gray
Joint work with naddy@ ok naddy@ deraadt@
2012-09-19Add new drivers for virtio network (vio) and block devices (vioblk, the disksStefan Fritsch
attach as scsi disks). These are paravirtualized devices offered by some hypervisors like kvm and virtualbox. The virtio transport driver has the pci specific parts separated out. This will make it easier to add support for mmio (e.g. for ARM) later. OK mikeb OK jasper "commit what you have" deraadt
2012-09-11Remove the 'OLF method' used for the transition from a.out to ELF andTheo de Raadt
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
2012-09-07Implement pci_min_powerstate().Mark Kettenis
2012-09-06remove compat_aout support for i386. ok deraadtTed Unangst
miod has requested a stay of execution for compat_aout in general.
2012-09-03remove a NOPIE= that was still lying aroundTheo de Raadt
2012-08-29Kill all NOPIE and NOPIE_FLAGS in i386/stand, replacing them with -fno-piePascal Stumpf
and -nopie directly. Binaries from a PIE system are identical to those from a recent snapshot. ok deraadt@
2012-08-28Add -nopie to LINKFLAGS on ELF architectures. Note that this needs anPascal Stumpf
updated gcc and ld to understand the new -nopie flag. ok deraadt@
2012-08-24Synchronize CR4 and CPUID portions of <machine/specialreg.h> for i386 and amd64Philip Guenthe
Add display of more feature bits: DTES64 PCID DEADLINE F16C RDRAND Add display of "Structured Extended Feature Flags Parameters": FSGSBASE SMEP EREP INVPCID ok mikeb@
2012-08-23kill nnpfs deadTheo de Raadt
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccPascal Stumpf
invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
2012-08-22Build the kernel with -fno-pie. Just getting Ms out of my tree; this will bePascal Stumpf
cleaned up later. ok deraadt@
2012-08-21Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always bePascal Stumpf
built with -fno-pie. This gets the hairiest part of PIE out of the way ... ok deraadt@
2012-08-16we are past the point where timecounters may disappearTed Unangst
ok miod
2012-08-15use Lk for links;Jason McIntyre
2012-08-14enable mfii(4).David Gwynne
ok deraadt@
2012-08-10';;', even with a newline between the semicolons, doesn't make muchKenneth R Westerback
sense as a for() body. One semicolon is enough. From llvm via Brad.
2012-08-07Move the common bits of syscall invocation and return handling intoPhilip Guenthe
an MI file, <sys/syscall_mi.h>, correcting inconsistencies and the handling when copyin() of arguments fails. Tested on i386, amd64, sparc64, and alpha (thanks naddy@) Any issues with other platforms will be fixed in tree. header name from millert@; ok miod@
2012-08-03enable oce(4)Mike Belopuhov
2012-08-01Use mtrrmask instead of hardcoded values to accommodate newer CPUsMike Belopuhov
with a large physical address size (greater than 36 bit). Fixes a major performance hit seen on newer servers where an incorrectly programmed memory region length affects the PCI device mappings. While here, make sure to invalidate the TLB after programming MSRs and fix an incorrect behavior found by deraadt@ where MTRRdefType was updated outside of the protected region. The fix was partly obtained from FreeBSD, tested by many. With and OK deraadt
2012-07-28zap a misleading commentPhilip Guenthe
2012-07-13Improve diffability with amd64Mike Larkin
2012-07-12Enable hibernate (suspend-to-disk) support for i386.Mike Larkin
Presently only working on pciide/wd disks. ok deraadt@
2012-07-09Remove apic_intrcount counting in the interrupt handlers. Not that usefulTheo de Raadt
anymore as a debugging tool, and it is in a rather critical path. ok kettenis
2012-07-09After a resume, re-initialize the MTRR registers on the AP processorsTheo de Raadt
as well. This fixes very slow performance due to lots of uncached memory on buggy machines, for instance on very large memory thinkpad W500 and such. ok mlarkin kettenis sthen
2012-07-09Do not re-initialize ci_randseed on the primary cpuTheo de Raadt
ok kettenis
2012-07-09unify com at cardbus attachmentsTheo de Raadt
2012-07-08Move the hibernate utility pages up to account for the MP tramp page.Mike Larkin
ok deraadt@
2012-07-08apm_kqfilter() is gonePhilip Guenthe
ok nicm@
2012-06-26create new machine/_float.h which is namespace clean. create a newTheo de Raadt
MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
2012-06-20Fix some hibernate issues on machines with > 3.5GB phys memMike Larkin
ok deraadt@
2012-06-11serial -> serial port; ok phessler@Otto Moerbeek
2012-06-10Document the "machine comaddr" command.Mark Kettenis
2012-06-10Always allow serial console, even if the BIOS doesn't report the presence ofMark Kettenis
any serial ports. Otherwise the new code to use puc(4) ports as serial console isn't all that useful. ok sthen@, miod@
2012-06-04Fix serial port output.Marcus Glocker
OK weingart@
2012-06-04Correct the backwards compatibility code for console device configuration.Joel Sing
Fix tested by naddy@ ok kettenis@
2012-06-03Add support for serial consoles at non-standard addresses. This implementsMark Kettenis
a new "machine comaddr" command that makes it possible to configure the io port used to access the serial port. This can be used to use serial ports on a puc(4) device as serial console.
2012-05-29Remove unused define CHAR_CHS_FORCE.Marcus Glocker
OK deraadt@