summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Put the scheduler, vmdaemon, and pagedaemon kthreads back under Giant forjhb2001-06-202-19/+1
| | | | | now. The proc locking isn't actually safe yet and won't be until the proc locking is finished.
* Constify the module name. This silences a few warnings ("initializationdes2001-06-191-2/+2
| | | | | | | discards qualifier"), and probably adds a few where module names are compared to or passed as non-const strings. Not-objected-to-by: bde
* Actually document TCPDEBUG.wollman2001-06-192-2/+6
|
* Fix punctuation in comment.wollman2001-06-192-4/+4
|
* Suppress update ifnet.iflastchange when processing packets for SNMPsumikawa2001-06-191-1/+0
| | | | | | | | | | | | | requirements(RFC1573, interface MIB). This change for 4.4BSD was first introduced in if_ethersubr.c:1.17->1.18. BTW, iflastchange on all of IFs are inconsistent. e.g. ether, tun: update fddi, tokenring, ppp: not update I'll make patch later. Obtained from: KAME MFC after: 2 weeks
* Add IFT_L2VLAN for supported NDP type. IPv6 over VLAN works now.sumikawa2001-06-192-0/+9
| | | | | Obtained from: KAME MFC after: 2 weeks
* More verbose version of identifycpu() which also contains many more CPUbenno2001-06-192-48/+98
| | | | | | | | versions/revisions. Modified from the original patch to mark G3 and G4 processors as such. Submitted by: Jeff Schottmiller <jeff@neoscale.com>
* Convert the elf loader to the new linker set layout for elf files.peter2001-06-191-6/+7
| | | | | | This should make dependencies at load time work like before. Oops. Noticed by: markm
* Fix some of the worst formatting bug (seperate commit)peter2001-06-191-2/+4
|
* Fix some memory bugs with regard to jumbo buffers. I made a mistake whenwpaul2001-06-184-16/+10
| | | | | | | | | | converting from the old external mbuf buffer code to the new (with the MEXTADD() macro). Also free free list memory correctly in foo_free_jumbo_mem() routines: grab the head of the list, then remove it, _then_ free() it. This fixes the memory corruption problem I've been chasing in the level 1 driver.
* Added CTLTYPE_{UINT|LONG|ULONG} types.pirzyk2001-06-181-9/+12
| | | | | | PR: kern/21132 Reviewed by: no objections to by -arch MFC after: 1 month
* After one too many PRs on the subject, bite the bullet and define IOV_MAXwollman2001-06-185-1/+18
| | | | | | | | and its associated constants. Implement _SC_IOV_MAX in the usual way. Be a bit sloppy about the namespace question; this should get cleared up in time for 5.0. MFC after: 1 month
* stop csa from panicing in clkrun_hack() - we were using free'd memorycg2001-06-181-4/+3
| | | | | | don't leak memory in clkrun_hack() Submitted by: grog (partially)
* Lock Giant in postsig() for the KTRACE case as ktrpsig() needs Giant whenjhb2001-06-181-0/+4
| | | | | | it writes out to the trace file. Reported by: peter, gallatin, and others
* Initialize mutexes needed early on all in the same place so that thejhb2001-06-182-30/+12
| | | | | | startup routine more closely matches that of alpha and ia64. At some point the common mutexes shared across all platforms probably should move into sys/kern_mutex.c.
* - Add support for decoding syscall names. (Brought over from the new alphajhb2001-06-182-74/+122
| | | | | | | | | | | | trace code that was brought over from NetBSD.) - Check for "syscall_with_err_pushed" as the label prior to a syscall trap frame rather than "Xlcall_syscall" and "Xint0x80_syscall". We don't have a valid trapframe during the short range of code that those two symbols now cover. - Simplify db_next_frame() to avoid duplicating the code for the different trap frame types. - Don't try to trace a swapped-out process. (Brought over from NetBSD via the new alpha trace code.)
* Include sys/pcpu.h to get the prototype for globaldata_register() to quietjhb2001-06-186-0/+6
| | | | a warning.
* Call bus_teardown_intr when csa_attach fails after the interrupt hastmm2001-06-181-31/+29
| | | | | | | | been set up. PR: kern/28178 Reviewed by: cg MFC after: 2 weeks
* Use linker_reference_module() instead of hard-coding the digi_*brian2001-06-181-14/+7
| | | | module path.
* Add linker_reference_module().brian2001-06-182-0/+30
| | | | | This function loads a module if required, otherwise bumps the reference count -- the opposite of linker_file_unload().
* Credit John Prince and Eric Hernes for their work.brian2001-06-183-1/+9
|
* call pfxlist_onlink_check() at the end of in6_tmpifadd(), to make sureume2001-06-181-0/+11
| | | | | | | a temporary address generated from a detached public one also detached. Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Obtained from: KAME
* Don't remove the SI_CHEAPCLONE for unsupported minorsbrian2001-06-181-1/+2
|
* Remove the SI_CHEAPCLONE flag when hanging resources off the dev_tbrian2001-06-181-0/+2
|
* use devclass_get_maxunit() correctlycg2001-06-183-4/+4
|
* revise dsp_clone() to return the first nonbusy channel instead of simplycg2001-06-174-15/+17
| | | | | | cycling channel numbers. remove unused fields from struct snddev_info.
* fix a potential panic in dsp_clone() if no pcm devices were detectedcg2001-06-171-0/+2
|
* Don't assume that resource type is ioport and rid equal 0.nyan2001-06-172-10/+12
|
* The final commit for the first phase of PowerPC support.benno2001-06-175-44/+145
| | | | | | This adds the config stuff needed to build kernels. Reviewed by: obrien
* Allocate all resources using keyboard controller.nyan2001-06-172-16/+74
|
* Move cardbus and pccard bus bridge devices to near the bridge chips. Thisimp2001-06-171-2/+2
| | | | | is so that all the pccard options are together and this reduces diffs with GENERIC.
* MFGENERIC:imp2001-06-171-12/+9
| | | | | | | | | 1.307 Turn on kernel debug support 1.309 Turn off pcm 1.311 move wx to miibus chipsets 1.312 Comment out USERCONFIG Reminded by: mihira-san <sanpei@sanpei.org>
* Move setugid() a little sooner to before we release tracing in casepeter2001-06-161-2/+3
| | | | crdup() or change_e*id() block on malloc() or mutex.
* Some people are having problems with insert/eject. Add some debugimp2001-06-161-0/+4
| | | | | | | | information until the problems can be tracked down. Right now these are unconditional, but later it will be hidden behind a boot verbose. Also, if there are no events listed in the event mask, return right away. Specifically avoid writing back interrupt acks in this case.
* Use INTR_TYPE_AV for the interrupt handlers because:peter2001-06-167-8/+8
| | | | | | | | | 1: most drivers are sensitive to timing, and 2: the handlers are MPSAFE and need a chance to get into the kernel before some other non-mpsafe handler blocks the ithread on Giant in shared irq cases. Reviewed by: cg (in principle)
* Add INTR_TYPE_AV so that we can get to the PI_AV priority in the ithreadpeter2001-06-162-1/+5
| | | | | | handlers. This is beneficial since it means that pcm's MPSAFE handler can get run before things that will block on Giant in the shared irq case.
* Clean up some junk. The bogus trapframe on the stack was removed from thepeter2001-06-161-7/+0
| | | | MI code in August 2000 elsewhere.
* use a global devclass for all drivers - i'm not entirely sure why thiscg2001-06-1630-929/+936
| | | | | | | | | | | | | | | worked before. mixer, dsp and sndstat are seperate devices - give them their own cdevsws instead of demuxing requests sent to a single cdevsw. use the si_drv1/si_drv2 fields in dev_t structures for holding information specific to an open instance of mixer/dsp. nuke /dev/{dsp,dspW,audio}[0-9]* links - this functionality is now provided using cloning. various locking fixes.
* less warningume2001-06-162-82/+82
| | | | warning: cast discards qualifiers from pointer target type
* Fix "alignemnt" typo.alex2001-06-166-6/+6
|
* This file was a horrible mixture of styles old and new.markm2001-06-161-27/+16
| | | | Apply style(9).
* OpenFirmware kernel support, as used by the PowerPC and hopefully otherbenno2001-06-163-7/+357
| | | | | | | | | ports later on. This includes the basic MI interface routines as well as a console driver. The MD code is kept in the MD directories. Reviewed by: obrien
* This commit (along with one pending in sys/dev/ofw and one in sys/conf) givebenno2001-06-1625-487/+606
| | | | | | | | | | | | | us our first minimal glimpse of PowerPC support. With this code we can get to the "mountroot>" prompt on my Apple iMac. We can't get any further due to lack of clock and interrupt handling, among other things. This does however mean that pmap and VM are initialising. We're fairly dependant on OpenFirmware at this point, but I hope to add support for other classes of firmware at a later stage. Reviewed by: obrien, dfr
* Fix warnings:jlemon2001-06-161-0/+1
| | | | | 112: warning: cast to pointer from integer of different size 125: warning: cast to pointer from integer of different size
* Save the IRQ that we get in pci attachment.imp2001-06-163-15/+15
| | | | | | | | | | | Print type of pci bridge we find. Force the IRQ of pci bridges upon all its children. Allocate the resources on behalf of the bridge when we're testing to see if they exist. This should help people who don't read updating instructions very well. This patch started out with an idea from Shigeru Yamamoto-san in -current.
* Work around what looks like a bad make(1) bug. For some reason,peter2001-06-161-5/+3
| | | | | | | | | | | | | | | | | | make(1) wants to build loader.sym *before* the .o files. Eliminating one seeminly intermediate step avoids the problem. Somehow, it seems that variables are not getting expanded at the right time. Any explanations would be appreciated... Changing: ${BASE}.sym: ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${LD} ... To: BASEOBJS= ${OBJS} ${LIBSTAND} ${LIBFICL} ${LIBALPHA} ${CRT} vers.o ${BASE}.sym: ${BASEOBJS} echo ${BASEOBJS} ${LD} ... .. the echo only shows LIBFICL, CRT and vers.o. ${OBJS} is not included.
* On PC-98, map IRQ 6 to IRQ 7 at the pcic level. That is, when we'reimp2001-06-163-4/+17
| | | | | | | | | | | | told to use IRQ 6, progam the pcic to use irq 7 instead. Evidentally, at least some of the cards are wired this way. If you want to use irq 6, configure it. All the mapping is done just before we set the interrupt registers. See [FreeBSD98-testers 5064] for details. Added commentary about valid interrupts on some CBUS pc98 CL PD6722 based cards. Submitted by: Hiroshi TSUKADA-san <hiroshi@kiwi.ne.jp>
* style(9) and remove a left over Alpha commentobrien2001-06-164-54/+60
|
* style cleanupobrien2001-06-162-44/+46
|
* Add PC-9821RA-E01. This appears that PC-9821 Ra20 has this eitherimp2001-06-161-0/+1
| | | | | | | built in, or as an addon card (My Japanese isn't quite good enough to know which). [FreeBSD98-testers 5098] contains all the details. Submitted by: Kawanobe Koh-san <kawanobe@st.rim.or.jp>
OpenPOWER on IntegriCloud