summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Must call drain_output() before checking the dirty block listmckusick2002-01-111-8/+10
| | | | | | | | | in softdep_sync_metadata(). Otherwise we may miss dependencies that need to be flushed which will result in a later panic with the message ``vinvalbuf: dirty bufs''. Submitted by: Matthew Dillon <dillon@apollo.backplane.com> MFC after: 1 week
* Fixed some style bugs (disordered SRCS and garbage comment near EOF).bde2002-01-111-2/+1
|
* Make the alpha boot1 work on filesystems that have a block sizeiedowse2002-01-111-24/+41
| | | | | | | | | | | larger than 8k. We now use 4k buffers regardless of the filesystem block size, so there is no longer a static limit. Simply increasing the buffer size from 8k to 16k as done on the i386 doesn't work on the alpha, probably because it causes us to overshoot boot1's 48k runtime memory limit. Tested by: naddy
* It turns out that when a broadcast packet is looped back, the checksumsjesper2002-01-111-0/+13
| | | | | | | | | | | | are checked on the way in even if they were not calculated on the way out. This fixes rwhod PR: 31954 Submitted by: fenner Approved by: fenner MFC after: 1 week
* Drop <bsd.man.mk> support from <bsd.kmod.mk>.ru2002-01-11114-135/+2
| | | | Not objected to by: -current
* Fix a panic condition in icmp_reflect() introduced in rev. 1.61.ru2002-01-111-2/+2
| | | | | | | | | | (We should be able to handle locally originated IP packets, and these do not have m_pkthdr.rcvif set.) PR: kern/32806, kern/33766 Reviewed by: luigi Fix tested by: Maxim Konovalov <maxim@macomnet.ru>, Erwin Lansing <erwin@lansing.dk>
* Add missing prototype for pmap_unmapdev().jhb2002-01-111-0/+1
|
* genassym builds need the -fno-common stripped out.peter2002-01-113-5/+5
|
* Export cd9660_wchar2char symbol, because we need it in the pluggablesobomax2002-01-111-0/+1
| | | | unicode decoding klds (cd9660_unicode port).
* Turn on unconditional symbol export for modules whose API ismsmith2002-01-1110-0/+20
| | | | | not clear enough, will require additional analysis, or will require some input from their maintainers.
* Export symbols that constitute APIs defined by thesemsmith2002-01-1115-0/+142
| | | | | | | | modules. Note that in the case of 'mii' the API is not clearly defined, and the symbols exported represent a subset defined by current usage.
* Reverse the sense of EXPORT_SYMS. If EXPORT_SYMS is notmsmith2002-01-111-4/+7
| | | | | | | | | | defined, no symbols are exported from the module. This is the typical configuration for most device drivers and standalone modules; only infrastructure modules or those with special requirements typically need to export symbols. Don't print the objcopy commands as they are run when converting symbols; they're bulky and annoying in many cases.
* Catch the netboot version up to the main loader. This is pretty bogus.jhb2002-01-111-0/+5
| | | | | | | | All the alpha loaders should use the same version file. Also, we might should merge the various loaders (cdboot, loader, netboot) into one loader that can boot off of disks, CD's, and network devices. The version bump is needed so the FICL scripts won't bomb out thinking that the netboot binary is too old.
* Unrevert revision 1.12. Revision 1.14 backed this out saying it wasjhb2002-01-101-7/+17
| | | | | | | backing out the 1024 sector boot0, but revision 1.12 had nothing to do with that. Instead, it documented various compile time options for boot0 and allowed them to be overridden via make.conf or options on the make command line.
* Add vlruvp() routine - implements LRU operation for vnode recycling.dillon2002-01-101-0/+46
| | | | | | | | We calculate a trigger point that both guarentees we will find a sufficient number of vnodes to recycle and prevents us from recycling vnodes with lots of resident pages. This particular section of code is designed to recycle vnodes, not do unnecessary frees of cached VM pages.
* Fix reversed definitions for the bits that select half vs. full duplex.archie2002-01-101-4/+4
| | | | Submitted by: Darren Croke <djc@packetdesign.com>
* Do not pull quota entries of the cache-list if they have alreadyphk2002-01-101-1/+2
| | | | | | | | | | | | | been removed from the cache-list as part of a previous unmount. This would result in panics (page fault in dqflush()) during subsequent umounts provided that enough distinct UID's to actually make the hash do something are active. This can probably explain a number of weird quota related behaviours. PR: 32331 maybe more. Reproduced by: Søren Schrørder <sch@cybercity.dk>
* Clear the single-step flag for signal handlers. This fixes bogus tracebde2002-01-108-28/+25
| | | | | | | | | | | | | | | | traps on the first instruction of signal handlers. In trap.c:syscall(), fake a trace trap if the single-step flag was set on entry to the kernel, not if it will be set on exit from the kernel. This fixes bogus trace traps after the last instruction of signal handlers. gdb-4.18 (the version in FreeBSD) still has problems with the program in the PR. These seem to be due to bugs in gdb and not in FreeBSD, and are fixed in gdb-5.1 (the distribution version). PR: 33262 Tested by: k Macy <kip_macy@yahoo.com> MFC after: 1 day
* Back out previous revision, which will be applied directly tosheldonh2002-01-101-1/+0
| | | | the RELENG_4 branch when approved by the release engineers.
* Further fixes related to the interface renaming. Now that wemarcel2002-01-101-52/+12
| | | | | | | | | | | | | | properly translate the interface name passed to us, make sure we also translate correctly before we return the list of interfaces with the SIOCGIFCONF ioctl. It is common to use the interface names returned by that ioctl in further ioctls, such as SIOCGIFFLAGS. Remove linux_ifname as it is no longer used. Also remove ifname_bsd_to_linux as it cannot be used anymore now that linux_ifname is removed (was deadcode anyway). Reported and tested by: Andrew Atrens <atrens@nortelnetworks.com>
* genassym depends on the presence of common variables, disable the usemsmith2002-01-102-2/+2
| | | | of -fno-common in this case.
* Eliminate the use of commons in the kernel and modules,msmith2002-01-104-4/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | simplifying the module linking process and eliminating the risks associated with doubly-defined variables. Cases where commons were legitimately used (detection of compiled-in subsystems) have been converted to use sysinits, and any new code should use this or an equivalent practice as a matter of course. Modules can override this behaviour by substituting -fno-common out of ${CFLAGS} in cases where commons are necessary (eg. third-party object modules). Commons will be resolved and allocated space when the kld is linked as part of the module build process, so they will not pose a risk to the kernel or other modules. Provide a mechanism for controlling the export of symbols from the module namespace. The EXPORT_SYMS variable may be set in the Makefile to NO (export no symbols), a list of symbols to export, or the name of a file containing a newline-seperated list of symbols to be exported. Non-exported symbols are converted to local symbols. If EXPORT_SYMS is not set, all global symbols are currently exported. This behaviour is expected to change (to exporting no symbols) once modules have been converted. Reviewed by: peter (in principle) Obtained from: green (kmod_syms.awk)
* Fix typo in function name.wes2002-01-102-2/+2
| | | | | Reviewed by: peter@ Obtained from: mux@sneakerz.org
* Add getcontext, setcontext, makecontext, and swapcontext prototypesdeischen2002-01-101-0/+7
| | | | | | to ucontext.h. Approved by: -arch
* Use a spare slot in the machine context to identify the context formatdeischen2002-01-102-1/+5
| | | | | | | | | | | and to inherently verify its validity. Alpha signal frames and trap frames are different; this field identifies which format the context is Set the machine context format (signal frame) before copying it out when sending a signal. Approved by: -arch
* Use a spare slot in the machine context for a flags word to indicatedeischen2002-01-104-2/+10
| | | | | | | | | | whether the machine context is valid and whether the FPU state is valid (saved). Mark the machine context valid before copying it out when sending a signal. Approved by: -arch
* Terminate requests in nfs_sigintr() if the filesystem is in theiedowse2002-01-101-1/+4
| | | | | | | | | | | | process of being unmounted. This allows forced NFS unmounts to complete even if there are processes stuck holding the mnt_lock while the server is down. The mechanism is not ideal in that there is a small chance we might accidentally cancel requests during a failed non-forced unmount attempt on that filesystem, but this is not really a big problem. Also, move the tsleep() in nfs_nmcancelreqs() so that we do not sleep in the case where there are no requests to be cancelled.
* Change dounmount() to return EBUSY in the non-MNT_FORCE case if weiedowse2002-01-102-2/+16
| | | | | | | can't acquire the mnt_lock without blocking. Normally non-forced unmount attempts return EBUSY quickly if any vnodes are active, so this just extends that behaviour to cover the per-mount mnt_lock too.
* o Revert kern_sig.c#1.143, as cr_cansignal() doesn't currently permitrwatson2002-01-101-3/+14
| | | | | | | a number of desirable cases in which SIGIO/SIGURG are delivered. We'll keep tweaking. Reported by: Alexander Kabaev <ak03@gte.com>
* Implement 2 small helper functions:mdodd2002-01-102-0/+37
| | | | | pci_find_bsf() - Find a device_t by bus/slot/function. pci_find_device() - Find a device_t by vendor/device ID.
* Staticise the random_state array.msmith2002-01-102-5/+3
| | | | Reviewed by: markm
* Remove KMODDEPS, this is not used on -current and should not be leftpeter2002-01-091-1/+0
| | | | around as a bad example.
* Fix S3 breakage.takawata2002-01-092-2/+4
| | | | | Now AcpiEnterSleep() is light enough, so flushing cache before the function is not too early.
* Increase BSIZEMAX from 8k to 16k, so that we can reliably boot fromiedowse2002-01-092-2/+2
| | | | filesystems with 16k blocks.
* Use KMODDEPS to document module dependencies on libiconv andsheldonh2002-01-091-0/+1
| | | | | | | | | | | | | | libmchain. KMODDEPS seems to be a no-op in HEAD, but is required in RELENG_4, where MODULE_DEPEND seems to be a no-op. Therefore, this change is harmless in -CURRENT, but will fix the dependencies when merged to RELENG_4, where they are currently not registered! PR: kern/33625 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
* Replace spaces after #defines with tabs; this makes all #defineskbyanc2002-01-092-26/+26
| | | | consistent in their adherence with style(9).
* o Correct a 32/64-bit error in the initialization of aiol_zone, specifically,alc2002-01-091-1/+1
| | | | sizeof(int) is not the size of a pointer.
* Add a new sysinit SI_SUB_DEVFS. Devfs hooks into the kernel at SI_ORDER_FIRST,msmith2002-01-093-2/+21
| | | | | | and devices can be created anytime after that. Print a warning if an atttempt is made to create a device too early.
* GC fast_vfork; it's not actually referenced anywhere.silby2002-01-091-4/+0
| | | | MFC after: 3 weeks
* Move the make_dev call from the cn_probe to a sysinit that runs atjake2002-01-091-1/+9
| | | | SI_SUB_DRIVERS. cnprobe is too early.
* Define the kern.cam sysctl in the cam layer, rather than multiply in severalmsmith2002-01-095-8/+13
| | | | | | | peripheral drivers. Remove Ken's comment to the effect that this needed to be done. Staticise camnet_ih and cambio_ih.
* Staticise a debugging variable.msmith2002-01-091-1/+1
| | | | Submitted by: non
* Staticise the aac devclass.msmith2002-01-095-6/+5
|
* holdsock is gone, remove the prototypealfred2002-01-091-1/+0
|
* Sockets are called 'so' not 'sp'.alfred2002-01-091-8/+8
|
* Revert 1.81; 1.19 fixed this already in a different way.silby2002-01-092-6/+2
|
* Use a sysinit to initialise the devfs hooks in kern_conf.c rather than commonmsmith2002-01-091-3/+10
| | | | | | variables. Reviewed by: phk (in principle)
* Add quirk for DIVA USB Mp3 Player.sobomax2002-01-081-0/+8
| | | | | | | PR: kern/33638 Submitted by: Olexander Kunytsa <kunia@x-telecom.net> MFC after: 3 days (pending re's approval)
* Regenerate from 1.26 pccarddevsimp2002-01-081-2/+23
|
* Catch up to NetBSD:imp2002-01-081-1/+8
| | | | | | | 1.156 pooka; Socket Low-Power CF WLAN 1.155 ichiro; IBM Smart Capture Card II 1.152-154 ichiro; Fujitsu CF EtherCard and FMV-181,182,182A 1.151 christos; Symbol Spectrum24
OpenPOWER on IntegriCloud