summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2003-06-24a.out emulation for dynamic binaries: intercept the right system callsMarc Espie
so that they look in /emul/a.out first. This allows a.out's ld.so to find its own libraries without interfering with ELF at all. Many comments from various people. okay deraadt@
2003-06-08Enable gus again now that it won't panic during probe.Miod Vallat
2003-06-06- section reorderJason McIntyre
- new sentence, new line - some macro fixes
2003-06-06Identify Pentium M CPUAndreas Gunnarsson
Recognize more feature flags deraadt@ ok
2003-06-043/4 cleanup for aaronTheo de Raadt
2003-06-04fix some 3/4 for tobyTheo de Raadt
2003-06-04more term 3 & 4 from various developers, with permission of courseTheo de Raadt
2003-06-03remove some term 3 & 4 for niklasTheo de Raadt
2003-06-03three four killsMichael Shalayeff
2003-06-03three four killMichael Shalayeff
2003-06-03fix tree after mickey breakageTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02add length checks on bus_dmamap_load_uio() on the total length vs. what theJason Wright
map is expecting. Also, sparc64 was missing the equivalent check in _load_mbuf() and the "make sure no valid mappings are returned" goop.
2003-06-01strcpy/strcat/sprintf removal in all bootblocks. various testing byTheo de Raadt
various people. outside of some messy things in src/gnu, only one thing in the main tree now violates this rule: bind
2003-06-01Revert ep0 removal, deraadt@ objects.Miod Vallat
2003-05-31It makes no sense to defineMiod Vallat
ep0 at foobus? ep* at foobus? for up to three different buses. Just get rid of the ep0 entry. To be fair, config(8) ought to complain for such a syntax - hard coded device number should be unique.
2003-05-31Unpeeing as pointed out by Dries Schellekens.Tobias Weingartner
ok miod@
2003-05-31First lba support in /boot. Not complete lba boot support, but it's theTobias Weingartner
first step on the way there. Ok deraadt@, espie@, todd@, and others.
2003-05-27change .byte for the correct opcodes now that gas can handle'em.Federico G. Schwindt
art@ toby@ ok.
2003-05-26pmap_protect strikes again.Artur Grabowski
Not only do we have to think about PROT_EXEC while dealing with it, but we also have to think about wiring. sigh. We'll have to fix this with an API change. fixes the mlockall problem.
2003-05-26cleanup, value paranoia, elaborate on some commentsTed Unangst
2003-05-25how did i miss this one? thanks Wouter ClarieTed Unangst
2003-05-23move swapgeneric to truly generic code. tested on many archs by miod and ↵Ted Unangst
mickey.
2003-05-23Do all unlocks before exit from pmap_enter().Mike Pechkin
deraadt@, drahn@ OK
2003-05-20Add it(4)Alexander Yurchenko
2003-05-20Make the ddb trace command recognize elfish namesAndreas Gunnarsson
niklas@ OK
2003-05-20an@isapnp w/ the isa card millert gave me shitloads of metric ages agoMichael Shalayeff
2003-05-20option NTFS, disabled atmTed Unangst
2003-05-20flags for auichTed Unangst
2003-05-18match on Intel 82440MX PCI-ISA which misidentifies itself.Henning Brauer
2003-05-18Add 'machine sysregs' command to ddb for 1386; show idtr, gdtr, ldtr, trAndreas Gunnarsson
and cr0-ct4 OK by niklas@ and more or less by ho@
2003-05-14remove option LONGRUN; it's in everything but SMALL_KERNEL nowTed Unangst
2003-05-14Support for Transmeta CPU power management, called LongRun.Ted Unangst
option LONGRUN enables a new sysctl, allowing a userland program to read the current CPU frequency and voltage and also set the mininum and maximum frequencies to operate between, and switch between performance mode and battery mode. ok mickey@
2003-05-14em* is starting to show up on lots of machines. for next release,Theo de Raadt
let us make sure it fits.
2003-05-14add {b,c}devsw_lookup convenience functions.Ted Unangst
move chrtoblk and blktochr into MI code. tested on several archs and ok deraadt@
2003-05-13Add option NO_PROPOLICE, which explicitely disables the use of the propoliceMiod Vallat
stack protection when building kernels. Intended to be used on installation media, with tight space constraints - currently, only added where SMALL_KERNEL was already defined. Not thoroughly tested, but requested by deraadt.
2003-05-13remove -fno-stack-protector (enable propolice)Ted Unangst
ok deraadt@
2003-05-13The current solution to handle the protection fault trap is notArtur Grabowski
correct. It breaks down if we're trying to jump through a function pointer. The protection fault trap on i386 must be one of the most braindead traps ever invented in the history of humankind. It doesn't give you any information about what went wrong except the instruction that faulted. Since the problem we're trying to deal with is a segmentation problem, we don't get the desitination that we want to jump to, we just get the instruction and we won't add a disassembler to trap handling just to try to figure out what went wrong. What we want to do is to handle this as a normal fault to let noexec accounting in pmap_enter deal with the changes to the code segment. Unfortunately that's impossible. We don't know the faulting address, so we need to change how the exec accounting works. Basically the code segment must already cover the address we want to execute before we can fault it in. New scheme: o Start with conservative code segment. o If we get a protection fault, go through all mappings in the process and find the highest executable mapping, fix up the code segment and record that address. If the code segment didn't change, the protection fault wasn't fixable - just die. o If the highest executable mapping is removed, just reset the code segment to something conservative and let the next protection fault deal with it. We can't read all the vm mappings of the process from the pmap because of locking hell. This should allow floating code segment whenever someone implements that. Also, fix the pmap_protect function to behave more like the other pmaps we have and be slightly more agressive to force more proper protection changes. ok:ed by various people.
2003-05-09Map page tables non-exec.Artur Grabowski
deraadt@ ok.
2003-05-08EXAMPLE -> EXAMPLES in .Sh section, as per mdoc template.Jason McIntyre
crunch stuff still needs a bit of work.
2003-05-05Move exec base to 0x1c000000, exe/data gap to 512MB. Allows betterDale Rahn
interleave of exe/shared libs. Raise MAXDSIZ back to 1G. This change REQUIRES a binary update on i386.
2003-05-04mop-mop squeek-squeekMichael Shalayeff
2003-05-04snprintfTheo de Raadt
2003-05-04Set code segment register according to nxpages, copied from machdep.cDale Rahn
2003-05-04When a protection fault occurs, force %cr2 to contain the pc asDale Rahn
the fault address.
2003-05-04string cleaning. ok deraadt@Ted Unangst
2003-05-02when flipping the code descriptors also update cs in theMichael Shalayeff
tss and not only in the frame since we might be returning that way too. add a heuristic for detecting an exec protection fault: iff we get a read protection fault (which we normally never get due to our segments being always readable) we assume that it was an exec protection indeed and go to page fault routine which will decide the rest for us (including sending a signal should that be needed). problem found by drahn@ and testing by many ppl.
2003-04-30from netbsd:Michael Shalayeff
The AMD-K5 Model 0 gets the PGE bit in the CPU features word wrong using the APIC bit instead, according to the AMD Processor Recognition App. Note. Add a fixup routine to patch up cpu_feature in this case. XXX Need a way to kick the pmap to enable pmap_pg_g -- look at how the MP branch deals with this.
2003-04-27strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.Hakan Olsson
2003-04-26managment -> management;Jason McIntyre
ok mickey@