summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2007-05-15make splassert(IPL_NONE) work on i386/MP (the single-processor case isArtur Grabowski
a bit more hairy). deraadt@ ok
2007-05-15Remove the MI implementation of mutexes and remove the __HAVE_MUTEXArtur Grabowski
option. Every architecture implements mutexes now.
2007-05-15kill __HAVE_DEVICE_REGISTER by requiring all architectures to have aTheo de Raadt
device_register() function -- even if it does nothing. reduces the cpp-based blather different between architectures idea ok'd by miod; tested on all architectures (except a few miod will need to cleanup because he has them)
2007-05-14_bus_dmamap_sync() is unused; ok miodTheo de Raadt
2007-05-14SMALL_KERNEL unused bitsTheo de Raadt
2007-05-13Enable powernow on amd64 processors in the GENERIC.MP.Gordon Willem Klok
ok tedu
2007-05-11Don't use LK_CANRECURSE for the kernel lock, okay miod@ art@Pedro Martelletto
2007-05-09remove 'struct sr_attach_args' as it's now elsewhere with softraid definedTodd T. Fries
ok marco@
2007-05-09unused variableTheo de Raadt
2007-05-09only supply ldt_alloc() and ldt_free() if USER_LDTTheo de Raadt
2007-05-08backout while the amd64 puc situation is rethoughtTheo de Raadt
2007-05-08move com_activate() to where it belongsTheo de Raadt
2007-05-08put more foo_detach() routines where they are usedTheo de Raadt
2007-05-08process_s87_to_xmm() is only needed if PTRACETheo de Raadt
2007-05-08cpu_init() is only used for the MP case (for now)Theo de Raadt
2007-05-04make findblkmajor() and findblkname() MI; ok miodTheo de Raadt
2007-05-04Remove dead code.Artur Grabowski
2007-05-04Oops. Forgot to commit this part.Artur Grabowski
We need to include lock_machdep even on non-MP kernels now for rw_cas.
2007-05-04Implement rw_cas for i386.Artur Grabowski
It uses a function pointer to choose between the 386 and 486 versions. The 386 version is not MP safe, but we're not expecting MP support for 386 cpus. miod@ ok (and prodding)
2007-05-04Skip the kernel pmap when accounting for executability range changes.Artur Grabowski
This could lead to some heavy problems if called from kernel threads (which is the only way to get past the next test with the kernel pmap). From mickey. art@ toby@ ok.
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)
2007-05-03Remove the pv stealing code. Other than being dangerous, it's alsoArtur Grabowski
slightly incorrect and didn't actually do much until a week ago or so when I fixed it when doing VM_PAGE_MD. deraadt@, miod@ ok
2007-05-02Support for mtrr on AMD opteron CPUs. Patch by Mickey and bluhm@, tweaksMatthieu Herrb
by dim@, ok deraadt@ and myself. (miod@ also found it sane).
2007-05-01support exit at boot -a timeTheo de Raadt
2007-05-01Missing RCS tag.Gordon Willem Klok
2007-04-28Fix pmap_extract to not return TRUE just because we have a PTP. Make sureArtur Grabowski
that the PTP and the PTE are valid before returning success. deraadt@ ok, tested by many.
2007-04-28Remove a duplicate copyright statement.Jonathan Gray
2007-04-27Check for Control key held down when starting, and don't read boot.confTom Cosgrove
if it is. This gives a way to recover from "switching to com0" when there's no serial cable handy. Bump version numbers. A similar change will be made to amd64 boot soon. ok toby@ deraadt@
2007-04-26Eliminate CPU_BIOS from userland and wd(4) by always using the BIOSKenneth R Westerback
geometry in the disklabel when there is a BIOS geometry to provide. This removes the option to set a disklabel to 'BIOS' geometry via the 'g b' command in the editor. Makes reported geometry more consistant and moves MD code to MD land where it should be. Doc help from jmc@, Feedback from millert@, marco@, weingart@, kettenis@. ok deraadt@
2007-04-26Switch i386 pmap to VM_PAGE_MD. We store the MOD/REF flags inArtur Grabowski
pg_flags, so we actually shave quite a few bytes from the memory we eat at boot. (a machine with 1GB memory saves 256k). deraadt@, pedro@, krw@ ok. Lots of testing.
2007-04-26Add a setperf mechanism for ich speedstep controlled by SMI on certainGordon Willem Klok
parings of the Intel Pentium 3 and the ich southbridges. Written by Stefan Sperling <stsp AT tsp DOT in-berlin DOT de> based on a driver in NetBSD and sys/arch/i386/pci/ichpcib.c. Tested my mpf@ among others, ok tedu
2007-04-26enable tht so it is more available for testing.David Gwynne
2007-04-24Choose the state for a request performance level based on calculationsGordon Willem Klok
involving the number of states and not the frequencies of the states, which can lead to strange distributions of the states over the hw.setperf range (0-100). Tested by many. ok canacar, tedu
2007-04-24apic_address should be 32 bits, rather than paddr_t; prepares us forTom Cosgrove
paddr_t changing from 32 bits. From mickey's original PAE work of a year ago Tested by myself and nick@; ok art@
2007-04-24Use the physical address we have stored for the page directory ratherTom Cosgrove
than calculating it with vtophys(). From mickey's original PAE work of a year ago Tested by myself and nick@; ok art@
2007-04-21oopsTheo de Raadt
2007-04-21Introduce a smp aware hw.setperf mechanism, it will scale all CPUs orGordon Willem Klok
cores by the same amount, i.e. if you do hw.setperf=50 both cores will be scaled to the opearting state corresponing to 50%. Tested by many with est (mainly on core2duo machines like X60 thinkpads). Only enable est during GENERIC.MP build no one tested powernow. ok art@
2007-04-21developers keep killing ramdisk driversTheo de Raadt
2007-04-19When doing pmap_collect, skip wired mappings when removing.Artur Grabowski
From NetBSD, miod@ ok
2007-04-19Do the late freeing of ptps in pae pmap as well.Artur Grabowski
From mickey.
2007-04-13While splitting flags and pqflags might have been a good idea in theoryArtur Grabowski
to separate locking, on most modern machines this is not enough since operations on short types touch other short types that share the same word in memory. Merge pg_flags and pqflags again and now use atomic operations to change the flags. Also bump wire_count to an int and pg_version might go int as well, just for alignment. tested by many, many. ok miod@
2007-04-13Update install media generation to the new semantics of the -c flag.Todd C. Miller
Also replace "newfs -O" with "newfs -O 0" now that -O takes an option.
2007-04-13When freeing PTP pages, we need to wait until TLB shootdown has beenArtur Grabowski
done until we put them on the freelist and risk them being reused. If the page is reused before being shot, there's a risk that it's still in the PDE TLB and speculative execution might use data from it to load TLBs. If the page isn't zeroed anymore we risk loading bogus tlbs from it. Inspired by a similar change in NetBSD. toby@ ok, tested by many at the hackathon.
2007-04-13Move the proc0 stack below the proc0 page tables so that in case weArtur Grabowski
overflow the stack, we run into the symbol table (not critical) instead of overwriting the page tables. From mickey, ok art@, ok toby@
2007-04-13map peeing -> mappingMiod Vallat
2007-04-12Faster signal delivery on i386/MP.Artur Grabowski
We need to poke the other CPU so that it processes the AST immediately and doesn't wait for the next interrupt or syscall. Since IPIs really shouldn't process ASTs, we need to trigger a soft interrupt on the destination CPU to process the AST. But since we can't send soft interrupts to other CPUs, we send an IPI, that triggers a soft interrupt that in turn processes the AST. Also, this marks the beginning of moving to slightly better IPI mechanism of short and optimized IPIs instead of the large and complicated IPI infrastructure we're using now. tested by many, ok tholo@
2007-04-12untypoArtur Grabowski
2007-04-11Instead of managing pages for intrsafe maps in special objects (aka.Artur Grabowski
kmem_object) just so that we can remove them, just use pmap_extract to get the pages to free and simplify a lot of code to not deal with the list of intrsafe maps, intrsafe objects, etc. miod@ ok
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat