summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2016-04-29Call sched_init_cpu() just before booting secondary CPUs.Martin Pieuchot
This prevent the scheduler from scheduling tasks to CPUs not beeing able to execute them during the boot process. ok visa@, kettenis@
2016-04-29Do not remove local symbols from the table.Martin Pieuchot
ddb(4) can now see static functions. That doesn't mean we should start declaring functions as ``static'', however it helps for the few existing exceptions. ok deraadt@, kettenis@
2016-04-27G/C DDB_REGS.Martin Pieuchot
2016-04-26Convert some magic numbers into #defines - this is needed for some MTRRMike Larkin
decoding code I'm working on for vmm(4) debugging. No functional change.
2016-04-25remove systraceTed Unangst
2016-04-24Remove 'option COMPAT_PCVT' now that X doen't use it anymore.Matthieu Herrb
An X server built after april 3 is needed to be able to start X with the new kernel. ok kettenis@
2016-04-21Support for 'default configuration' mpbios attachment was never completed,Mike Larkin
so instead of halfway configuring this mode and unconditionally panicing, just don't attach mpbios at all if this mode is detected during probe. ok kettenis
2016-04-14Use cpuid function 0xa to determine presence of general purposeMike Larkin
architectural performance counters, instead of cpu family/model values. Fixes a panic seen on some hypervisors when pctr(1) is used when the hypervisor masks out the counters. Reported by Hiltjo Posthuma, thanks. ok mikeb@, guenther@
2016-04-03Don't call savectx() from cpu_fork(): the registers saved are overwrittenPhilip Guenther
and the PCB_SAVECTX flag would be a lie. ok kettenis@ mpi@
2016-04-03Remove __lockbarrier() defines, unused since cpu_lock removal a fewJonathan Gray
years ago. ok dlg@
2016-03-30some Xr adjustment to catch up with MLINKS removal;Jason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-24Delete i386_{get,set}_ioperm(2) APIs and underlying sysarch(2) bits.Philip Guenther
They're no longer used by anything and should let us simplify the TSS handling. ok mikeb@ naddy@
2016-03-19Reduces the noise around the global ``ticks'' variable by renamingMartin Pieuchot
all the local ones to ``nticks''. ok stefan@, deraadt@
2016-03-17Replace curcpu_is_idle() by cpu_is_idle() and use it instead of rollingMartin Pieuchot
our own. From Michal Mazurek, ok mmcc@
2016-03-15Burn more LDT deadwood: stop allocating one for each idle thread,Philip Guenther
load the ldt register with the null selector (disabling use of it), stop reloading it on every context switch, and blow away the table itself, as well as the pcb and pmap bits that were used to track it (making sure to keep pcb_savefpu correctly aligned). testing naddy@ ok kettenis@ mpi@ mlarkin@
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2016-03-09Unmask interrupts unconditionnally before calling the generic trap handler.Martin Pieuchot
Reduce differences with amd64. Inputs from mikeb@, ok mlarkin@
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
ok mlarkin@ deraadt@
2016-03-03Unwind the trapframe correctly when a breakpoint is set on `syscall'.Martin Pieuchot
Prevent a fault in DDB on amd64. ok mlarkin@
2016-03-03Remove option USER_LDT and everything depending on it.Christian Weisgerber
Remove machdep.userldt sysctl. Remove i386_[gs]et_ldt syscall stub from libi386. Remove i386_[gs]et_ldt regression test. ok mlarkin@ millert@ guenther@
2016-03-03Kill BPTTRAP() and reduce some differences betwen i386 and amd64 trapMartin Pieuchot
handlers. No functionnal change. ok mlarkin@, mikeb@
2016-03-01db_sym_numargs() has always been defined to FALSE so nuke it with allMartin Pieuchot
its associated dead code. ok mikeb@
2016-03-01Kill never called db_find_trace_symbols().Martin Pieuchot
ok mikeb@
2016-03-01Support for running Linux binaries under emulation is going away.Christian Weisgerber
Remove "option COMPAT_LINUX" and everything directly tied to it from the kernel and the corresponding man page documentation. ok visa@ guenther@
2016-02-28Support for running Linux binaries under emulation is going away.Christian Weisgerber
Remove "option COMPAT_LINUX" and everything directly tied to it from the kernel and the corresponding man page documentation. ok visa@ guenther@
2016-02-27Rename kdb_trap() into db_ktrap().Martin Pieuchot
The goal is to include it in the list of functions that must not be instrumented. All ddb(8) functions should be in this list and have their names start with 'db_'. ok visa@, deraadt@
2016-02-26Rename and move x86 calllframe definitions in <machine/frame.h> to useMartin Pieuchot
it in MI code. ok mlarkin@, visa@
2016-02-26Remove stale RAIDframe entries from chrtoblktbl.natano
While there truncate the tables to the minimum required size; chrtoblk() and blktochr() are designed to handle a table shorter than cdevsw. "Looks good to me" deraadt@
2016-02-26pctr.h is not used here, so no need to include it.Mike Larkin
2016-02-26SYMTAB_SPACE is no longer used (last used with a.out ddb)Mike Larkin
2016-02-20Fixes a boot issue on non-ACPI i386 machines that need X permissions onMike Larkin
the BIOS region in the ISA hole. Also fix a separate unrelated issue relating to placing R/O (no X) permissions on the kernel symbol area on bsd.rd. ok deraadt
2016-02-19belatedly bump bootstrap version after mdrandom() changes; ok deraadt@Christian Weisgerber
2016-02-12Remove the "GenuineIntel" check from x86 mdrandom(). Checking theChristian Weisgerber
CPU features is enough, and this enables the use of RDRAND and the TSC fallback on CPUs from other vendors, notably AMD. Tested in snapshots for a month.
2016-02-05Implement FreeBSD-compatible IOCTL to access BMC in ipmi(4)Masao Uebayashi
Initial help & testing by jmatthew@ Code review & input by mpi@ Final review & OK by jsg@
2016-02-03Test cpuid_level or ci->ci_pnfeatset before using a CPUID leaf; some BIOSesPhilip Guenther
can disable leaves that CPU feature flags would seem to imply. Corrects signal delivery on systems where the AVX leaf is disabled. report and debugging help from Marcus MERIGHI (mcmer-openbsd (at) tor.at) ok kettenis@
2016-01-27Add a key-value interface to pvbus(4) that allows to get or set valuesReyk Floeter
in the underlying information store of the host from the OpenBSD-VM's userspace. OpenBSD did not provide access to these stores before, mostly because we did not want to add a custom tool and interface for each hypervisor. The pvbus(4) interface provides backends for xen(4)'s XenStore and vmt(4)'s VMware Tools "guestinfo". These information stores are fairly different, XenStore is a "filesystem" while vmt is a RPC, and the key-value abstraction limits them a bit but provides the most wanted functionality. Discussed with many OK mikeb@
2016-01-12naddy observed the TSC fallback code could encounter (high word) %edxTheo de Raadt
being 0; after multiply there is no perturbance to the from-disk entropy buffer. Further investigation showed perturbance was biased towards the lower bytes of a word. Compensate for this with a hocus pocus bit-spreading operation which applies a result byte by byte. discussion with kettenis, tb, mlarkin, naddy ok naddy
2016-01-11Add a "mux -1" locator to wsdisplay(4) instances representing secondaryMark Kettenis
displays. This makes sure the keyboard mux gets picked up by the primary (console) display and that USB keyboards get paired with the console even if they are not marked as the console keyboard. This is what most people expect to happen. If you really want to associate your USB keyboard with a secondary display, you can detach it from the mux using wsconscfg -f /dev/ttyCcfg -k -d and attach it to another display using wsconscfg -f /dev/ttyDcfg -k
2016-01-10match up code and comments, add missing $OpenBSD$; ok jsing@ a while agoChristian Weisgerber
2016-01-08Move HID support files out of dev/usb into new dev/hid directoryJoshua Stein
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
2016-01-08Enable uonerng(4) where ualea(4) is already present.Martin Pieuchot
2016-01-08Use off_t to store the offset we want to access the NVRAM atStefan Kempf
and check that is valid. Ensures that NVRAM is accessed at sensible offsets. Convert i386/nvram.c to uiomove() while there. Diff from Martin Natano, thanks! ok kettenis@, deraadt@
2016-01-07We want the first, not the last, OpenBSD partition in the MBR.Kenneth R Westerback
2016-01-03enable pchtemp(4) on i386.Daniel Dickman
ok kettenis@
2015-12-27If available prefer the rdseed instruction over rdrand when adding entropyJonathan Gray
to the kernel rng. If the rdseed source is empty fallback to rdrand as suggested by naddy. rdrand output comes from a prng that is periodically reseeded. rdseed should give us more bits of entropy. ok naddy@ djm@ deraadt@
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"