summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow threading libraries to register their own lockingkan2003-05-2920-480/+558
| | | | | | | | | | implementation in case default one provided by rtld is not suitable. Consolidate various identical MD lock implementation into a single file using appropriate machine/atomic.h. Approved by: re (scottl)
* Use strsep() in preference to manual string parsing for Biba and MLSrwatson2003-05-292-97/+80
| | | | | | | label internalization. Use sensible variable names. Include comments. Doesn't fix any known bugs, but may fix unknown ones. Approved by: re (scottl)
* Don't return -1 and abort if msg.msg_controllen is 0. Formbr2003-05-291-2/+1
| | | | | | | | some strange reason recvmsg() never sets errno to EAGAIN on a non-blocking socket and just returns 0. Reviewed by: jhb Approved by: re
* Assorted mdoc(7) fixes.ru2003-05-291-23/+25
|
* Assorted mdoc(7) fixes.ru2003-05-299-167/+227
| | | | Approved by: re (blanket)
* When loading a module that contains a sysctl which is already compiledmux2003-05-291-1/+24
| | | | | | | | | | in the kernel, the sysctl_register() call would fail, as expected. However, when unloading this module again, the kernel would then panic in sysctl_unregister(). Print a message error instead. Submitted by: Nicolai Petri <nicolai@catpipe.net> Reviewed by: imp Approved by: re@ (jhb)
* Make the mutex static initializers look more like the one formtm2003-05-291-25/+19
| | | | | | | | | condition variables. Cosmetic. Explicitly compare against PTHREAD_MUTEX_INITIALIZER. We shouldn't encourage calls to the mutex functions with null pointers to mutexes. Approved by: re/jhb
* Use a static lock to ake sure pthread_cond_* functions calledmtm2003-05-291-2/+20
| | | | | | | | | | | | from multiple threads don't initialze the same condition variable more than once. Explicitly compare cond pointers with PTHREAD_COND_INITIALIZER instead of NULL. Just because it happens to be defined as NULL is no reason to encourage the idea that people can call those functions with NULL pointers to a condition variable. Approved by: re/jhb
* Missing unlock.mtm2003-05-291-0/+2
| | | | Approved by: re/jhb
* Don't hold the active thread list lock when signaling the gc thread.mtm2003-05-293-12/+21
| | | | | | | | | The dead list thread is sufficient for synchronization. Retire the arch_id (ldt array slot) in the gc thread instead of the doing it in the thread itself. Approved by: re/jhb
* It's unnecessary to lock the thread during creation. Simply extendmtm2003-05-291-5/+2
| | | | | | the scope of the active thread list lock. Approved by: re/jhb
* Fix a problem introduced in the last commit. sa and cmmbr2003-05-291-2/+2
| | | | | | | | | are not initialized at this place. Move the initializing before the non-blocking check. Submitted by: Marius Strobl <marius@alchemy.franken.de> Reviewed by: jhb Approved by: re
* Add an INVARIENTS only check to make sure Giant is held if mbufdwmalone2003-05-291-0/+2
| | | | | | | allocation is attempted with M_TRYWAIT. Reviewed by: bmilekic Approved by: re (scottl)
* Grab giant in sendit rather than kern_sendit because sockargs maydwmalone2003-05-291-4/+6
| | | | | | | allocate mbufs with M_TRYWAIT, which may require Giant. Reviewed by: bmilekic Approved by: re (scottl)
* Completely disable interrupts (not just raise %pil) when calculating thetmm2003-05-291-4/+5
| | | | | | | | | | | | | | | | value to be written into tick_compare in tick_hardclock(). While we were taking care that the value to be written was at least TICK_GRACE ticks in the future, a vector interrupt could happen between calculating the value and writing it. If it took longer than TICK_GRACE to complete (which is doubtful for a single device-triggered vector interrupt, but quite likely for some IPIs), the value written would be in the past and tick interrupts (which drive hardclock and statclock) would stop until %tick wraps around, which takes a long time. Also, increase TICK_GRACE from 1000 to 10000 for good measure. Reported by: kris Reviewed by: jake Approved by: re (scottl)
* Don't really spin on a spinlock; silently convert it to the samedeischen2003-05-298-32/+142
| | | | | | | | | | | | low-level lock used by the libpthread implementation. In the future, we'll eliminate spinlocks from libc but that will wait until after 5.1-release. Don't call an application signal handler if the handler is the same as the library-installed handler. This seems to be possible after a fork and is the cause of konsole hangs. Approved by: re@ (jhb)
* This commit was generated by cvs2svn to compensate for changes in r115379,mbr2003-05-291-0/+8
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Use non-blocking mode for amd(8) too. The fix will be partmbr2003-05-291-0/+8
| | | | | | | | | | | | | | | | of the next amd(8) snap. Reviewed by: rwatson Approved by: re Obtained from: NetBSD
* | Move the sysctls of the misalignment handler to where they belongmarcel2003-05-293-26/+18
| | | | | | | | | | | | and use OID_AUTO instead of fixed IDs. Approved by: re@ (blanket)
* | Fix what I think is a cut-n-paste bug: use OID_AUTO for themarcel2003-05-291-1/+1
| | | | | | | | | | | | | | print_usertrap sysctl instead of CPU_UNALIGNED_PRINT. The latter is used already. Approved by: re@ (blanket)
* | Merge the following from the English version:rushani2003-05-292-14/+14
| | | | | | | | | | | | | | 1.155 -> 1.156 hardware/common/dev.sgml 1.572 -> 1.573 relnotes/common/new.sgml Approved by: re (bmah)
* | Merge the following from the English version:hrs2003-05-282-49/+297
| | | | | | | | | | | | | | 1.36 -> 1.38 errata/article.sgml 1.553 -> 1.572 relnotes/common/new.sgml Approved by: re (bmah)
* | - Fix to use the official vendor name (s/Melco/MELCO/).hrs2003-05-284-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | hardware/common/dev.sgml Pointed out by: rushani Approved by: re (bmah) - Fix a typo. relnotes/common/new.sgml Approved by: re (bmah)
* | Fix off-by-one and initialization errors which prevented sshd fromdes2003-05-281-1/+2
| | | | | | | | | | | | | | restarting when sent a SIGHUP. Submitted by: tegge Approved by: re (jhb)
* | This commit was generated by cvs2svn to compensate for changes in r115367,njl2003-05-281-2/+2
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Revert to using TABLE_ID_DSDT as the default. It looks like the dynamicnjl2003-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ID allocation is not there yet. This fixes a few warnings about \_OS_ not being found and an S3 freeze for one user. Re-staticize AcpiNsRemoveReference() since it is not needed elsewhere. Approved by: re (scottl)
* | | In cluster_wbuild(), initialise b_iocmd to BIO_WRITE before callingiedowse2003-05-281-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buf_start() to avoid triggering a panic in softdep_disk_io_initiation() if b_iocmd happened to be BIO_READ. The later initialisation of b_iocmd in cluster_wbuild() could probably be moved to before the buf_start() call, but this patch keeps the change as simple as possible. This is reported to fix occasional "softdep_disk_io_initiation: read" panics, especially on NFS servers. Reported by: Nick Hilliard <nick@netability.ie> Tested by: Nick Hilliard <nick@netability.ie> Approved by: re (rwatson)
* | | If AF_LOCAL is used, we need to use __msgread_withcred() instead ofmbr2003-05-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | just read() in non-blocking mode too. The reason is obvious. NetBSD uses a complete different way to get the credentials so this patch only applies to FreeBSD. Reviewed by: rwatson Approved by: re
* | | Fix amd(8) clients, if a FreeBSD mountd(8) server is used.mbr2003-05-281-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the special treatment of non-blocking mode in the "look ahead function" xdrrec_eof(). It currently assumes that the last read() in a row of several reads does not have zero lenght. If this is the case, svc_vc_stat() does return XPRT_MOREREQS, and the RPC-request aborts because there is no data to read anymore. To fix this, go back to the original version of the code for non-blocking mode until NetBSD comes up with another possible fix like this one in xdrrec_eof() if (rstrm->last_frag && rstrm->in_finger == rstrm->in_boundry) { return TRUE; } Return always FALSE in set_input_fragment() for non-blocking mode. Since this was not used in FreeBSD, I omitted it at the first time. Now we use this function and we should always return FALSE for it. Reviewed by: rwatson Approved by: re
* | | Fix stripping last path component when only one path component left.fjoe2003-05-281-2/+2
| | | | | | | | | | | | | | | PR: 52686 MFC after: 1 day
* | | From FSF Binutils CVS repo:obrien2003-05-281-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | 2003-04-09 Richard Henderson <rth@redhat.com> * elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>: Ignore relocations against r_symndx == 0. Requested by: kris,re(scottl)
* | | Replace a handrolled defrag function with m_defrag. The handrolledsilby2003-05-281-22/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function couldn't handle chains of > MCLBYTES, and it had a bug which caused corruption and panics in certain low mbuf situations. Additionally, change the failure case so that looutput returns ENOBUFS rather than attempting to pass on non-defragmented mbuf chains. Finally, remove the printf which would happen every time the low memory situation occured. It served no useful purpose other than to clue me in as to what was causing the panic in question. :) MFC after: 4 days
* | | Update AMD Features vector to include NX (page table entry no-execute bit)peter2003-05-271-5/+5
| | | | | | | | | | | | and LM (long mode) etc.
* | | Minimize the potential for deadlocks between an exiting thread and it'smtm2003-05-271-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | joiner by making sure all locks and unlocks occur in the same order. For the record the lock order is: DEAD_LIST, THREAD_LIST, exiting thread, joiner thread. Approved by: re/rwatson
* | | Revert part of the last commit. I don't know what I was smoking.mtm2003-05-271-2/+13
| | | | | | | | | | | | Approved by: re/rwatson
* | | Fix support for 256 MB aperture sizes on chipsets such as the 845 andjhb2003-05-272-10/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 865. The APSIZE register has a variable-sized field of enabled bits. To figure out how many bits a specific host bridge supports, write the maximum width and see how many bits are set in the hardware. We then use this mask for setting and getting the aperture size. Prior to this, the agp(4) driver would treat an aperture size of 256 MB as 128 MB and would not allocate enough physical memory for the GART as a result. MFC after: 3 days Sponsored by: The Weather Channel Approved by: re (rwatson)
* | | Grr, fix compile. The bane of trying to split out patches into twojhb2003-05-272-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | commits. Reported by: Lukas Ertl <l.ertl@univie.ac.at> With hat: re Pointy hat to: jhb
* | | This commit was generated by cvs2svn to compensate for changes in r115351,njl2003-05-272-4/+44
|\ \ \ | |/ / | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Fix false AE_NOT_FOUND messages, reported in NetBSD port-i386/20897.njl2003-05-272-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetBSD dsmethod.c rev 1.7 Fix parent-child loop problem Fix a reference count problem that may cause unexpected memory free Intel 20030512 ACPICA drop (nsalloc.c) Approved by: re (jhb) Obtained from: NetBSD, Intel Reported by: mbr, kochi AT netbsd.org
* | | Fix compile: the type is spelled bus_dmasync_op_t rather thanjhb2003-05-271-3/+3
| | | | | | | | | | | | | | | | | | bus_dmamap_sync_t. With hat: re
* | | Add support for the Intel 865 chipset.jhb2003-05-274-6/+20
| | | | | | | | | | | | | | | | | | MFC after: 3 days Sponsored by: The Weather Channel Approved by: re (murray)
* | | Remove the redundant declaration of bus_dmasync_op_t.scottl2003-05-271-4/+0
| | |
* | | MFbed: Translation updates: Sync with the English 5.1 relnotes.alex2003-05-2715-4783/+6528
| | | | | | | | | | | | Approved by: re (bmah)
* | | Modified release note: Add missing word in rue(4) item.bmah2003-05-272-2/+2
| | | | | | | | | | | | | | | Submitted by: murray Approved by: re (implicitly)
* | | A flushrs must be the first in an instruction group.marcel2003-05-272-0/+2
| | | | | | | | | | | | Approved by: re@ (blanket)
* | | Bring back bus_dmasync_op_t. It is now a typedef to an int, though thescottl2003-05-2728-45/+56
| | | | | | | | | | | | | | | | | | | | | | | | BUS_DMASYNC_ definitions remain as before. The does not change the ABI, and reverts the API to be a bit more compatible and flexible. This has survived a full 'make universe'. Approved by: re (bmah)
* | | Have the unwinder allocate memory with M_NOWAIT. The unwinder ismarcel2003-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | used by DDB and we cannot know in advance whether it's save to sleep. It often enough isn't. We may want to pre-allocate space to cover the most common cases without having to use malloc at all, but that requires some analysis. We leave that for later. Approved by: re@ (blanket)
* | | Fix fu{byte|word*} and su{byte|word*}:marcel2003-05-273-298/+902
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o If the address was not within user space we jumped to fusufault where we would clear pcb_onfault and return 0. There are two bugs here: 1. We never got to the point where we assigned the address of pcb_onfault to r15, which means that we would clobber some random memory location, including I/O space or ROM. 2. We're supposed to return -1 on error. o Make sure we have proper memory ordering for setting pcb_onfault, doing the memory access to user space and clearing pcb_onfault. For the fu* family of functions this means that we need a mf instruction, because we don't have acquire semantics on stores and release semantics on loads (hence st;ld cannot be ordered without intermediate mf). While here, implement casuptr() so that we are a (small) step closer to supporting libthr and deobfuscate the non-implementation of {f|s}uswintr. Approved by: re@ (blanket)
* | | Revision 1.99 of this file changed the allocation request frommarcel2003-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VM_ALLOC_INTERRUPT to VM_ALLOC_SYSTEM. There was no mention of this in commit log as it was considered harmless. Guess what: it does harm. WITNESS showed that we can not safely grab the page queue lock in vm_page_alloc() in all cases as we may have to sleep on it. Revert the request to VM_ALLOC_INTERRUPT to circumvent this. We panic if vm_page_alloc returns 0. I'm not entirely happy about this, but we have bigger fish to fry. Approved by: re@ (blanket)
* | | This driver supports the 2920C not the 2920.gibbs2003-05-261-3/+3
| | | | | | | | | | | | | | | | | | | | | Make this clear in our card identification string. PR: kern/50428 Approved by: RE
OpenPOWER on IntegriCloud