summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Previous commit broke interlock locking for !LK_RETRY case.bp2001-03-261-2/+3
|
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-26154-184/+4
| | | | the bit-bucket.
* First step towards plugging the "pccard is trying to map into a BIOSimp2001-03-262-75/+64
| | | | | | | | | | | region for CIS reading" problem: Use bus_alloc_resource to get the memory that we'll be using. Also has the benefit of doing usage checking as well. This gets rid of the ugly kludge that we had before for mapping pmem to vmem. Second, move PIOCSRESOURCE to its own routine and make it conform more to style(9) in the process.
* Prevent race condition by using msleep() instead of mtx_unlock()/tsleep().bp2001-03-261-2/+1
| | | | Reviewed by: alfred
* Turn off building the ARC loader. I don't know of anyone currently workingobrien2001-03-251-3/+4
| | | | on advancing this WIP.
* fix whitespace bogonscg2001-03-257-188/+188
|
* release resources if one of the speculative probes in opti_detect() fails,cg2001-03-251-7/+12
| | | | otherwise resource_list_alloc panics when opti_detect tries its next probe.
* the softc is not a mutex, don't try to lock it.cg2001-03-251-2/+2
| | | | Submitted by: George Reid <greid@ukug.uk.freebsd.org>
* Make header files conform to style(9).brian2001-03-256-326/+311
| | | | | | Reviewed by (*): bde (*) alias_local.h only got a cursory glance.
* (MFC candidate since this is already a merge from /sys/net only.)joerg2001-03-251-2/+16
| | | | | | | | | | Merge rev's 1.65 and 1.66 from sys/net/if_spppsubr.c (implement the `restart' option, and fix a blatant bug with PAP authentication). The i4b implementation of this file should be merged back, but for now, we need this here as well. Reviewed by: gj
* This is another MFC candidate.joerg2001-03-251-2/+2
| | | | | | | | | | | Fix a serious bug in sppp where anyone could obtain a successful PAP authentication by supplying a null password. I've only stumpled across the PR while browsing for all sppp-related PRs. Should we also file a security advisory for this? PR: 21592 Submitted by: <dli@3bc.de> Dirk Liebke
* Remove some unused stuffpeter2001-03-252-54/+2
|
* Allow bog-standard ioctls through. There are really handled inmarkm2001-03-251-1/+9
| | | | higher layers, but there needs to be a "no-error" return here.
* Remove an extraneous declaration.brian2001-03-251-1/+0
|
* Move the atomic() mbstat.m_drops incrementing to the MGET(HDR) andbmilekic2001-03-242-22/+13
| | | | | | | MCLGET macros in order to avoid incrementing the drop count twice. Otherwise, in some cases, we may increment m_drops once in m_mballoc() for example, and increment it again in m_mballoc_wait() if the wait fails.
* mega-commit.cg2001-03-2444-1892/+2201
| | | | | | | | | | | | | | | this introduces a new buffering mechanism which results in dramatic simplification of the channel manager. as several structures have changed, we take the opportunity to move their definitions into the source files where they are used, make them private and de-typedef them. the sound drivers are updated to use snd_setup_intr instead of bus_setup_intr, and to comply with the de-typedefed structures. the ac97, mixer and channel layers have been updated with finegrained locking, as have some drivers- not all though. the rest will follow soon.
* Catch these modules up with obrien's recent cleanup commit.peter2001-03-244-18/+22
|
* Drop 'KMODDEPS = snd_pcm' - it isn't used.peter2001-03-241-1/+0
|
* Back out 'KMODDEPS = miibus' addition in last commit. This isn't used.peter2001-03-241-1/+0
|
* Add #if'ed support for the future option CAM_NEW_TRAN_CODE.groudier2001-03-241-57/+236
|
* when writing to one of the setup registers, a 32-bit write is required.cg2001-03-241-2/+3
| | | | | | | | this apparently fixes problems initialising certain es1371/es1373/ct5880 revisions. Confirmed working by: Richard J Kuhns <rjk@grauel.com> PR: i386/25944
* Add bandaid to get ISA only systems to link.sos2001-03-241-0/+44
|
* Fix typo ); -> ,asmodai2001-03-241-1/+1
|
* Unbreak build on alpha.ume2001-03-244-9/+1
| | | | | | | - Move in_port_t to sys/types.h. - Nuke in_addr_t from each endian.h. Reported by: jhb
* Restore the careful preservation of .depend (rev 1.78 of Makefile.i386)obrien2001-03-245-10/+20
| | | | | | | | that I removed in my last commit dealing with `make depend' bogons. This commit has some races, but hopefully they are too short to matter. Unfortuneatly, neither .newdep nor .olddep is removed by `make clean'. Submitted by: bde
* Silence (harmless) warnings.markm2001-03-241-0/+1
|
* Round 1 of Brucification inspired changes.peter2001-03-241-3/+3
|
* Cleaner way of adding -fschg (ie, correctly implement).obrien2001-03-241-2/+1
| | | | | | | "INSTALLFLAGS" belongs to individual Makefiles. "_INSTALLFLAGS" is for global additions. Submitted by: bde
* Fix a problem where we were switching npxproc from underneath processesobrien2001-03-243-0/+138
| | | | | | | | | running in process context in order to run interrupt handlers. This caused a big smashing of the stack on AMD K6, K5 and Intel Pentium (ie, P5) processors because we are using npxproc as a flag to indicate whether the state has been pushed onto the stack. Submitted by: bde
* Use (..., "%s", foo) instead of (..., foo) to avoid a warning about ajhb2001-03-241-1/+1
| | | | | non-constant format string when calling kthread_create() to create an ithread.
* - Define and use MAXCPU like the alpha and i386 instead of NCPUS.jhb2001-03-242-6/+10
| | | | | - Sort the sys/mutex.h include in mp_machdep.c into a closer to correct location.
* Stick a prototype for handleclock() in machine/clock.h and include itjhb2001-03-242-0/+2
| | | | interrupt.c to quiet a warning.
* This is kind of a hack, but it should work. Currently, world is brokenpeter2001-03-242-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | because libc/rpc/key_call.c references uname(), and ps/print.c also defines uname(), and ps is linked statically. This leads to a symbol clash. The userland uname(3) kinda sucked anyway as the hostname etc was too short. And since the libc rpc interface now uses the utsname.nodename which gets truncated, I was tempted into doing something about it. Create a new userland uname function, called __xuname() which takes an extra argument that allows you to change the size of the fields. uname() becomes a static inline function in sys/utsname.h that passes the extra argument in. struct utsname has its field members expanded by default now in userland. We still provide a 'uname' externally linkable function for things that either think that they ``know'' the utsname format and assume 32 character strings and bypass the include file, or objects that are linked against old libcs. ie: just about every plausible case that I can think of is covered. Should we ever change the default lengths again, a libc major bump should not be required as the size is now passed to the function. XXX the uname(2) in the kernel is for FreeBSD 1.1 binary compatability! All the uname(3) functions that are exported to userland are actually implemented in libc with sysctl. uname(1) uses sysctl directly and does not call uname(3). PR: bin/4688
* Just use the proc lock to protect read accesses to p_pptr rather than thejhb2001-03-241-4/+4
| | | | more expensive proctree lock.
* Protect p_wmesg and p_wchan with sched_lock while checking for deadlocksjhb2001-03-241-0/+3
| | | | with other byte range file locks.
* Slightly de-bogify the uname() declarations.peter2001-03-241-8/+0
| | | | | | 1: there is no global 'struct utsname utsname' in the kernel. 2: the __P() stuff handles the __STDC__ stuff, so the extra ifdef is redundant.
* add support for opti924 and opti930 chipscg2001-03-242-7/+270
| | | | | | | | | both should work in non-pnp mode, the 924 should also work in its rather braindead pnp mode- it will adopt port 0x530 unless given hints due to it starting up in soundblaster mode and thus not requesting a valid mss port address. Submitted by: George Reid <greid@ukug.uk.freebsd.org>
* Check that background fsck operation is being done on a ufs filesystem.mckusick2001-03-231-0/+2
| | | | Obtained from: Robert Watson <rwatson@FreeBSD.org>
* Fix the problem with some drives not reporting back when thesos2001-03-233-15/+19
| | | | | | are busy blanking and erasing CD-RW media. This fixes burncd's premature returns from blanking/erasing that caused trouble.
* (MFC candidate, see below).joerg2001-03-231-0/+14
| | | | | | | | | | | | | | | | | | | | When we get an Open event in stopped state, experience shows that this is usually means we've somehow missed a previous Down event. This has occasionally bitten people for the IPCP layer with ISDN, apparently a previously aborted IPCP negotiation must have caused this. As a bandaid, we quickly pretent a Down event by advancing to starting state; this effectively implements the `restart' option mentioned in RFC 1663. While i'm not yet fully convinced this is the best thing to do (and is fully compliant with RFC 1661), i've seen a number of reports here on the German mailing lists where people have been bitten by the previous behaviour which usually causes quickly looping ISDN reconnects (thus loss of money...), and where just this patch fixes the problem. For this, i'd even like to see it MFC'd if possible. Submitted by: Helmut Kreft <kreft@zeus.ai-lab.fh-furtwangen.de>
* fix linux_times() to take into account linux's value of CLK_TCK on the alpha.gallatin2001-03-231-0/+5
| | | | | | Previously, results were off by a factor of 10 Tested by: Yoriaki FUJIMORI <fujimori@grafin.fujimori.cache.waseda.ac.jp>
* IPv4 address is not unsigned int. This change introduces in_addr_t.ume2001-03-232-1/+2
| | | | | | | PR: 9982 Adviced by: des Reviewed by: -alpha and -net (no objection) Obtained from: OpenBSD
* A few fixes..archie2001-03-233-39/+15
| | | | | | | | | | | | | 1 Make promiscuous mode work 2 A few header additions 3 Allow device config before IFF_UP These were (respectively)... Submitted by: Allan Saddi <asaddi@philosophysw.com> Submitted by: Dave Cornejo <dave@dogwood.com> Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> Tested by: David Wolfskill <dhw@whistle.com>
* * power up the external amplifiercg2001-03-231-1/+2
| | | | * after chip reset, reapply power settings
* replace calls to non-existant bail() subroutine with calls toalfred2001-03-232-4/+4
| | | | the die() builtin function.
* Merged from sys/i386/isa/npx.c revision 1.93.kato2001-03-231-3/+3
|
* Merged from sys/i386/i386/machdep.c revision 1.445.kato2001-03-232-0/+2
|
* Now that I have a pair of CreditCard Netwave Adapter, tweak the ejectimp2001-03-231-2/+0
| | | | | case slightly to not print unload when the upper layers print a message as well.
* Export intrnames and intrcnt as sysctls (hw.nintr, hw.intrnames andtmm2001-03-2315-15/+65
| | | | | | hw.intrcnt). Approved by: rwatson
* devfs convertion used VINUMRMINOR incorrectly (passing args inalfred2001-03-221-3/+3
| | | | | | backwards order) Submitted by: Bernd Walter <ticso@mail.cicely.de>
OpenPOWER on IntegriCloud