summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2002-11-08prepare for bktr on macppc (commented out in generic for now); drahn@ okMichael Shalayeff
2002-11-07dev/isa/i82365_isasubr.c is needed for pcic at pci; from Bernard Gardner via ↵Michael Shalayeff
pr2962
2002-10-29Remove some unused globlsArtur Grabowski
2002-10-23Add a trivial va_copy() macro to all architectures but powerpcTodd C. Miller
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
2002-10-14Fix from FreeBSD for atlhon problems with mtrr and XFree86. Ok deraadt@Matthieu Herrb
FreeBSD commit messages say: Some BIOSs are using MTRR values that are only documented under NDA to control the mapping of things like the ACPI and APM into memory. The problem is that starting X changes these values, so if something was using the bits of BIOS mapped into memory (say ACPI or APM), then next time they access this memory the machine would hang. This patch refuse to change MTRR values it doesn't understand, unless a new "force" option is given. This means X doesn't change them by accident but someone can override that if they really want to. PR: 28418 Tested by: Christopher Masto <chris at netmonger dot net>, David Bushong <david at bushong dot net>, Santos <casd at myrealbox dot com> Make the MTRR code a bit more defensive - this should help people trying to run X on some Athlon systems where the BIOS does odd things (mines an ASUS A7A266, but it seems to also help on other systems). Here's a description of the problem and my fix: The problem with the old MTRR code is that it only expects to find documented values in the bytes of MTRR registers. To convert the MTRR byte into a FreeBSD "Memory Range Type" (mrt) it uses the byte value and looks it up in an array. If the value is not in range then the mrt value ends up containing random junk. This isn't an immediate problem. The mrt value is only used later when rewriting the MTRR registers. When we finally go to write a value back again, the function i686_mtrrtype() searches for the junk value and returns -1 when it fails to find it. This is converted to a byte (0xff) and written back to the register, causing a GPF as 0xff is an illegal value for a MTRR byte. To work around this problem I've added a new mrt flag MDF_UNKNOWN. We set this when we read a MTRR byte which we do not understand. If we try to convert a MDF_UNKNOWN back into a MTRR value, then the new function, i686_mrt2mtrr, just returns the old value of the MTRR byte. This leaves the memory range type unchanged. I have seen one side effect of the fix, which is that ACPI calls after X has been run seem to hang my machine. As running X would previously panic the machine, this is still an improvement ;-) PR: 28418, 25958 Tested by: jkh, Christopher Masto <chris at netmonger dot net>
2002-10-13better USER_LDT comment; originally suggested by seb@todesplanet.de; ok deraadtPeter Valchev
2002-10-13Remove more '\n's from panic() statements. From Chris Kuethe.Kenneth R Westerback
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-10-07this removes the functionality of adding allocatedMichael Shalayeff
pages into the queue already containing allocated pages. breaks i386:setup_buffers() because of this.
2002-10-06No more need to initialize the result list before uvm_pglistalloc.Artur Grabowski
2002-10-06Garbage collect __HAVE_SPLASSERT. It wasn't necessary.Artur Grabowski
2002-09-26renable sppp and lmc, now freeTheo de Raadt
2002-09-24Get rid of gx(4) and use em(4) since it supports more cards and works betterNathan Binkert
overall.
2002-09-24Restore pentium_microtime, testing by henning@, millert@. ok deraadt@Thomas Nordin
2002-09-23turn off sppp, lmc, and cz until various licenses on those components areTheo de Raadt
resolved. sorry -- i've been warning people for some time that i would start to take this stance.
2002-09-23For serverworks chipsets: instead of trying to prevent attaching the same busNathan Binkert
multiple times by restricting matches based on device id and revision, keep track of the bus numbers that were attached, and don't reattach them a second time. ok deraadt
2002-09-16It's more convinient to spell convinient as ``convenient'', actually.Miod Vallat
2002-09-12Change the PMAP_PAGEIDLEZERO api to take the struct vm_page instead of the pa.Artur Grabowski
2002-09-11Some early callers of pmap_growkernel call it before vm_page structuresArtur Grabowski
are initialized. So we can't to PHYS_TO_VM_PAGE becuase there are no vm_pages. Reintroduce the old pmap_zero_page renamed to pmap_zero_phys that can zero pages without struct vm_page.
2002-09-10Change the pmap_zero_page and pmap_copy_page API to take the struct vm_page *Artur Grabowski
instead of the pa. Most callers already had it handy and those who didn't only called it for managed pages and were outside time-critical code. This will allow us to make those functions clean and fast on sparc and sparc64 letting us to avoid unnecessary cache flushes. deraadt@ miod@ drahn@ ok.
2002-09-03add aic@isapnp, commented out, except for _cdMichael Shalayeff
2002-09-03aic at isapnp, from anders@Arnholm.nu w/ fixes from meMichael Shalayeff
2002-08-28update of radiotrack driver, including isapnp support; from jumbo@Michael Shalayeff
2002-08-28ancient file name in .file; from pbastos@rdc.puc-rio.brMichael Shalayeff
2002-08-22match more serverworks "double bridges", based on discussions with nate andTheo de Raadt
brad
2002-08-09Add an explicit dependancy of assym.h to Makefile.Miod Vallat
This makes sure it will be regenerated if you run config(8) again.
2002-08-05the supported agp chipset list is md-configured, not miMichael Shalayeff
2002-08-02prevent integer overflow by verifying that ua.num is not too large.Nathan Binkert
ok niels, millert, art
2002-07-31Remove mickey's debugging printf goop.Aaron Campbell
2002-07-31support for changing stack execution protection through mprotect()Michael Shalayeff
by emulating the page execution protection bit and accounting for pages mapped executable on the stack and swapping the global user code descriptors for the process accordingly. this is tested w/ the regress test and art@ looked over it. there is still a mistery how executable mappings on fault works on i386 since no prot_exec faults ever happen.
2002-07-30Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable.Todd C. Miller
The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK
2002-07-24use properly sized regs for the prefix, only matters w/ picky binutils, old ↵Michael Shalayeff
gas knows what to do; it's a ddb prettiness anyway
2002-07-24spacesTheo de Raadt
2002-07-24limit user code up to below the user stack, making stack addresses, ↵Michael Shalayeff
effectively, unexecutable. signal trampoline is mapped elesewhere now, 10x to art@
2002-07-23Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and otherDale Rahn
portions of the tree.
2002-07-23Define __HAVE_SPLASSERT on architectures that support splassert.Artur Grabowski
2002-07-20Instead of copying out the signal trampoline on top of the stack, createArtur Grabowski
an uvm aobj, copy out the signal trampoline into it and share that page among all processes for the same emulation. This also requires us to actually be able to tell signal code where the trampoline is located, so introduce a new field in struct proc - p_sigcode that is a pointer to sigcode. This allows us to remove all the ugly calculations of the signal trampoline address done in every sendsig function in the tree (that's why so many files are changed). Tested by various people. ok deraadt@
2002-07-20Add flags 0x00 to fdFederico G. Schwindt
2002-07-19do not use broken tsc on geode and broken latch on ns geodes; testing by markus@Michael Shalayeff
2002-07-19Define an IPL_VM and mark IPL_IMP as "not to be used".Artur Grabowski
2002-07-15repair tags building (due to obj dirs in /sys)Michael Shalayeff
2002-07-12enable radio on bktr and fms, drivers are already thereMichael Shalayeff
2002-07-12check upon the pir length prior to using it, ignore short tables; from ↵Michael Shalayeff
henric@attbi.com
2002-07-12turn on the pciagp option, per theo's requestMichael Shalayeff
2002-07-12pciagp optionMichael Shalayeff
2002-07-12support for the agp gart on various agp chipsets.Michael Shalayeff
only i810 driver was tested though. based on the netbsd's lkm, initially ported by hunter@dg.net.ua and later made into shape by mickey. testing by art@ and millert@ .
2002-07-10proper cdev_decl(crypto) and no private protosMichael Shalayeff
2002-07-10proper cdev_decl(ksyms), fix ksyms's broken functionsMichael Shalayeff
2002-07-10proper cdev_decl(gpr)Michael Shalayeff
2002-07-09Add udsbr and comment it out until it is testedNathan Binkert