summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-11-10Use the correct sizeof for the _ca.Artur Grabowski
"obviously correct" kettenis@
2008-11-09Rework that way that agp attaches.Owain Ainsworth
previously, we had a static list of pcidevs and which agp driver would be interanlly attached. Instead, split the agp drivers so they work like audio(4), where we attach a driver, which sets up some callbacks and initial state, then attaches the interface (agp(4)). Since this allows us to attach different drivers in different places, and give them /proper/ probe functions move most of the drivers back to attaching at pchb, where they should, and intagp (formerly agp_i810) stays attaching at vga, since it's part of the intel integrated graphics chips. Diff shrinks the kernel slightly, gets rid of the annoying "no integrated graphics" warning, and allows more cleanup later. Tested by many. fix for alpha build (the only other vga_pci.c consumer) suggested by miod.
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-11-08Get rid of va-ppc.h.Mark Kettenis
ok miod@
2008-11-07different fix for pr5883 than proposed by the submitter, found when glancingTodd T. Fries
at apple code go ahead drahn@
2008-11-06correct commentTheo de Raadt
2008-11-06delete checks for impossible conditionsTheo de Raadt
2008-11-06input and volume twiddlesTodd T. Fries
o set init data to match snapper_set_foo* o set volume to 190 (audible compared to the default) o set input to mic (most common usage) ok jakemsr@
2008-11-05return an error when trying to get stereo values from a monoJacob Meuser
control. makes mixerctl(1) output more sensible. ok drahn, todd
2008-11-05since mmclose() is only called once for the final close,Matthieu Herrb
set ap_open_count = 0 in mmclose() instread of decrementing it. ok miod@, oga@.
2008-11-05* use uint8_t instead of int to hold the value of an 8-bit register.Jacob Meuser
* for outputs.{bass,treble}, 0 dB corresponds to mixer value 128, not 0. * line-in is configured as the default recording source; set sc->sc_record_source accordingly. * add missing register to initialization code. from Marco (marco2z at arsystel com), thanks testing/ok drahn@
2008-11-04missing setipl in the 'busy processing soft interrupts state'Dale Rahn
causes high priority interrupts to be delayed until that state is cleared.
2008-10-30Initialize random seed for secondary processors.Miod Vallat
2008-10-30Give the dummy struct cpu_info used for secondary processor early bootstrap,Miod Vallat
the size of a full blown struct cpu_info, instead of the first few fields.
2008-10-30In cpu_switchto(), always pmap_deactivate() the process being switched out,Miod Vallat
even in non-MP kernels, to avoid unnecessary tlb flushes later when pmap operates on shared pages.
2008-10-30ugh, typo fix, committed previous from the wrong treeTodd T. Fries
2008-10-30patches for macppc to remove more EINVAL returns in the audio codeTodd T. Fries
tested by me, from ratchov@, please commit ratchov@
2008-10-29come on -- this was not even test compiledTheo de Raadt
2008-10-29native default parameters for i2s devices instead of 8kHzJacob Meuser
mulaw mono, which few can even do. "Please just get this in." brad@
2008-10-28Do not leave pmap_cache_state pointing to freed memory if it was theDale Rahn
last process running.
2008-10-28Try to use ACPI a little bit harder. Skip it only if ncpu < 2 and theTheo de Raadt
SMBIOS version is < 2.4. This lets 40-series thinkpads continue to use apm. worked on with kettenis
2008-10-27Rename "machine cpu" to "machine ddbcpu" in MP kernels, for consistency withMiod Vallat
other MP platforms.
2008-10-25audio(9) says low level drivers are allowed to change the requestedJacob Meuser
values of the audio_params structure during AUDIO_SETINFO if the hardware cannot be set to exactly the requested mode. some drivers do this sometimes. others always return EINVAL if there isn't an exact match. be more consistent. only return EINVAL if an absurd parameter was requested, otherwise return a supported set of parameters, as close as possible to what was requested. with/ok ratchov@
2008-10-24clear pointer after freeing itTheo de Raadt
2008-10-24remove unused labelTheo de Raadt
2008-10-24Add auacer(4) to handle the audio controller found in some ALi/ULiBrad Smith
southbridge chipsets. ok ratchov@
2008-10-23a better fix for the "uvm_km thread runs out of memory" problem.Ted Unangst
add a new arg to the backend so it can tell pool to slow down. when we get this flag, yield *after* putting the page in the pool's free list. whatever we do, don't let the thread sleep. this makes things better by still letting the thread run when a huge pf request comes in, but without artificially increasing pressure on the backend by eating pages without feeding them forward. ok deraadt
2008-10-23Move the va_copy define to <sys/stdrag.h> making sure it is uniformalyMark Kettenis
protected by __ISO_C_VISIBLE > 1999. With a little help from miod@. ok miod@
2008-10-23add mos(4) to the most relevant config filesTheo de Raadt
2008-10-22#if INET => #ifdef INETMarco Pfatschbacher
#if INET6 => #ifdef INET6
2008-10-22Only call pic->pic_delroute() when disestablishing the last interrupt handlerMark Kettenis
for a pin. Resolves issues with azalia(4) devices that have no usable codecs when they share an interrupt pin with other devices. ok weingart@, krw@
2008-10-21more style nits.Brad Smith
2008-10-21style nits.Brad Smith
2008-10-19Shuffle MULTIPROCESSOR ifdef's around to allow code that deals withBrad Smith
the CPU roles to compile on !MULTIPROCESSOR kernels and make the top part of cpu_attach() which deals with processor setup depending on the CPU role look much closer to the equivalent code for amd64. ok kettenis@
2008-10-17Remove clauses 3 and 4 from NetBSD license.Okan Demirmen
from ray; ok ray, deraadt
2008-10-17Handle pool allocation failures slightly better. ok kettenis@Dale Rahn
2008-10-15make random(9) return per-cpu values (by saving the seed in the cpuinfo),Theo de Raadt
which are uniform for the profclock on each cpu in a SMP system (but using a different seed for each cpu). on all cpus, avoid seeding with a value out of the [0, 2^31-1] range (since that is not stable) ok kettenis drahn
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-15inteldrm and radeondrm are pretty stable by this point, so enable them on amd64Owain Ainsworth
and i386. deraadt got sick of me wussing out over this.
2008-10-14Change m_devget()'s outdated and unused "offset" argument: It isChristian Weisgerber
now the offset into the first mbuf of the target chain before copying the source data over. From FreeBSD. Convert drivers' use of m_devget(). Mostly from thib@. Update mbuf(9) man page. ok claudio@, thib@
2008-10-12Reduce diff to macppc version.Mark Kettenis
2008-10-12Adjust for redesigned powerpc interrupt architecture.Mark Kettenis
2008-10-12Make vcons(4) interrupt driven.Mark Kettenis
2008-10-12Add interrupt support.Mark Kettenis
2008-10-10Use the MI random() for all cases; no need for a MD version since itTheo de Raadt
has never been performance sensitive. Running on all platforms, discussed with millert and kettenis, ok toby
2008-10-10- add and enable rum(4)Jasper Lievisse Adriaanse
committed over a rum(4) donated by Maxim Belooussov, thanks! ok jsing@
2008-10-10Add empty cpu_unidle() macros for architectures that currently don't doArtur Grabowski
anything special to prod a cpu to leave the idle loop in signotify. powerpc, i386, amd64 and sparc64 will follow soon so that everyone has the same interface to wake an idling cpu.
2008-10-10Define MAXCPUS on all architectures.Artur Grabowski
For now, sparc64 is arbitrarily set to 256 (only architecture that didn't have a practical limit in the code on the number of cpus).
2008-10-09Skip memory areas smaller than 1 MB above the 16 MB boundary to deal withMark Kettenis
buggy ACP BIOSes. Based on a diff from weingart@. ok deraadt@, oga@
2008-10-09replace M_WAITOK with M_NOWAITCharles Longeau
ok krw@ kettenis@