summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2012-04-22Add struct proc * argument to FRELE() and FILE_SET_MATURE() inPhilip Guenthe
anticipation of further changes to closef(). No binary change. ok krw@ miod@ deraadt@
2012-04-11The first ktrace record for a newly spawned thread is a returnMike Belopuhov
from a fork syscall done by the parent. Use __tfork, not rfork here to match the ktrace records for the parent (CALL __tfork, RET __tfork). ok guenther
2012-04-06tedu the raidframe.Joel Sing
ok deraadt@
2012-03-27fix indentationTheo de Raadt
2012-03-27only attempt to calculate bus_clock if we can't get tables from acpiJonathan Gray
2012-03-27Make the bus_clock calculations happen later in the boot process soJonathan Gray
they can be conditionally called in future. This makes the i386 speedstep code closer to the amd64 code (though still with the added complications of VIA support and the *_update_cpuspeed callbacks)
2012-03-27Implement the AMD suggested workaround for family 10h & 12h errata 721Jonathan Gray
"Processor May Incorrectly Update Stack Pointer" by setting a bit marked 'reserved' in an MSR that is only "documented" to exist on 12h. AMD claim this problem can only occur in 64-bit mode, set the workaround bit on i386 in case this isn't true and in the interest of keeping the errata in sync between i386/amd64. ok deraadt@
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2012-03-26Fix an integer math error when using the result of uvm_page_rle, andMike Larkin
at the same time increase said function's max RLE page count return value. Add hooks in the right places to call the hibernate suspend and resume routines, so that we can enable hibernation with a HIBERNATE option line in GENERIC and appropriate acpi.c goo. discussed on and off with deraadt@ over the past few months
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
2012-03-19more intel cpu models, though the low/high est method is largelyJonathan Gray
irrelevant with acpi machines
2012-03-15Take cd9660 support off the "obviously a floppy" install media, to findTheo de Raadt
new space. The same cannot be done yet with some other architectures which share the RAMDISK kernel amongst media types too tightly. I am investigating the horrific src/distrib cleanups required to fix that.
2012-03-09New vmmap implementation.Ariane van der Steldt
no oks (it is really a pain to review properly) extensively tested, I'm confident it'll be stable 'now is the time' from several icb inhabitants Diff provides: - ability to specify different allocators for different regions/maps - a simpler implementation of the current allocator - currently in compatibility mode: it will generate similar addresses as the old allocator
2012-03-09- remove a redundant note about tftpd; ok dlgJason McIntyre
- whilst here, normalise Nd
2012-03-06Add support for an SMB controller found on AMD CS5536 companion device.Mike Belopuhov
Tested on alix and soekris by benno, mpf, shadchin and myself. Loongson tests by miod. OK mpf, shadchin, kettenis
2012-02-25Add gus* at isapnp?. Last tested nine years ago but ought to still work.Miod Vallat
2012-02-19small KNF nitMark Kettenis
2012-01-31remove an unused msr readJonathan Gray
from Bryan Steele
2012-01-28do not show direct configuration exampleTheo de Raadt
2012-01-13Switch back to bootduid, however remember to include sys/systm.h...Joel Sing
2012-01-13handle m_copyback errors, this code is too sensitive for suchMike Belopuhov
failures to be neglected; ok markus
2012-01-11Backout premature use of 'bootduid', as 'rootduid' has not yet beenKenneth R Westerback
renamed.
2012-01-11Pass the DUID of the boot disk via bootduid instead of rootduid, since itJoel Sing
is the DUID that we booted from, which is not always going to be the same as the DUID that we mount root on.
2012-01-07Check that we have pstates in _PSS before calling the pstate status MSR.Jonathan Gray
While the docs say we should check a bit in cpuid this should work as well. Fixes problems related a fictitious AMD machine dreamed up by Linux KVM. Reported/tested by Walter Haidinger, diff from Bryan Steele.
2011-12-24i386 has MD TCB, so add the #define. Not sure how I overlookedPhilip Guenthe
this for so long, but fixes SEGV on errno access with librthread. Apologies to jeremy@, todd@, robert@ and others for taking so long to track this down
2011-12-24Need <machine/pcb.h> for TSEG_GSPhilip Guenthe
2011-12-04Slightly different fix for the problem fixed by the previous commit for betterMark Kettenis
diffability with the amd64 codebase.
2011-12-04Do not check for an HyperTransport bus if we are using mode #2. Prevents aMiod Vallat
safety panic from occuring. Found the hard way by nick@
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
2011-11-23properly account for the MP tramp page in the rangesTheo de Raadt
ok mlarkin
2011-11-16Reduce use of globals in hibernate code.Mike Larkin
discussed with deraadt@
2011-11-16Make userret() MI. On architectures which jammed stuff into it in theTheo de Raadt
past, pull that code out seperately. ok guenther miod
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyTheo de Raadt
by krw and myself.
2011-11-15label_t is the kernel setjmp buffer. It should simply be an array ofTheo de Raadt
the right type, noone will ever fiddle with the internals. discussed with jsing
2011-11-14ahci hibernate device selection code; not yet testedMike Larkin
This code is from deraadt@
2011-11-13Fix a handful of bugs that were causing reboots and other bad behaviorMike Larkin
during hibernate resumes.
2011-11-13If a softraid chunk is offline we are not necessarily going to have theJoel Sing
disk/partition name - in this case print the chunk number instead.
2011-11-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-11-07TLS-lite support for i386Philip Guenthe
2011-11-07Lift the copyout() from i386_get_threadbase() to sys_sysarch(), so thatPhilip Guenthe
it can be used correctly from linux_sys_get_thread_area() and tcb.h. linux_sys_set_thread_area() should use the copied in value instead of deferencing SCARG() again. i386_set_threadbase() should only update curcpu's GDT if it's being called for curproc. ok pirofti@
2011-11-06Build boot(8) for i386 in the same manner that we build boot(8) for amd64 -Joel Sing
specify a list of source files to compile, instead of building and linking against libraries. ok deraadt@
2011-11-02display AMD/extended (0x80000001) cpuid flags and remove theJonathan Gray
Cyrix 3DNOW flag from normal cpuid flags as it will show up in extended flags. ok kettenis@
2011-10-23Remove comment; the question can be answerd affirmative. Fix a coding styleMark Kettenis
nit while I'm there.
2011-10-21Add bounds checks for access to mp_busses. Also make sure that we don'tMark Kettenis
accidentally use ISA or EISA interrupt mappings on PCI busses. ok jsg@
2011-10-13I'm sick and tired of people doing misalgned reads and writes to PCI configMark Kettenis
space and not noticing because they only test on amd64. So enforce alignment there as well, at least for a little while such that we find those bugs and force people to fix them.
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-10add tlphy everywhere tl is enabledJonathan Gray
pointed out by Loganaden Velvindron/brad
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-22KNF of mlarkin's code, requested by him. Some improvements to the interfaceTheo de Raadt
for talking to the disk driver snuck in. ok mlarkin