summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2009-02-05KNF, and remove a debug printf I missed.Owain Ainsworth
2009-02-05KNF, no change to behaviour.Owain Ainsworth
2009-02-05Merge the static block allocation code from {i915,radeon}_mem.c intoOwain Ainsworth
non-static code that's shared between both. While i'm here convert them to TAILQ. Eventually, both of these will die, but until then I'd rather shave the space in the kernel. Tested on radeon and intel.
2009-02-04Some systems that claim to be ACPI 2.0 apparently don't provide an XSDTMark Kettenis
address. Make the code fall back on the RSDT on those systems. From Joerg Niendorf <p3y80@internode.on.net>. Fixes PR 5986.
2009-02-04Make m_copyback() a lot smarter. Make it use all of the last mbufClaudio Jeker
(M_TRAILINGSPACE()) and allocate one cluster if needed (instead of chaining many mbufs). Somewhat needed for the rl(4) fix to ensure that the ethernet header is in one mbuf for sure. Tested by landry@ and myself
2009-02-04Do not use m_pullup() because it aligns the data to a word boundaryClaudio Jeker
resulting in unaligned IP headers (because it aligns the ethernet header). Found the hard way by landry@ on sparc64.
2009-02-04Handle PCXS data protection traps. Unlike other PA1.1 chips, there is aMiod Vallat
single trap code for alignment and protection faults, so we have to figure out which kind of problem we are facing. ok kettenis@
2009-02-04On systems with split BTLB, do not bother trying to insert DBTLB entries,Miod Vallat
as PDC will lie to us pretending it did while it didn't. ok kettenis@
2009-02-04On systems with viper memory controllers, always print its revision,Miod Vallat
and allow asp interrupts to pass through even if not revision 0. ok kettenis@
2009-02-04Unify memory size reports a bit more: always report size in MB, and reportMiod Vallat
reserved memory on alpha and hppa on its own line (as done on sgi).
2009-02-03Use our own flags to set the operations and not RTF_PROTOX.Michele Marchetto
Switch the padding field into a MPLS one in rt_msghdr to store relevant informations. OK claudio@ laurent@
2009-02-03Free TSS on the stack of the dead process.Mike Belopuhov
In order to do that we have to remove all sleeping parts: sleeping memory allocation and a sleeping lock. Thus we're moving this code to the spinning lock (mutex) and getting rid of the GDT grow code. Downside is that now we're pre-allocating 64kb of memory per CPU from the start, but this might be optimized in future. This also unifies GDT code and MAXGDTSIZ define across i386 and amd64. With help from mickey. ok toby, art
2009-02-03regenKevin Lo
2009-02-03add Buffalo WLI-U2-SG54HGKevin Lo
ok damien@
2009-02-01Nuke whitespace at EOL.Miod Vallat
2009-02-01Revert 1.28, rumoured to cause problems on some machines.Miod Vallat
2009-02-01Fix the logic in mbus_add_mapping() to correctly handle requests spanningMiod Vallat
more than one flex ``tile'', when the first one is already mapped. Some sti(4) devices have such requests. ok kettenis@
2009-02-01Save the text mode color palette upon startup, and restore it whenMiod Vallat
switching consoles or when X11 exits. Almost all other operating systems do this, and thus do not suffer from palette bugs in some X11 drivers. From FreeBSD.
2009-02-01Remove unused _pfthresh member from struct alpha_bus_dma_tag.Miod Vallat
2009-02-01use m_clsetwms to tell the allocator how big the rings are.David Gwynne
2009-02-01"Ethernet" is a family of networking technologies developed at Xerox PARC,Igor Sobrado
not a generic name. we must use the right capitalization for this term. ok jmc@
2009-02-01Remove dma_cachectl() and rename dma_cachectl_pa() to dma_cachectl() now thatMiod Vallat
the old vs(4) code is gone.
2009-02-01Get the cpu speed from the pcctwo configuration on MVME187.Miod Vallat
2009-02-01Finally switch this driver to bus_dma.Miod Vallat
2009-01-31u_char is not compatible with default argument promotion type thusAlexander Yurchenko
can't be used with va_start. change it to u_int. ok miod@
2009-01-31No need to invent another _offset, just use the one from param.h.Alexander Yurchenko
As a bonus it eliminates casting from pointer to int. ok miod@ tedu@ millert@
2009-01-31Rewrite DIRECTSIZ macro using offsetof. As a bonus it elimitanes castingAlexander Yurchenko
pointer to int. ok miod@ tedu@ millert@
2009-01-31Don't cast pointer to int, use register_t here.Alexander Yurchenko
ok miod@ tedu@
2009-01-31Rename loadpoint to loadaddr and add to usage().Alexander Yurchenko
suggestion and ok from kettenis@
2009-01-31unbreak ! INET6 case by sprinking #ifdef INET6Henning Brauer
noticed by Vladimir Kirillov <proger@uaoug.org.ua>
2009-01-30When don't-fragment packets need to get fragemnted some code tries toClaudio Jeker
update the route specific MTU from the interface (because it could have changed in between). This only makes sense if we actually have a valid route but e.g. multicast traffic does no route lookup and so there is no route at all and we don't need to update anything. Hit by dlg@'s pfsync rewrite which already found 3 other bugs in the network stack and slowly makes us wonder how it worked in the first place. OK mcbride@ dlg@
2009-01-30sync the part copied from ip_output: always initialize IP checksumChristian Weisgerber
to zero for checksum offload; ok henning@
2009-01-30Set mbuf watermarks.Mark Kettenis
2009-01-30Deal with running out of receive buffers.Mark Kettenis
2009-01-30Mark routers internal as uninstalled after deleting the default route.Rainer Giedat
This makes it possible to get a new default route by router advertisement after the old one got deleted (or timed out). Ok henning@, claudio@, mcbride@
2009-01-30"XXX: should this be performed under splnet()?"... Yes, yes it should.Ryan Thomas McBride
Interface configuration causes neighbour discoverery, which runs packets through parts of the stack that require at least splsoftnet(), like pf and pfsync. ok dlg
2009-01-30Properly clean out our rings when we down the interface.Mark Kettenis
2009-01-30sprinkle splassert(IPL_SOFTNET) around the code that inserts, unlinks, andDavid Gwynne
frees pf states. ok mcbride@
2009-01-30- add missing trailing 't' of the mos(4) entry's 'Etherne'Jasper Lievisse Adriaanse
2009-01-29KNF (whitespace fixes). ok grunk@Alexander Bluhm
2009-01-29``beginning'' is spelled with 2 `g' and 3 `n'.Miod Vallat
2009-01-29Remove KASSERT() that could trigger when an rthread in sigwait()Philip Guenthe
got multiple signals before tsleep() could wakeup. Also, POSIX says that sigwait() should never return EINTR, so map that to ERESTART. ok kurt@, tedu@ fixes the panic encountered by ariane@ with kaffe
2009-01-29Add a few cache operations after I/O completes.Miod Vallat
2009-01-29The ``flush before inval'' 88410 workaround needs to be done inMiod Vallat
m88410_initialize_cpu() as well. Since we can't flush unknown data, just make sure all 88410 lines are filled with valid data before flushing it. This should fix the spurious ``197DP hangs or loops on osiop errors after autoconf'' issue I've been seeing.
2009-01-29Switch struct stat's timespec members to the names standardized inPhilip Guenthe
POSIX 1003.1-2008, with compatibility macros for the names used in previous version of OpenBSD. Update all the references in the kernel to use the new, standard member names. ok'ed by miod@, otto@; ports build test by naddy@
2009-01-29Some of the latest macppc laptops with no adb subsystem at all, spontaneouslyMiod Vallat
powerdown if we try to issue pmu commands. Skip these if no adb device appears in the device tree. Adapted from NetBSD.
2009-01-29Oops, correct logic when requested font index is out of bounds. ThankfullyMiod Vallat
it's a can't happen situation.
2009-01-29fix a panic that occurs when IEEE80211_STA_ONLY is defined (SMALL_KERNEL).Damien Bergamini
noticed by ray@, more investigation from sthen@ fix tested by sthen@
2009-01-29Split the address selection from pools away from pf.c and put it inPierre-Yves Ritschard
pf_lb.c. This will ease the process of adding more selection types without bloatening pf.c even more. ok and a weird death threat, henning@ raised eyebrow, dlg@
2009-01-29move some code around in preparation for future work:Henning Brauer
break out the code that doesn't deal with fragment reassembly and only modifies stuff in the ip header to their own functions. pass them what they need instead of making them get the info from a rule ptr. ok dlg ryan