summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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-11-01Fix merge errors.Joel Sing
Found the hard way by deraadt@
2012-10-31Unbreak build on !i386.Joel Sing
Pointed out by deraadt@
2012-10-31Bump version numbers.Joel Sing
2012-10-31Enable softraid boot support for cdboot(8) and pxeboot(8).Joel Sing
2012-10-31Make cdboot(8) and pxeboot(8) work correctly when it is larger than 64KB inJoel Sing
size. When 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-31Save 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-31Bump i386 boot(8) version.Joel Sing
2012-10-31Enable softraid boot support for i386 boot(8).Joel Sing
2012-10-31Bring softraid support to i386/stand/libsa.Joel Sing
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-30Actually remove the Makefiles.Joel Sing
2012-10-30Remove the now unused i386 libsa/libz Makefiles.Joel Sing
ok deraadt@
2012-10-29add (consistent) STANDARDS;Jason McIntyre
2012-10-29Build i386 cdboot(8) and pxeboot(8) using the same method as the amd64Joel Sing
versions. Compile all required sources directly, rather than linking against uninstalled libraries. Discussed with deraadt@
2012-10-25Some LIBC_SCCS found lurking in the shadowsTheo de Raadt
2012-10-19add an #ifdef HIBERNATE for diffability with amd64Mike Larkin
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-17Swap arguments to wdog_register() since it is nicer, and prepareTheo de Raadt
wdog_shutdown() for external usage.
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.
2012-10-12Now that the file offset/alignment issue has been found and fixed, switchJoel Sing
back to using -N when linking i386 boot(8). This prevents issues with the .data file offset becoming mismatched with its LMA, once the binary grows.
2012-10-12Force 16 byte alignment in boot(8) srt0.S, since this is more likely to getJoel Sing
the required file offset (0x120) for the .text segment.
2012-10-12Add a script that checks the file offsets for boot(8)'s .text and .dataJoel Sing
sections match up with their LMAs. This is necessary since biosboot does not perform relocation. Discussed with deraadt@
2012-10-12Build a 'fdboot' that will be used for floppy disk media. This can be madeJoel Sing
smaller than the normal 'boot', however for now it is identical. ok deraadt@
2012-10-11Initialise the protected mode IDT after zeroing .bss - otherwise we wipeJoel Sing
the IDT that we have just finishing building.
2012-10-10Oops. Need to handle the case of nfs diskless machines, where the blockTheo de Raadt
device name is NULL. From Tim Wiess
2012-10-10Add __BEGIN_DECLS so that programs using C++ can use functionsStuart Henderson
defined in sysarch.h again, they were broken following the change to NO_IMPLICIT_EXTERN_C. help/ok kettenis@
2012-10-09Bump boot versions due to recent changes.Joel Sing
2012-10-09Allow boot(8) to pass information to the kernel, regarding the softraidJoel Sing
volume that it booted off.
2012-10-09Put the real mode IDT and the GDT back in .text - having them in .data onlyJoel Sing
works if .data is within the same segment.
2012-10-09Remove -noinhibit-exec now that we no longer have to deal withJoel Sing
"relocation truncated" linker errors.
2012-10-09Dynamically build the Interrupt Descriptor Table (IDT), instead of usingJoel Sing
a static table. This allows the IDT to be placed in .bss and avoids the "relocation truncated" errors that result from the linker trying to put a 32-bit address into a 16-bit hole. With input from Marco Peereboom. ok weingart@
2012-10-09Sync "Structured Extended Feature Flags" cpuid bits withJonathan Gray
the August 2012 revision of "Intel Architecture Instruction Set Extensions Programming Reference". Correct definitions of EREP and INVPCID, rename EREP to ERMS to match Intel's docs. Add some more Haswell feature bits.
2012-10-09Enable Supervisor Mode Execution Protection (SMEP), found in recentJonathan Gray
Intel chips. If the kernel is tricked into running code from a user page while in supervisor mode we'll now get a page fault and panic instead of running it. suggestions and ok guenther@, ok deraadt@
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
2012-10-08enable 3 new OAK usb sensors on at least two architecturesTheo de Raadt
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