summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2002-10-17convert to use vm_page_md instead of pmap_physseg, make code smaller and ↵Michael Shalayeff
simpler, indeed; after art's suggestion and by looking into his diffs oneyed
2002-10-15a few missing options and pseudo-devs, noticed by miod@ and dhartmei@Michael Shalayeff
2002-10-15missing initmsgbuf(), noticed by miod@Michael Shalayeff
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-14Use uvm_km_valloc_prefer_wait instead of doing the same thing manually.Artur Grabowski
<miod> well, my comments are "looks sane, works for me, ok to commit"
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-13track the end of physmem for use in dmmem_allocMichael Shalayeff
2002-10-13split the scp/iscp/scb between the cache lines, make the leds blink betterMichael Shalayeff
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Last bits of diff generated by Chris Kuethe.
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-10-10protect against multiple inclusion; pointed out by naddy, miod okPeter Valchev
2002-10-09pretty printTheo de Raadt
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-07also s/_PSW/_PSL/Michael Shalayeff
2002-10-07s/PSW_/PSL_/ to match other archsMichael Shalayeff
2002-10-07proper terminate the user stack on signalMichael Shalayeff
2002-10-07on implementations w/ fpu included unimplemented instructionsMichael Shalayeff
are signaled through the exception trap w/ invalid opcode marked instruction in the exception registers, not through the emulation trap (as long as the fpu is enabled, of course). parse emulation from the exception trap as well as the emulation trap and fix the dispatcher into usable condition. parse invalid op exception on trap and signal the user appropriately. reset the exception on exec and for child on fork. the later is appropriate since exceptions are delayed until next fpu instruction, which was in the parent indeed, let him get it. save parent's fpu context on fork before cipying it, if the parent owned the fpu.
2002-10-07Improved workaround for cardbus support on macppc. This allows mappings toDale Rahn
be put in the cardbus register which really work instead of crashing the machine. if_dc @cardbus now works, xl@cardbus will configure, but does not work properly (endian?) wdc should work fine, but has not been tested recently.
2002-10-06No more need to initialize the result list before uvm_pglistalloc.Artur Grabowski
2002-10-06Declare nbuf just like all other architectures.Artur Grabowski
2002-10-06Garbage collect __HAVE_SPLASSERT. It wasn't necessary.Artur Grabowski
2002-10-05spelling.Federico G. Schwindt
2002-10-04Aasking to load an already loaded map is not a "warn and pray" kinda thing.Jason Wright
2002-10-01need fpemu for the geckoMichael Shalayeff
2002-10-01a few missing generic devicesMichael Shalayeff
2002-10-01Do not enable the code that makes use of the vertical retrace interruptMiod Vallat
to update the colormap, as it causes _some_ machines to freeze solid; could not be reproduced here, thanks to Thomas Koellmann (koellmann at gmx dot net) for reporting this problem and testing this change. ok deraadt@
2002-10-01If the framebuffer is being run in 32bit mode, register a shutdown_hookMiod Vallat
to bring it in a prom-friendly mode upon halting the system, like the other > 8 bit framebuffers do.
2002-09-30Evil, evil, evil typo broke innocent ramdisks. Die!Miod Vallat
2002-09-28Add support for OS defined halt action on Pele and Spitfire.Hugh Graham
Testing by Brandon Creighton and Jim Uhl.
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-23Fix console determination; based on discussion in port-sparc64@netbsdJason Wright
2002-09-23Get the wsdisplay capabilities from rasops, rather than attempting toMiod Vallat
guess them at compile-time. Plus this makes cgtwelve a bit more clean. ok fgs@ deraadt@
2002-09-23parisc level 0x10 is just an overclocked 0xeMichael Shalayeff
2002-09-23make the leds blink (on those machines where we have 'em).Michael Shalayeff
simple logic is to light up the led in the intrhook and dim in the heartbeat always, makes a believable impression. upper four bits represent a cpu usage w/in the last Hz/8 made up from the cp_time[] times.
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-23panic if out of kvm when mapping devices. ok deraadt@Dale Rahn
2002-09-23Print pci_addr_fixup info when debugging is enabled, not disabled, ok deraadt@Dale Rahn
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-23Link the kernel so that it gets only one load section.Artur Grabowski
2002-09-21Add support for OS defined halt action on Cheetah and Omega.Hugh Graham
Should also work on Legacy, but tester hasn't reported back yet...
2002-09-20this should have a cd@scsi on itMichael Shalayeff
2002-09-20kill dangling space, line and a space in the tabMichael Shalayeff
2002-09-20flush cpu state on read/write fpregs, force reload on writeMichael Shalayeff
2002-09-20gonna need cr10, aka ccr from the trapframeMichael Shalayeff
2002-09-20Support to run the 24 bit fb in 8 bit mode or cg12 in 1 bit modeFederico G. Schwindt
via flags, using 0x0001. miod@ ok.
2002-09-18Don't forget to map the prom executable. Otherwise we'll have troubleArtur Grabowski
starting X after the prom has been bumped from the iTLB. matthieu@ jason@ ok.
2002-09-18From NetBSD and in line with recent local changes:Hugh Graham
: date: 2002/09/13 03:00:18; author: chuck; state: Exp; lines: +3 -3 : increase sc_maxxfer from 63K to 64K. otherwise fsck fails for : file systems with larger block sizes.