summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't pass NULL as an integer.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* Don't compare a char to NULL.mbr2003-10-292-3/+3
| | | | Obtained from: NetBSD
* Make this part identical with NetBSD: Use recvlen instead of inlen.mbr2003-10-291-1/+1
| | | | | | No functionality change. Obtained from: NetBSD
* Don't compare NULL against a character.mbr2003-10-291-3/+3
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a char.mbr2003-10-291-2/+2
| | | | Obtained from: NetBSD
* Don't use NULL to compare against a character.mbr2003-10-291-1/+1
| | | | Obtained from: NetBSD
* - Synchronize updates to nswapdev using sw_dev_mtx.alc2003-10-291-2/+2
|
* Add FreeBSD 4.9 and MacOS 10.3.murray2003-10-291-2/+6
|
* Fix the alpha tinderbox. The alpha specific bitops used by the bitmapmarcel2003-10-294-12/+4
| | | | | | | | | | code has the typical branch prediction detour, which creates cross- section branches. A LINT kernel is apparently large enough nowadays that the .text and .text2 sections cannot always be layed-out so that branches between them reach. The fix is to stop using the alpha-specific bitops and instead use the portable implementation used by all platforms other than alpha and i386.
* - Avoid a race in swaponsomething(): Calculate the new swdevt's first andalc2003-10-291-17/+14
| | | | | end swblk and insert this new swdevt into the list of swap devices in the same critical section.
* Introduce the notion of "persistent mbuf tags"; these are tags that staysam2003-10-294-1/+36
| | | | | | | | | | | | | | with an mbuf until it is reclaimed. This is in contrast to tags that vanish when an mbuf chain passes through an interface. Persistent tags are used, for example, by MAC labels. Add an m_tag_delete_nonpersistent function to strip non-persistent tags from mbufs and use it to strip such tags from packets as they pass through the loopback interface and when turned around by icmp. This fixes problems with "tag leakage". Pointed out by: Jonathan Stone Reviewed by: Robert Watson
* This commit was generated by cvs2svn to compensate for changes in r121642,marcel2003-10-2929-572/+773
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import beta6 of libuwx. This release has some minor fixes andmarcel2003-10-2929-572/+773
| | | | | | | | some minor corrections to beta5.
* | Add kernel option ACPI_NO_RESET_VIDEO as workaround for problemsiwasaki2003-10-294-0/+8
| | | | | | | | | | (e.g. LCD white-out after resume) on some machine cased by re-initialize video BIOS code in acpi_wakecode.
* | *blush*. stdhash.h != strhash.hpeter2003-10-291-1/+1
| | | | | | | | Sorry folks.
* | Don peril sensitive (ie: bikeshed sensitive) sunglasses and quietlypeter2003-10-283-472/+1
| | | | | | | | | | | | | | | | | | | | | | send strhash(3) off to sleep with the fishes. Nothing in our tree uses it. It has no documentation. It is nonstandard and in spite of the filename strhash.c and strhash.h, it lives in application namespace by providing compulsory global symbols hash_create()/hash_destroy()/hash_search()/ hash_traverse()/hash_purge()/hash_stats() regardless of whether you #include <strhash.h> or not. If it turns out that there is a huge application for this after all, I can repocopy it somewhere safer and we can revive it elsewhere. But please, not in libc!
* | Cleanup the interrupt code that deals with the busmaster bits.sos2003-10-281-47/+58
| |
* | Use VLANNAME instead of "vlan".brooks2003-10-281-4/+4
| |
* | According to the submitter, POSIX mandates that all interval timers arejhb2003-10-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reset in a child process after a fork(). Currently, however, only the real timer is cleared while the virtual and profiling timers are inherited. The realtimer is cleared because it lives directly in struct proc in p_realtimer. It is in the zero'd section of struct proc. The other timers live in the p_timer[] array in struct pstats. These timers are copied on fork() rather than zero'd. The fix is to move p_timer[] to the zero'd part of struct pstats so that they are zero'd instead of copied on fork(). Note: Since at least FreeBSD 2.0 (and possibly earlier) we've had storage for two real interval timers. Now that the uarea is less important, perhaps we could move all of p_timer[] over to struct proc and drop the p_realtimer special case to fix that. PR: kern/58647 Reported by: Dan Nelson <dnelson@allantgroup.com> MFC after: 1 week
* | When switching the RSE to use the kernel stack as backing store, keepmarcel2003-10-287-59/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the RNAT bit index constant. The net effect of this is that there's no discontinuity WRT NaT collections which greatly simplifies certain operations. The cost of this is that there can be up to 504 bytes of unused stack between the true base of the kernel stack and the start of the RSE backing store. The cost of adjusting the backing store pointer to keep the RNAT bit index constant, for each kernel entry, is negligible. The primary reasons for this change are: 1. Asynchronuous contexts in KSE processes have the disadvantage of having to copy the dirty registers from the kernel stack onto the user stack. The implementation we had so far copied the registers one at a time without calculating NaT collection values. A process that used speculation would not work. Now that the RNAT bit index is constant, we can block-copy the registers from the kernel stack to the user stack without having to worry about NaT collections. They will be in the right place on the user stack. 2. The ndirty field in the trapframe is now also usable in userland. This was previously not the case because ndirty also includes the space occupied by NaT collections. The value could be off by 8, depending on the discontinuity. Now that the RNAT bit index is contants, we have exactly the same number of NaT collection points on the kernel stack as we would have had on the user stack if we didn't switch backing stores. 3. Debuggers and other applications that use ptrace(2) can now copy the dirty registers from the kernel stack (using ptrace(2)) and copy them whereever they want them (onto the user stack of the inferior as might be the case for gdb) without having to worry about NaT collections in the same way the kernel doesn't have to worry about them. There's a second order effect caused by the randomization of the base of the backing store, for it depends on the number of dirty registers the processor happened to have at the time of entry into the kernel. The second order effect is that the RSE will have a better cache utilization as compared to having the backing store always aligned at page boundaries. This has not been measured and may be in practice only minimally beneficial, if at all measurable.
* | This should allow us to boot with DMA enabled on unknown PCI ATAsos2003-10-282-25/+48
| | | | | | | | chipsets, well at least newer ones...
* | Directly call the 'reboot' word instead of indirectly evaluating it.scottl2003-10-281-1/+1
| |
* | make sure to accept only IPv6 packet.ume2003-10-281-0/+3
| | | | | | | | Obtained from: KAME
* | cleanup use of m_tag.ume2003-10-285-77/+69
| | | | | | | | Obtained from: KAME
* | mib name was changed by fixing a spelling.ume2003-10-281-1/+1
| | | | | | | | | | | | net.key.prefered_oldsa -> net.key.preferred_oldsa Obtained from: KAME
* | speedup stream socket recv handling by tracking the tail ofsam2003-10-289-49/+371
| | | | | | | | | | | | | | the mbuf chain instead of walking the list for each append Submitted by: ps/jayanth Obtained from: netbsd (jason thorpe)
* | Catch up with removal of /usr/bin/svr4.tjr2003-10-281-2/+2
| |
* | take mux's fix to the next level, scan the names and make the field largerjmg2003-10-281-4/+15
| | | | | | | | | | | | as necessary... on sparcs where: atapci0 vec1996 is a bit too long
* | - Only change the run queue in sched_prio() if the kse is non null. threadsjeff2003-10-281-10/+2
| | | | | | | | | | | | can be in the TD_ON_RUNQ state and not have an associated kse. - Remove the PRI_IDLE special case from sched_clock(), it was not actually necessary.
* | I wrongly committed an older version.simokawa2003-10-282-28/+16
| | | | | | | | Update references etc.
* | Oops. Remove some rather noisy debug printfs that slipped in therepeter2003-10-281-9/+0
| | | | | | | | somehow.
* | The previous commit removed both clause 3 and clause 4 from the UCBmarcel2003-10-272-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | license. Only clause 3 has been revoked. Restore the fourth clause as clause 3. Pointed out by: das@ Remove my name as a copyright holder since I don't use a BSD license compatible or comparable to the UCB license. I choose not to add a complete second license for my work for aesthetic reasons, nor to replace the UCB license on grounds of rewriting more than 90% of the source files. The rewrite can also be seen as an enhancement and since the files were practically empty, it's rather trivial to have changed 90% of the files.
* | Fix pmap_unmapdev() to call pmap_kremove() instead of implementing itjhb2003-10-271-5/+2
| | | | | | | | | | directly so that it more closely mirrors pmap_mapdev() which calls pmap_kenter().
* | Add status checking of ATA raid to the daily periodic scripts.jesper2003-10-273-0/+37
| |
* | Directly call the 'boot' word instead of indirectly evaluating it.scottl2003-10-271-7/+7
| | | | | | | | Submitted by: dcs
* | When we cannot allocate an external buffer (bacause we've hitharti2003-10-271-9/+5
| | | | | | | | | | | | | | | | | | | | | | the maximum number of pages for buffers) return -1 instead of 0. This fixes a panic under conditions when many mbufs are needed. Update the head pointer of the receive buffer pool queue even when we could not supply a buffer to the chip. Otherwise the chip will not re-interrupt us for another try. A better strategy would probably be to remember this condition and to supply buffers without an interrupt as soon as buffers get available.
* | Create missing /usr/share/examples/netgraph/bluetooth directoryemax2003-10-271-0/+2
| |
* | Add a definition for libngatm.harti2003-10-271-0/+1
| | | | | | | | Reviewed by: ru
* | Man pages for the NgATM SAAL protocol nodes.harti2003-10-273-0/+512
| |
* | Allow building the NgATM SAAL layer directly into the kernel.harti2003-10-274-2/+17
| |
* | Correct a typo.jkoshy2003-10-271-1/+1
| | | | | | | | Submitted by: "T.M. Sommers" <tms2@mail.ptd.net>
* | - Don't set td_priority directly here, use sched_prio().jeff2003-10-271-1/+1
| |
* | M_DONTWAIT was passed into malloc().ume2003-10-271-2/+2
| | | | | | | | Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* | Fix truss so that it doesn't abort/exit when a syscall has been givenmarcel2003-10-271-0/+5
| | | | | | | | a NULL-pointer for a sockaddr argument.
* | - Use a better algorithm in sched_pctcpu_update()jeff2003-10-271-56/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contributed by: Thomaswuerfl@gmx.de - In sched_prio(), adjust the run queue for threads which may need to move to the current queue due to priority propagation . - In sched_switch(), fix style bug introduced when the KSE support went in. Columns are 80 chars wide, not 90. - In sched_switch(), Fix the comparison in the idle case and explicitly re-initialize the runq in the not propagated case. - Remove dead code in sched_clock(). - In sched_clock(), If we're an IDLE class td set NEEDRESCHED so that threads that have become runnable will get a chance to. - In sched_runnable(), if we're not the IDLETD, we should not consider curthread when examining the load. This mimics the 4BSD behavior of returning 0 when the only runnable thread is running. - In sched_userret(), remove the code for setting NEEDRESCHED entirely. This is not necessary and is not implemented in 4BSD. - Use the correct comparison in sched_add() when checking to see if an idle prio task has had it's priority temporarily elevated.
* | const char ** needs to be passed, not char **.imp2003-10-271-1/+1
| |
* | Call the VESA reset BIOS vector on the resume path. This may help displaysnjl2003-10-271-0/+9
| | | | | | | | after resume. I have not found it to break anything.
* | In camperiphdone(), make sure we check for fatal errors and bail outken2003-10-272-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead of retrying them blindly. This should fix some of the problems people have been having with cdrom drives taking a long time to probe. This should also eliminate the need for the initial TUR in cdsize(). cam_periph.c: Don't keep retrying if the error we get back is a fatal error. This should help us detect the transition from "Logical unit not ready, cause not reportable" to "Medium not present" in the "TUR many" handler. (The TUR many handler gets triggered for Logical unit not ready, cause not reportable errors.) scsi_cd.c: Remove the initial test unit ready in cdsize(). Hopefully it isn't necessary after the above change. Submitted by: gibbs (mostly) Tested by: peter MFC After: 2 weeks
* | - Complete the synchronization of accesses to the swblock hash table.alc2003-10-271-0/+3
| |
* | Add support for userland to access I/O port space. This is primarilymarcel2003-10-272-40/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added for XFree86. There are 2 reasons for doing this with sysarch(): 1. The memory mapped I/O space is not at a fixed physical address. An application has to use some interface to get the base address. It gets worse if the machine has multiple memory mapped I/O spaces. 2. Access to the memory mapped I/O space needs to happen through a translation that is flagged as uncachable. There's no interface that allows a process to do uncached memory I/O, other than though /dev/mem (possibly). So, until we either disallow direct access to I/O or bus space from userland or have a better way of doing this, sysarch() has the least negative impact on existing interfaces.
OpenPOWER on IntegriCloud