summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2016-07-28Store the acpi processor ID/UID in struct cpu_info, and use it to attachMark Kettenis
acpicpu(4) drivers to the right cpu(4). ok mlarkin@, guenther@
2016-07-28replace hand rolled physlock with real rwlock. ok mlarkinTed Unangst
2016-07-16remove some 12 year old code that was never correct, and never compiledMike Larkin
anyway due to a missing #include. the code was originally intended to handle i386 SMP EISA machines with an IOAPIC. Since the code never was compiled, and nobody has noticed or complained for 12 years, I think things are probably fine.
2016-07-16remove some unused #includesMike Larkin
2016-07-04DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSPhilip Guenther
contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
2016-06-28Enable UMIP feature if present. miod originally pointed this out to me.Mike Larkin
ok deraadt@
2016-06-28enable ure(4) where we already have url(4)Jonathan Matthew
2016-06-22Identify UMIP feature, if available.Mike Larkin
ok millert, kettenis, deraadt
2016-06-15Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)Gerhard Roth
The umb(4) driver provides support for USB MBIM devices. Those devices establish connections via celluar networks such as GPRS, UMTS, and LTE. ok mpi@ sthen@ additional feedback from deraadt@ jmc@ stsp@ kettenis@
2016-06-10fix some typos in commentsJoshua Stein
from Tom Cosgrove
2016-06-08remove obsolete raid from namtoblk tables. from Artturi AlmTed Unangst
2016-06-07consistently set ipls on pmap pools.David Gwynne
this is a step toward making ipls unconditionaly on pools. ok deraadt@ kettenis@
2016-06-05Use the new input functions of wsmouse in mouse and touchscreen drivers.Ulf Brosziewski
ok stsp@ kettenis@
2016-06-01Enable utvfu(4) everywhere where uvideo(4) is also enabled.Marcus Glocker
suggested by mpi
2016-05-28crank version numbers of those bootloaders that have been changed byStuart Henderson
the com_init fix. ok beck deraadt
2016-05-27Modify com_init to match the com driver initializaiton, and addBob Beck
a short delay so that baud rate changes on the console have a chance of working. Lots of help from theo on this one. Makes my serial console on my APU work for an unattended reboot instead of hanging when garbage is echoed to the tty. ok deraadt@
2016-05-24remove some ancient debugging codeMike Larkin
ok deraadt@
2016-05-23Place a cpu-dependent trap/illegal instruction over the remainder of theTheo de Raadt
sigtramp page, so that it will generate a nice kernel fault if touched. While here, move most of the sigtramps to the .rodata segment, because they are not executed in the kernel. Also some preparation for sliding the actual sigtramp forward (will need some gdb changes) ok mlarkin kettenis
2016-05-21hand-massage sendsig() and sys_sigreturn() to be much more similarTheo de Raadt
2016-05-20split the ACPI resume trampoline into code and data pages, and protectMike Larkin
with proper permissions. Same treatment was done on amd64 last year, i386 is catching up. This diff has been in snaps for a few days, no regressions reported. ok deraadt@
2016-05-18Split i386 mp hatch trampoline into code and data pages, and protect eachMike Larkin
with proper W^X policy. The same thing was done for amd64 late last year, catching i386 up now. Diff has been in snaps for a few days with no reported fallout. ok deraadt@
2016-05-16fix perms (previous cleanup commit introduced part of an unrelated change)Mike Larkin
2016-05-16spaces -> tabsMike Larkin
2016-05-16Use int3 padding instead of nop in the ACPI resume trampoline, as it isMike Larkin
certain no intentional nop sled is required here. ok deraadt@
2016-05-10SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookieTheo de Raadt
inside the sigcontext. sigreturn(2) checks syscall entry was from the exact PC addr in the (per-process ASLR) sigtramp, verifies the cookie, and clears it to prevent sigcontext reuse. not yet tested on landisk, sparc, *88k, socppc. ok kettenis
2016-05-07Stop printing the "ioapic0: misconfigured as apic..." messages. BasicallyMark Kettenis
all modern machines are "misconfigured". We simply have to configure them and it is pointless to complain.
2016-05-04Initial support for MSI-X. Only supported on amd64 for now. I have diffs toMark Kettenis
actually use this in em(4) and xhci(4), but I'm not committing those yet because we almost certainly need to save and restore the MSI-X registers during suspend/resume. However, this allows mpi@ to play with multiple-vector support in networking hardware. Requested by mpi@ ok mlarkin@, mikeb@
2016-05-03Revert previous commit. Calling sched_init_cpu() fromMark Kettenis
cpu_boot_secondary_processors() break suspend/resume.
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@