summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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.
2006-12-24Check for want_resched when processing AST and nowhere else. But then, whenMiod Vallat
doing so, do not check for signals - userret() will do this.
2006-12-23do not mix & and || badlyTheo de Raadt
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-12-22A more complete fix for perf status MSR's (on e.g. Core 2 Duo X6800),Dimitry Andric
that specify equal highest and lowest clock ratios. EST is now silently disabled on these, as was already done for lowest clock ratios that are zero (on e.g. a bunch of Pentium 4's). Other weird MSR's are still reported, because we first want to know about them, before we decide how to handle them.
2006-12-21Quick fix for Core 2 Duo X6800, which reports an invalid setperf MSR,Dimitry Andric
with the same high and low speed, leading to a divide by zero error. A more complete fix will be committed later. Do it now, deraadt@
2006-12-20Don't bail out on a bad interrupt line if we have a valid apic interrupt pinMark Kettenis
for a pci device.
2006-12-20"#ifdef is a tool of the weak!"Gordon Willem Klok
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
2006-12-20acpi fits, when we trade it primarily for the very large rtw(4) driver.Theo de Raadt
this product is relatively rare, and way more laptops will need acpi than need the rtw driver