summaryrefslogtreecommitdiff
path: root/sys/arch/i386
AgeCommit message (Collapse)Author
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
2006-12-20acpi (disabled) fits... when we trade it for the rarely used i2o controllers,Theo de Raadt
wi(4) [this is a server-style install media], and eisa bus support.
2006-12-20acpi (disabled) just happens to fitTheo de Raadt
2006-12-20rum fitsTheo de Raadt
2006-12-18Activate mbg(4).Marc Balmer
ok deraadt
2006-12-15acpi can fit onto the cd ramdisksTheo de Raadt
2006-12-14Make pci subsystem aware of domains. Each host bridge gets assigned a uniqueMark Kettenis
domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
2006-12-12Complete gwk's previous patch to stop setperf methods from returningDimitry Andric
errors to userland: make all cpu_setperf functions return void. Tested by many, ok gwk@
2006-12-11Ensure kvm86_call actually saves the curpcb instead of junk. ErrorGordon Willem Klok
introduced by myself at h2k6, thanks mickey@ and toby@ for turning me in the direction of a corrupt PCB.
2006-12-11do not bus_space_map devices which are at address 0; ok kettenisTheo de Raadt
2006-12-11On i386, swizzle interrupts for devices for which we don't have explicitMark Kettenis
inetrrupt routing information. ok deraadt@
2006-12-09Like the earlier change to powernow-k7.c check for both the regular cpuidGordon Willem Klok
signature AND the AMD extended cpuid 0x800000001 (%eax). Tested by, krw@, Joerg Niendorf <joerg.bsd AT internode.net.au> and steven mestdagh <steven.mestdagh AT esat.kuleuven.be> ok dim@
2006-12-08Fix kernel link warning on i386 about boothowto being overridden, byDimitry Andric
removing the second definition from locore. To prevent locore from subsequently clobbering boothowto, remove clearing bss from it. The bootloader has already taken care of this. ok miod weingart deraadt
2006-11-30Oops, didn't mean to increase the default msgbufsize for i386. Noticed by ↵Dimitry Andric
brad, thanks.
2006-11-30Remove the macros SET_CURPCB, GET_CURPCB and GET_CPUINFO, they are only usedGordon Willem Klok
in a few places, and the MP version of GET_CPUINFO is broken. No regression in GENERIC, however GENERIC.MP still has issues.
2006-11-29Nuke all commons but one, and enable --warn-common in LINKFLAGS.Miod Vallat
2006-11-29Remove all the extern cpu_{id,model,whatever} declarations from mostDimitry Andric
stuff in arch/i386/i386. This should prevent more screwups like the one I did before in ichpcib.c... ok dlg@ kettenis@
2006-11-29Fix the major bug in ips which prevents GENERIC to attach it.Alexander Yurchenko
2006-11-29Don't print masks if we're in apic mode.Mark Kettenis
2006-11-29Fix cpu_model string screwup.Dimitry Andric
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).