summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-11-25Fix dmesg ugliness caused by not printing iotdb stuff.Mark Kettenis
2008-11-25rename zaurus_reg.h to machine_reg and rename some of the internal fieldsDale Rahn
so that arm/xscale/... is not referring to zaurus specific defines. ok miod kevlo, with some suggested changes from deraadt@
2008-11-24Import btsco(4) from NetBSD to work on itUwe Stuehler
2008-11-24oops.Artur Grabowski
something snuck in here that wasn't supposed to be. noticed by yuo@
2008-11-24Only schedule a soft interrupt if the device has been opened (and sc_ttyMark Kettenis
has been initialized).
2008-11-24 - Remove the special case for one page pmap_remove, it's useless.Artur Grabowski
- Move the code that drops a ptp into a function and use that in both pmap_do_remove and pmap_page_remove. - In pmap_do_remove, instead of flushing the whole range from the tlb at the same time, shoot one PDE at a time. It will allow us to skip empty PDEs and reduces the amount of work one IPI has to do (although we'll get more IPIs). ok toby@ "I won't protest" deraadt@
2008-11-24die die dieTheo de Raadt
2008-11-24In pmap_write_protect() clear and set the protection bits atomically andKurt Miller
leave the rest alone. Also don't read *spte twice and compare results. feedback drahn@ okay art@ weingart@
2008-11-24In pmap_clear_attrs() use i386_atomic_clearbits_l() to only clear theKurt Miller
bits necessary. Also move up the pmap_map_ptes() call to before the diagnostic check. okay art@, weingart@
2008-11-23no more need to cope with pccomTheo de Raadt
2008-11-23pccom can finally die; ok kettenis dlg drahn, tested by okanTheo de Raadt
2008-11-22Move the drm drivers over from:Owain Ainsworth
vga1 at pci0 inteldrm0 at vga1 to vga1 at pci0 inteldrm0 at vga1 drm0 at inteldrm0 i.e. a similar scheme to audio(4) where the interface attaches on top of the wildly different drivers. This helps to clean up the code a lot (more is coming) and help me start to move drm to being essentially bus independent, which will help in the future.
2008-11-22Allow wired memory to be accounted on i386. This automatically changesMike Belopuhov
the policy for the mlock(2) on this architecture: all users are allowed to call mlock, while the limit is imposed by the current RLIMIT_MEMLOCK value. "makes sense" art, ok hshoexer (who was running with the same change for about 10 months).
2008-11-22The last parts of cpu_unidle. i386, amd64 and sparc64Artur Grabowski
In short, make cpu_unidle do what signotify used to do and make signotify use cpu_unidle. Also, include a cpu_unidle in need_resched, it won't change much right now but will be needed in the future.
2008-11-22same change as for amd64. Move bus_space_* functions from inlines andOwain Ainsworth
defines into real functions. since machdep.c is cluttered as it is move them into bus_space.c (like amd64). a later commit will move the stuff from machdep across too. since machdep.c is cluttered as it is move them into bus_space.c (like amd64). a later commit will move the stuff from machdep across too. some shrinkage stats: GENERIC.MP 209.66kb RAMDISK 50.84kb RAMDISKB 50.04kb RAMDISC 36.28kb RAMDISK_CD 168.03kb don't fill it up all at once! claudio found no network performance hit. toby thought the code went looked alright. art@ ok.
2008-11-22freq is specific to APM, and it is reaching out to grab the APM variable,Dale Rahn
however this global variable doesn't exist with out apm, ifdef the variable.
2008-11-22scoop is specific to zaurus, it should have some other mechansim toDale Rahn
make this associate, however ifdef zaurus it for now.
2008-11-22Re-enable ACPI PDC support and fetching cpu performance statesGordon Willem Klok
from ACPI for est on amd64. This incorporates a few changes from krw@ to fix minor nits, its unlikely to fix the problems with some machines from acer and dell but lots of machines benefit. ok krw@
2008-11-22cpu_unidle for macppcArtur Grabowski
ok drahn@
2008-11-22potentially com, not pccomTheo de Raadt
2008-11-21de-inline the bus_space_* functions in favour of real functionsOwain Ainsworth
This shaves 135.7kb from amd64 GENERIC.MP. An afternoons worth of testing proved to art, toby and myself that this doesn't slow things down. i386 will follow shortly. ok weingart@
2008-11-21no, amd64 does not have pccom; ok dlg with gleeTheo de Raadt
2008-11-21back out the new interrupt subsystem because some little bug still lurks in ↵Theo de Raadt
there
2008-11-21add forgotten ioctls. allows writing to extra counters found on amd cpus.Mike Belopuhov
2008-11-14Garbage collect the LDT segments, and simply use the GDT segments.Tobias Weingartner
The beginning of i386 segment review/cleanup. Tested by various people.
2008-11-14Atomically update the PTE.Kurt Miller
okay weingart@ art@
2008-11-12Add a comment to sigcode() to explain why the use of 'int $0x80' isTobias Weingartner
necessary, so that future hackers will not be mislead the same way I was when looking at this code.
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@