summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
2007-03-19Move i386 to timecounters. This is more or less the same code as amd64.Artur Grabowski
The "lapic" timer is ripped out since it wasn't actually a lapic timer, but a hacked up tsc timer with some synchronization for MP. There is no tsc timer right now since they are very unreliable on MP systems, systems with apm, and systems that change the cpu clock. Which basically means every modern machine out there. We're running with the i8259 timer now. deraadt@ ok
2007-03-19typo fixes; didickman@gmailTheo de Raadt
2007-03-19Add a new device that provides a framework for IO manipulation. A very basicMarco Peereboom
implementation of a RAID 1 is included in this but it does not deal with failures yet. Disabled in GENERIC. Suggestions from and ok beck@ miod@ krw@ dlg@ deraadt@
2007-03-18do not steal page table pages on page allocation failure -- it can be dealt ↵Michael Shalayeff
w/ in a more simple way as other archs do; art@ ok
2007-03-17we do not want uts(4) enabled until we have proper calibrationRobert Nagy
support, so revert my previous commit
2007-03-16enable uts(4)Robert Nagy
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-03-13tlb shootdown in pmap_change_attrs was shooting the wrong va.Artur Grabowski
"yes man" mickey@ (I think that meant 'ok').
2007-02-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.
2007-02-27call_apm should be 64 bit.Marco Peereboom
ok art
2007-02-24Remove unused B_DIRTY, B_PAGET, B_PGIN, B_TAPE and B_UAREA b_flags values.Miod Vallat
2007-02-22Revert my previous commit. Kettenis no likey.Marco Peereboom
2007-02-22Print base so that we can make a correct mapping between apic and irq.Marco Peereboom
ok jordan
2007-02-21part missed in PAE revert: ptoa() paddr_t size is no longer printedTheo de Raadt
with %llu; ok miod
2007-02-20Revert PAE pmap for now, until the strange bug is found. This stopsTom Cosgrove
the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
2007-02-20Remove duplicate entry.Tom Cosgrove
ok miod@
2007-02-19Put warning about shared IPL interrupts under MPVERBOSE and don't talk aboutMark Kettenis
degraded performance. requested by deraadt@
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-19Remove unused variable lapic_timerTom Cosgrove
ok art@
2007-02-18If no MBR partitions are found when spoofing a disklabel, try lookingKenneth R Westerback
for a bare FAT12/16/32 filesystem. If one is found, spoof it as 'i'. This enables iPod shuffles and other umass devices that are shipped with a bare FAT32 filesystem to be used as install media. And generally makes things easier for the user just trying to mount some media, e.g. floppies. Does not make it safe to write a disklabel or MBR on such a device! That will still obliterate the FAT filesystem. Help and suggestions from tom@ and deraadt@. Feedback and suggestions for future enhancements from espie@ mickey@ and peter@. ok tom@ deraadt@
2007-02-17Add SMALL_KERNEL throught acpi to make it fit on boot media.Marco Peereboom
ok deraadt
2007-02-17Bring in the AMD errata checks from amd64.Tom Cosgrove
Changes to either copy of amd64errata.c must be replicated in the other. ok deraadt@
2007-02-17To squeeze new stuff onto onto the very full boot floppies, occasionallyTheo de Raadt
some drivers for ancient devices must die. To modify one of my favorite quotes into this particular context: The total amount of suffering per year [on a boot floppy] is beyond all decent contemplation. During the minute that it takes me to compose this sentence, [a few device drivers] are being [deleted], many others are running for their lives, whimpering with fear, others are being slowly devoured from within by rasping parasites, thousands of all kinds are dying of starvation, thirst and disease. It must be so. If there is ever a time of [sufficient space], this very fact will automatically lead to an increase in [driver] population until the natural state of starvation and misery is restored. - cribbed from Richard Dawkins "God's Utility Function", Scientific American, November 1995 Of course, these drivers remain on the CD boot media, so there is a solution for the truly desperate legacy addicts.
2007-02-15break into ddb right from comintr() w/o softtty (same as com(4) does); miod@ okMichael Shalayeff
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-13Zap unused local acpi_attached variable, since it has been supersededDimitry Andric
by acpi_hasprocfvs. ok gwk
2007-02-13Check for xTPR result of CPUID.Jonathan Gray
ok tom@
2007-02-12OpenBSD -> .OxJason McIntyre
> -> \*(Gt
2007-02-12Enable the AES acceleration. Won't be picked up for IPsec, since weTom Cosgrove
don't support the other required operations in the driver, but will be used by OpenSSL. ok deraadt@
2007-02-09Don't both reloading the CPL into %eax before pushing it onto the stack,Tom Cosgrove
since it's already in %ebx. (And %eax is reloaded immediately after the push, so CPL not needed in %eax.) Saves one load every interrupt. ok dim@, gwk@
2007-02-06define the bio(4) cdev stuff in conf.h, rather than having a per machineDavid Gwynne
definition. switch amd64 and i386 to the conf.h version, and add it to macppc. original diff ok gwk@ tweaks and ok miod@
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-04Add zyd to cd ramdisksJonathan Gray
ok deraadt@
2007-02-03Don't spoof an msdosfs partition if it claims to start after the endKenneth R Westerback
of the disk. Fixes the creation of spurious 'i' partitions on new iPod Shuffle. And other devices with no MBR, just a FAT32 filesystem. Pointed out most recently by Stephan A. Rickauer for his sixth generation, clip-on iPod shuffle. Fix tested by Stephan. ok pedro@ tom@ miod@ 'nice' deraadt@
2007-02-03Remove unused functionality from lockmgr():Miod Vallat
- LK_EXCLUPGRADE is never used. - LK_REENABLE is never used. - LK_SETRECURSE is never used. Because of this, the lk_recurselevel field is always zero, so it can be removed to. - the spinlock version (and LK_SPIN) is never used, since it was decided to use different locking structure for MP-safe protection. Tested by many
2007-01-31Introduce acpi_hasprocfvs thats "ACPI Has Processor Frequency and VoltageGordon Willem Klok
Scalling" a global flag set by acicpu attach to indicate that ACPI is handling fvs through the _PSS objects. This will fix disappearing EST/powernow when booting kernels with acpi enabled, as acpicpu isnt compiled into GENERIC yet. Also in cases where acpicpu is built in and legacy EST/powernow work but acpi is missing the _PSS object, the legacy routines will be used. tested by dim@, and Nick Nauwelaerts <nick AT nauwelaerts.net> ok marco@, dim@
2007-01-27Only allow a single instance of acpimadt(4).Mark Kettenis
2007-01-23Handle not-all-lapics intterupts.Mark Kettenis
2007-01-22Add commented out acpidock(4) entry.Michael Knudsen
Reminded by marco.
2007-01-19Update comment (on how long we wait for operation to complete) reflectTom Cosgrove
reality, and remove the maxpolls stuff at the same time. Still disabled in-tree.
2007-01-18No longer print the 'bios id' field in the dmesg, its of dubious diagnosticGordon Willem Klok
value and changes with acpi versus non acpi kernels. ok deraadt@ tom@
2007-01-10fix fallout of the split sensor devices change which caused lockups onDavid Gwynne
boot. dont call sensordev_install multiple times for esm0. there are multiple devices accessed via the one esm interface that provide sensor info for various parts of the system. sensordev_install was being called after each of these parts was being probed, rather than right at the end after the entire list of sensors has been built. tested by kurt@
2007-01-09Miod used a too large hatchet when trimming userret in 1.80.Artur Grabowski
Restore user priority before returning to userland. (other architectures checked and seem to do the right thing) miod@ ok
2007-01-02Use bus_space_write_region_4() instead of doing the same thing bit byTom Cosgrove
bit (well, uint32 by uint32). Inspired by a claudio commit to malo.c. Still disabled (awaiting a code review), but works for me here. ok claudio@
2007-01-02Fix the keyboard problem seen on Intel Macs, where only the firstTom Cosgrove
keypress is seen by boot. It appears that on the Intel Mac, we have to issue the "check for keystroke" BIOS call before the "get keystroke" call will get it (unlike any other BIOS I have seen in over 20 years). It would not have been possible to fix this problem without the donation from Steven N. Fettig (steve (at) anywheretechnology.com); many thanks. Bump versions of boot, cdboot and pxeboot accordingly. Testing kettenis@, otto@, and others; ok weingart@.
2006-12-29Avoid void * arithmetic, okay deraadt@, suggestions from millert@Pedro Martelletto
2006-12-29Change the comment for mbg(4): Use "radio clocks" instead of "time base".Marc Balmer
ok fkr
2006-12-28Support for ST16C654 chips, however these aren't detected as such, so theMiod Vallat
attachment code has to know better for now; from Alexei G. Malinin (alexei.malinin@inetcomm.ru)
2006-12-26There is a single 'p', not a double, in 'triple'.Tom Cosgrove
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.