summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-08-19Add "memory" clobber to lidt inline asm, to prevent the GCC optimizer fromMark Kettenis
getting stupid ideas like optimizing away stores to the descriptor that we're setting. This may be overkill, but this code is far from performance critical and it may prevent future surprises. Fixes instant reboots with bsd.rd on Pentiums with the F00F bug. Thanks to espie@, for narrowing the issue down enough for me to find the problem. ok deraadt@
2010-08-18- remove COMPAT_LINUX bits. these architectures are not targetted by theJasper Lievisse Adriaanse
linux emulation layer, nor will they in the future. ok miod@
2010-08-17Make sure fast trap handlers correctly invoke soft interrupts by markingMiod Vallat
them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
2010-08-16Restore initialization of apcicnaddr which got accidentally removed in revisionMiod Vallat
1.5, about 5 years ago. My bad. ok deraadt@
2010-08-16Make sure we reserve enough room after the kernel image to avoid stompingMiod Vallat
over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
2010-08-16Add a dummy elf64.c, effectively removing support for loading 64-bit kernelsMark Kettenis
from cdboot to slim it down below the 32k limit.
2010-08-13Fix indentation.Mark Kettenis
2010-08-11Disable the RTC the periodic interrupt. Leaving it enabled causes theMark Kettenis
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-10add a description for bsd.sp where appropriate; while here, writeIgor Sobrado
"multiprocessor" in a consistent way. written with lots of good advice from jmc@, who noted that changing hier(7) was not enough and carefully reviewed this diff. ok jmc@
2010-08-10spaces and tabs, no binary changeMarco Peereboom
2010-08-10Someone went nuts with spaces and tabs. No binary change.Marco Peereboom
2010-08-08Accept "ACPI 4" or such, bug in laptop or spec? -- Thinkpad SL510Theo de Raadt
from marco, ok kettenis, hard to argue with it making the laptop work
2010-08-08Restore the APIC ID to what we set it to at boot (some machines come upTheo de Raadt
with it incorrect) from mklarkin, ok kettenis
2010-08-08Reenable acpiasus(4). The bogus code is actually dead code, and jsing@'sMark Kettenis
eeepc panics without this driver (which must be a bug in the acpi code that this driver just hides).
2010-08-08Disable acpiasus(4); it violates the rule that only the acpi thread is allowedMark Kettenis
to run AML in several ways.
2010-08-07On resume, re-activate the host RNG on the host bridges that need it.Theo de Raadt
ok kettenis
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Some stragglers from last diff.
2010-08-06Every time you ignore uiomove() return value, $DEITY kills a littleMiod Vallat
$ADORABLE_FELINE. ok deraadt@ matthew@
2010-08-05new i386/amd64 machdep.lidsuspend sysctl which decides whether a lidTheo de Raadt
close causes a suspend. resumes are not tied to this; they happen unconditionally. this is a temporary knob for the 4.8 release; afterwards it will move to a more convenient place much moaning discussing where to put the knob with kettenis tested by various including phessler
2010-08-04Disable bce(4) because it can only access 1GB of memory and developersTheo de Raadt
who have the device (only found in laptops) refuse to realize it is their own problem and should dig into the code and fix it.
2010-08-04Disable bce(4) because it can only access 1GB of memory and developersTheo de Raadt
who have the device (only found in laptops) refuse to realize it is their own problem and should dig into the code and fix it.
2010-08-02Add System Enclosure or Chassis structure.Marco Peereboom
ok deraadt
2010-08-02enable owctrTheo de Raadt
2010-08-02correct header file stuff; pointed out by teduTheo de Raadt
2010-08-02needs explicit proc.h; Nathanael RensenTheo de Raadt
2010-08-01Small cleanup of the fpu switching code; don't rely on the fact the HFP_REGSMark Kettenis
is actually zero and remove a redundant instruction. ok jsing@
2010-08-01ANSIfyMark Kettenis
2010-07-31remove references to ``opl'', since it doesn't exist any longerAlexandre Ratchov
noticed by brad
2010-07-31Ignore the PSL_VEC bit in the sigcontext and always copy the bit out fromMark Kettenis
the trap frame. The Altivec unit might have been stolen away from us while we were running the signal handler, so it is ok that the two don't agree. Fixes the X server mysteriously exiting (and seemingly freeze). ok miod@, drahn@
2010-07-31Factorization of the bluetooth and usb hid input driver logic, to reduce codeMiod Vallat
duplication and divergence. Thanks to mlarkin@ for bluetooth devices tests.
2010-07-31remove the ``midisyn'' framework and anything using it, i.e., the oplAlexandre Ratchov
device and the midi interface to pcppi.
2010-07-30When converting a floating value to an integer, properly raise the "invalid"Mark Kettenis
exception when the floating value is infinite or NaN or if the integral part of the floating value exceeds the range of the integer type, as required by the C99/IEEE754 standard. Fixes Python 2.6 build on hppa. ok miod@
2010-07-30Remove unused header file.Miod Vallat
2010-07-29Don't forget to register the i8254-based timecounter if we use the i8254Mark Kettenis
for clock interrupts. Unbreaks amd64 in PIC mode.
2010-07-29Zero out the firmware waking vector on successful resume from ACPI sleep.Mike Larkin
ok deraadt@
2010-07-28Add a dummy kqueue filter similar to seltrue and use it for anythingNicholas Marriott
using seltrue for poll. Based on code from NetBSD. Also remove a stray duplicate lpt entry from loongson, from deraadt. ok tedu deraadt
2010-07-27delete a #if 0 chunk which was used for early development and will neverTheo de Raadt
be reused ok jordan
2010-07-27acpiasus for amd64 too, Henri KemppainenTheo de Raadt
2010-07-26recording/full-duplex supportJacob Meuser
ok kettenis
2010-07-26simplify the mixer(4) code and interface. document the interface.Jacob Meuser
ok kettenis
2010-07-26Add support for Sony ACPI hotkeys via a new driver: acpisony(4).Paul Irofti
Currently it only works for the suspend button and tries to do right for the brightness events, but I haven't found a Sony laptop that like to do right so far. In the future I want to make the brightness keys work on all Sony's and also add support for the zoom hotkeys and whatever other funky keys I can find on those things. Okay deraadt@.
2010-07-25in the clock drivers, seperate the soft-state and hard-state which wasTheo de Raadt
all jumbled up in the same functions. the rtc (mc chip) and clock (i8243) startup was also mixed up. they the soft state and hardware state can be started in the right order, and it is easy to restart just the neccessary parts upon resume. tested in numerous cases: (apic, pic) * (GENERIC.MP, GENERIC) * (mp, non-mp) * (i386, amd64) ok kettenis
2010-07-24Switch hppa64 to timecounters.Mark Kettenis
2010-07-24Convert PCI addresses to proper 64-bit physical addresses.Mark Kettenis
2010-07-24Make pmap_extract() work for large pages.Mark Kettenis
2010-07-24move to 4.8-betaTheo de Raadt
2010-07-24Fix PTE_PAGE().Mark Kettenis