summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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@
2008-10-09remove a dead store.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-09Implement CPU_INFO_UNIT for everyone, not just MP kernels.Artur Grabowski
ok miod@
2008-10-09Use ether_ioctl().Brad Smith
2008-10-09cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-08cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-08uhci(4) at cardbus(4) seems to work (to the same extent that ohci(4) andTheo de Raadt
ehci(4) work; ie. it has the same variety of unplug bugs)
2008-10-07unbreak ieeefp emulation code wrt converting double to unsignedMartynas Venckus
long ints for alpha. we've got only one instruction (cvttq) to convert double-t to quadword, and float64_to_int64 did not take into account the unsigned conversions therefore, overflow always occured, and half of the unsigned range (LONG_MAX .. ULONG_MAX) was broken introduce roundAndPackInt64NoOverflow and float64_to_int64_no_overflow for softfloat, that works with unsigned integers as well. note that this will return zero for nan/inf/oflow/uflow, raising exception flag perl is happy now looked over by miod@ tested by naddy@, and by me on nick@'s alpha
2008-10-06more readable virtual memory size values.Brad Smith
ok deraadt@
2008-10-06Remove useless comment.Mark Kettenis
2008-10-06remove dead stores and newly created unused variables.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok weingart@
2008-10-06Unconditionally compile idt_vec_xxx functions.Mark Kettenis
2008-10-05Remove IOAPIC ID remapping code. It should not be necessary to avoid reusingMark Kettenis
LAPIC IDs and if there are MPBIOSes we handle them with ACPI now. ok deraadt@
2008-10-05Add missing argument to printf.Mark Kettenis
2008-10-04The wrong byte of the return code was being looked at for theTheo de Raadt
PCI probe. Yuichiro Goto, PR 5048 It would be nice if someone with a "pci0 at mainbus0 bus 0: configuration 2" system would double check this and mail us back. ok toby
2008-10-04Fix potentially uninitialized variables in syscall().Miod Vallat
2008-10-04this is not the cvtql/sv opcode. ok miod@, naddy@Martynas Venckus
2008-10-03Backout. kettenis@ has reservations.Tobias Weingartner
2008-10-03Make extra cpu's in DDB not spin in tight loop.Tobias Weingartner
Having them 'hlt' is a good thing, especially where thermal management (acpi, etc) is concerned. They wake up lots due to local tick timer anyhow. ok gwk@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-10-01Revert last commit. It didn't really help and we fixed X11 instead.Mark Kettenis
ok miod@
2008-10-01When things get tight, sis(4) loses firstTheo de Raadt