summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2015-12-18Prevent uvm_fault() when hitting a breakpoint by restoring the originalGerhard Roth
page protection bits. Go ahead, mlarkin@
2015-12-17add a size to free. from MathieuTed Unangst
2015-12-12Identify hypervisors before configuring other children of the mainbusReyk Floeter
(bios, CPU, interrupt handlers, pvbus). This splits the pvbus attach function into two parts: pvbus_identify() to scan the CPUID registers for supported hypervisors and pvbus_attach() to attach the bus, print information, and configure the children. This will be needed for Xen and KVM, as discussed with mikeb@ and sf@ OK mlarkin@
2015-12-07Add cpuid bits documented in the August 2015 revision ofJonathan Gray
"Intel Architecture Instruction Set Extensions Programming Reference"
2015-11-23downfalls -> pitfallsmmcc
2015-11-10Make TCB_GET() in the kernel return a (void *) like all the others archsPhilip Guenther
problem reported by semarie@
2015-11-06Only read/write cr4 if we have a bit to set after testing the variousJonathan Gray
cpuid based flags. Unlike amd64 there is no CR4_DEFAULT used here, cr4 does not exist on most/all? 486s and cr4 access traps on Cyrix 5x86 processors. Should fix a regression introduced in rev 1.65 encountered by 'Ppractivus' on a 5x86. "looks good" guenther@
2015-11-01Remove the definition of USRTEXT. It has no relevance outside of the non-PIEMiod Vallat
a.out world. ok deraadt@ kettenis@
2015-10-29Make inteldrm(4) attach to pci(4) instead of vga(4) just like radeondrm(4).Mark Kettenis
This is needed for machines where Intel graphics isn't the primary graphics device and on systems with UEFI firmware that put the device in non-VGA mode. ok jsg@
2015-10-28Support backspace in softraid boot passphrase prompt.Joel Sing
From uwe@
2015-10-25enable asmc(4) on i386Joerg Jung
2015-10-23Allocate a new major for tap(4) also note that pseudo-device tun is for tapClaudio Jeker
as well. OK dlg@ mpi@
2015-10-23Zap pv allocation abstraction layer.Mark Kettenis
ok mlarkin@
2015-10-23enable viornd on RAMDISK_CDMike Larkin
ok kettenis@, deraadt@
2015-10-21Do not call uvm_swap_finicrypt_all() a second time in dumpsys().Martin Pieuchot
ok tedu@, deraadt@, miod@
2015-10-08After replacement alloca() with alloc(), out-of-heap happened when bootingYASUOKA Masahiko
on a large block size (32K) partition. Increase the HEAP_LIMIT from 0x90000 to 0xA0000. try this, deraadt
2015-10-0816 years after E801 memprobe was disabled, probably safe to delete it.Ted Unangst
ok deraadt jung kettenis ratchov
2015-10-08Simpify some code by noting that DOSBBSECTOR is 0, so "if (n >Kenneth R Westerback
n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".
2015-10-01Use DOS_LABELSECTOR rather than LABELSECTOR to indicate offset into anKenneth R Westerback
OpenBSD partition when accessing the disklabel. For these files both are '1', but this makes the usage consistent across all archs. ok guenther@ miod@
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-30add a (disabled) driver for the Apple System Management Controller (SMC) asJoerg Jung
found in Apple Intel based devices "go at it" deraadt@
2015-09-29Add missing prototype for bios_getdiskinfo() to amd64/disksubr.c.Kenneth R Westerback
Include systm.h inside #ifdef DEBUG in i386/disksubr.c, as amd64/disksubr.c. Makes amd64 and i386 disksubr.c identical once more.
2015-09-28In low-level suspend routines, set cold=2. In tsleep(), use this toTheo de Raadt
spit out a ddb trace to console. This should allow us to find suspend or resume routines which break the rules. It depends on the console output function being non-sleeping.... but that's another codepath which should try to be safe when cold is set. ok kettenis
2015-09-27Use readdisksector() instead of manual buf initialization. These areKenneth R Westerback
identical to the amd64 change already committed. ok deraadt@
2015-09-27free(x, 0) cleanup:Sebastien Marie
- set size argument of free() - remove pointless if expression around free() call ok guenther@
2015-09-26lint is dead and C99 may be old enough to drive a car: delete LONGLONGPhilip Guenther
comments ok millert@
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-18Remove support for building the boot blocks with DEBUGFLAGS=-D_TEST, which isMiod Vallat
supposed to create a userland binary in order to test non-boot related functionality. This feature has been bitrotting in a non-compiling state for years, and causes a too-many-ifdefs disease now that there are intrusive EFI changes. No functional change.
2015-09-16Fix uninitialized variable found by Maxime Villard's Brainy Code Scanner.Daniel Dickman
ok uebayasi@, mlarkin@
2015-09-13remove deltaTheo de Raadt
2015-09-13intr_barrier(9) for i386.Mark Kettenis
2015-09-10Now that the GPT code tries really hard not to get in the way andKenneth R Westerback
accidentally capture disks ... Eliminate kernel option GPT and associated #ifdef GPT/#endif. Let everybody get on the GPT bandwagon and we'll see what wheels fly off. Requested by & ok deraadt@
2015-09-10reduce .Nd to one line and kill .Tn while hereIngo Schwarze
2015-09-10Call readgptlabel() from readdoslabel() instead of MD readdisklabel().Kenneth R Westerback
Call it if and only if there is an MBR on sector 0 that contains 1 and only 1 partition; that partition is an EFI partition; and it covers the entire disk or as much of the disk as can be covered in an MBR partition. Be paranoid about restoring any possible tweaks to the label being built in the case that readgptlabel() fails, and in that case return to the readdoslabel() code. ok deraadt@
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-08convert several malloc(9) to mallocarray(9).Sebastien Marie
ok deraadt@ guenther@ "re-wrap the long lines" kettenis@
2015-09-03Fix a race in pmap_page_remove_86() and pmap_page_remove_pae().Mark Kettenis
ok millert@, tedu@, mlarkin@
2015-09-03match amd64; bios_efi_info_t is required here as well, because acpidumpTheo de Raadt
compiles on more than one platform.
2015-09-03Fix the condition of finding SMBIOS. Found by gerhard@.YASUOKA Masahiko
ok gerhard uebayasi deraadt
2015-09-02remove a bunch of orphaned prototypes and unused functions; ok miodMike Belopuhov
2015-09-02Fix the bios boot to pass the bootargs properly.YASUOKA Masahiko
ok deraddt
2015-09-02alloca() no longer neededTheo de Raadt
2015-09-02Bring the boot changes on amd64 to i386. alloca is deleted.YASUOKA Masahiko
Also fix the boot from BIOS and bump the version. input and ok deraadt
2015-09-01Always call readdoslabel() before readgptlabel(). Doubly always call themKenneth R Westerback
in the same order. Fix writedisklabel() to follow these simple rules. ok kettenis@
2015-09-01ditch a few prototypes for non-existant functionsMike Belopuhov
2015-09-01fairly simple sizes for free()Theo de Raadt
2015-08-31The pmap_pmap_pool pool will never be used in interrupt context, so pass theMark Kettenis
PR_WAITOK flag to pool_init and pass NULL as the pool allocator. ok mlarkin@
2015-08-30Provide remaining arch with END() macro for setting calculated size onPhilip Guenther
symbols in ASM ok deraadt@ mpi@
2015-08-29_NLIST_DO_ELF is no longer needed: it's the only optionPhilip Guenther
ok deraadt@