summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2007-11-03use DEVICE_IS_VGA_PCI in vga_pci_match()Martin Reindl
ok brad@ fgsch@ also tested by oga@
2007-11-03don't spam dmesg with huge, whitespace padded bios strings.Chris Kuethe
ok beck, gwk
2007-11-03change what happens when acpi is enabled to include "relatively safe"Bob Beck
stuff and have acpi actually do something. note acpi is still disabled by default, but now will do more stuff when enabled with config -e/boot -c ok gwk@, weingart@, canacar@, deraadt@
2007-11-03APM switchto cleanup diff. This uses the switchto functionality toTobias Weingartner
significantly clean up the APM idle loop things. I actually can make sense of what the APM idle loop is supposed to do. Ok gwk@, beck@, and theo says ramdisks compile.
2007-11-03Add acpi_acquire_global_lock() and acpi_release_global_lock() in MD locore.sTobias Weingartner
because it is easier to write these here in asm than it is to put them inline with gcc's __asm() construct. Also, chances are amd64's versions will need to be written in a different manner. Basically yanked from ACPI spec V3, section 5.2.10.1. Ok canacar@, beck@, gwk@
2007-11-02replace ctob/btoc with ptoa/atop (plus the usual round_page() where needed)Martin Reindl
2007-11-02Use the same cache cleaning address computation as done in cpufunc_asm_xscale,Miod Vallat
for there be dragons in xscale cache and it would not be cleaned correctly, leading to wrong pcb data being restored on resume and eventually causing panics.
2007-11-01Remove curproc definition. It is supposed to be in proc.h only.Mike Belopuhov
ok kettenis
2007-10-31Overhaul fpu context save/restore code, making it more similar to what we doMark Kettenis
on i386 and amd64. Don't let IPIs in when saving fpu context by disabling interrupts.
2007-10-31Remove some XXX code that has been #ifdef'ed out for ages.Mark Kettenis
2007-10-31Remove idle_u; it's been unused for a while.Mark Kettenis
2007-10-31Remove some comments about 32-bit mode.Mark Kettenis
2007-10-31Garbage collect ienab_bis() and ienab_bic().Mark Kettenis
Suggested by miod@
2007-10-31for now, workaround MP timeout/splhigh/scsi race at reboot time using aTheo de Raadt
delay. will be revisited. ok art
2007-10-31comment fixes.Joel Sing
ok miod@
2007-10-30avoid intermediate files with same name (ie. a.out) for parallel makeTheo de Raadt
ok miod
2007-10-29run depend so that SFILES depend on assym.h, which allows them to buildMarc Espie
with make -j on fast SMP boxes. noticed by robert@, input by miod, kettenis, okay toby@, robert@, and tested to work if people build kernels correctly...
2007-10-29UltraSPARC CPUs (and other SPARC V9 implementations) don't have aMark Kettenis
floating-point deferred-trap queue. Remove redundant code inherited from sparc that deals with this. Also remove the code dealing with saving and restoring the FPU state from unaligned memory; we always allocate properly aligned memory for storing the FPU state.
2007-10-29Make sure the dma_cachectl*() functions actually do their work on allMiod Vallat
affected processors if option MULTIPROCESSOR. It's amazing bsd.mp could boot multiuser without this.
2007-10-29When a secondary cpu gets its interrupt pin stuck, be sure to savectxMiod Vallat
and put the process it was running back on the run queue (unless this was the idle proc).
2007-10-28This is a horrible kluge: invoke sched_init_cpu for seconday processorsMiod Vallat
before they are started (and not skipping gaps for machine setups with holes in cpu slots). Since we start secondary cpus very late in the boot process, and sched_init_cpu() has to be invoked before proc0 execve's init, I don't think there is a better way to do this. This lets MVME188 systems with more than one processor boot multiuser.
2007-10-28Start secondary processors synchronously. This only wins us a nicer dmesgMiod Vallat
output, and nothing else.
2007-10-28Do not flag a processor as ``alive'' until it really is ready to accept IPIs.Miod Vallat
2007-10-28add new envy(4) driver for ICE1712 (aka VIA Envy24) audio devices. TheAlexandre Ratchov
device uses 32bit samples, up to 96kHz sample rate, 12 input channels and 10 output channels. Currently AK4524 codecs are supported, so M-Audio Delta cards should work. Playback and capture work, but the mixer is still incomplete. ok jakemsr@
2007-10-28UltraSPARC CPUs don't have a floating-point queue, so cpu_reset_fpustate() isMark Kettenis
redundant since there is no queue to flush.
2007-10-28Match on compatible: 'pcf8584', such that we attach on the V210 again.Mark Kettenis
2007-10-28get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-28When handling a userland data fault occuring in kernel mode, take the kernelMiod Vallat
lock with KERNEL_LOCK, not KERNEL_PROC_LOCK. This lets bsd.mp run multiuser on a single-processor board.
2007-10-28Disable interrupts around changing curproc and curpcb so these always match.Miod Vallat
2007-10-27Grab kernel lock before calling interrupt handlers.Mark Kettenis
ok miod@, deraadt@
2007-10-27Grab kernel lock for EXC_DSI.Mark Kettenis
Requested by deraadt@
2007-10-27get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-27Use the same assembly constraints for all inline assembler xmem constructs.Miod Vallat
2007-10-27In __cpu_simple_lock() and __cpu_simple_lock_try(), use a local u_int insteadMiod Vallat
of a local __cpu_simple_lock_t (which is volatile), so that the compiler can optimize it to a register, instead of using a memory location (and doing stores into it when __cpu_simple_lock() is spinning). This makes the MP code a bit smaller and a bit faster.
2007-10-27No need for an explicit pipeline synchronization in invalidate_pte(), theMiod Vallat
xmem instruction does it for us.
2007-10-27Be more strict when disassembling {f,}{st,x}cr and [bt]cnd instructions,Miod Vallat
and display incorrect opcode encodings as invalid opcodes.
2007-10-27Since ipis are not synchronous, make sure that ci_fpproc is not NULL beforeMiod Vallat
invoking savefpstate in ipi_save_fpstate. ok kettenis@
2007-10-27Don't do unecessary work in cpu_switchto().Mark Kettenis
2007-10-25Don't forget the channel number; makes sure we don't always read channel 0Mark Kettenis
(and actually get reasonable values for the MB0 and MB1 sensors on the E250).
2007-10-25Remove some coded that has been #ifdef'ed out for quite a while now.Mark Kettenis
2007-10-25allocate 1 byte extra in getprop(), for the NUL that some callers likeTheo de Raadt
to place. This is a nightmare, and we must move away from these stupid wrapper APIs. ok kettenis
2007-10-25Be sure to enable interrupts on return from ddb if they were enabled beforeMiod Vallat
the break.
2007-10-25another case of product encoding is "Sun (TM) modelname", on the E250Theo de Raadt
2007-10-24Rely on 16 byte pcb alignment, and use double loads and stores duringMiod Vallat
context switches. Should have been commited ages ago (when pcb alignment was fixed). No functional change.
2007-10-24Remove sir_lock, superseded by the atomic bit operations.Miod Vallat
2007-10-24Turn curcpu() into an inline function instead of a macro relying on a GCCMiod Vallat
extension.
2007-10-24Enable power supply temperature sensors on the E450.Mark Kettenis
2007-10-24Add support for power supply temperature sensors on the E450.Mark Kettenis
2007-10-24pipleine -> pipelineMiod Vallat
2007-10-24In cpu_switchto(), load pmap->pm_tlbpid manually, instead of expectingMiod Vallat
pmap_update() to return with this value in v0. A void function. Bwahahaha.