summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add support for "options PIM" in the kernel configuration file.hsu2003-08-072-0/+5
| | | | Submitted by: Pavlin Radoslavov <pavlin@icir.org>
* This commit was generated by cvs2svn to compensate for changes in r118624,njl2003-08-071-1/+1
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Fix a bug that would result in a very long sleep. Change has beennjl2003-08-071-1/+1
| | | | | | | | | | | | submitted to the vendor. Obtained from: iwasaki
* | New PIM header files.hsu2003-08-072-0/+197
| | | | | | | | Submitted by: Pavlin Radoslavov <pavlin@icir.org>
* | 1. Basic PIM kernel supporthsu2003-08-077-169/+1704
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disabled by default. To enable it, the new "options PIM" must be added to the kernel configuration file (in addition to MROUTING): options MROUTING # Multicast routing options PIM # Protocol Independent Multicast 2. Add support for advanced multicast API setup/configuration and extensibility. 3. Add support for kernel-level PIM Register encapsulation. Disabled by default. Can be enabled by the advanced multicast API. 4. Implement a mechanism for "multicast bandwidth monitoring and upcalls". Submitted by: Pavlin Radoslavov <pavlin@icir.org>
* | td_dupfd just needs to be less than 0, it does not have to hold thejhb2003-08-072-2/+2
| | | | | | | | negative value of the index of the new file, so just use -1.
* | This commit was generated by cvs2svn to compensate for changes in r118617,njl2003-08-071-0/+1085
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import the userland interface from acpica 0619njl2003-08-071-0/+1085
| |
* | Update some argument-documenting comments to match reality.nectar2003-08-073-6/+9
| | | | | | | | | | Add an explicit range check to those same arguments to reduce risk of cardiac arrest in future code readers.
* | This commit was generated by cvs2svn to compensate for changes in r118613,njl2003-08-072-0/+1293
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import common/ files from acpica 0619njl2003-08-072-0/+1293
| |
* | This commit was generated by cvs2svn to compensate for changes in r118611,njl2003-08-0727-0/+24646
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import compiler/ files from acpica 0619njl2003-08-0727-0/+24646
| |
* | Remove the user include of ctype.h and instead include it for each utilitynjl2003-08-071-1/+0
| | | | | | | | that uses strupr().
* | Remove nowerror from some files that no longer generate warnings.njl2003-08-071-3/+3
| |
* | Consistently use the BSD u_int and u_short instead of the SYSV uint andjhb2003-08-0728-126/+126
| | | | | | | | | | | | | | ushort. In most of these files, there was a mixture of both styles and this change just makes them self-consistent. Requested by: bde (kern_ktrace.c)
* | Null terminate the OEM hint. This rids my laptop of the smiley face thatnjl2003-08-071-0/+1
| | | | | | | | would follow the 6 valid chars of the table entry.
* | Make open channels persist across ifconfig down and up. All channelsharti2003-08-073-21/+40
| | | | | | | | | | that are not currently closing when the interface is configured down will be brough up as soon as the interface is configured up.
* | Comment out ctype.h. It's not ok to always include in the !_KERNEL casenjl2003-08-071-1/+1
| | | | | | | | | | since the bootblocks have their own local includes. Sorry for breaking world.
* | The ktrace mutex does not need to be locked around the post of the ktracejhb2003-08-071-1/+1
| | | | | | | | | | | | | | semaphore and doing so can lead to a possible reversal. WITNESS would have caught this if semaphores were used more often in the kernel. Submitted by: Ted Unangst <tedu@stanford.edu>, Dawson Engler
* | Make the driver preserve open connections accross ifconfig downharti2003-08-074-26/+57
| | | | | | | | | | | | | | and up commands. When configuring the interface down only the connections that are currently closing are deleted from the connection table. When the interface is configured up, all connections that are in the table are re-opened.
* | When configuring the interface down and up again try to re-open allharti2003-08-072-33/+77
| | | | | | | | | | | | connections that have been open (and were not closing) when the interface was stopped. This makes the behaviour of fatm(4) more like the behaviour of en(4).
* | We donot need `\n' for panic().non2003-08-071-1/+1
| |
* | Better define the flags in the mcontext_t and properly set the flagsmarcel2003-08-072-35/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | when we create contexts. The meaning of the flags are documented in <machine/ucontext.h>. I only list them here to help browsing the commit logs: _MC_FLAGS_ASYNC_CONTEXT _MC_FLAGS_HIGHFP_VALID _MC_FLAGS_KSE_SET_MBOX _MC_FLAGS_RETURN_VALID _MC_FLAGS_SCRATCH_VALID Yes, _MC_FLAGS_KSE_SET_MBOX is a hack and I'm proud of it :-)
* | o Fix cut-n-paste whitespace corruption in previous commitmarcel2003-08-071-5/+12
| | | | | | | | | | | | | | o For trap-based upcalls the argument (the kse_mailbox) to the UTS must be written onto the kernel stack, not the user stack. While here, deal with the fact that we may be at a NaT collection point.
* | Add preliminary support for the RealTek 8169 gigE chip. Changes:wpaul2003-08-072-4/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix a bug in rl_dma_map_desc(): set the 'end of ring' bit in the right descriptor (DESC_CNT - 1, not DESC_CNT). The 8139C+ is limited to 64 descriptors and automatically wraps at 64 descriptors even if the EOR bit isn't set, but the 8169 NIC can have up to 1024 descriptors per ring, so we must set the wrap point in the right place. - RealTek moved the RL_TIMERINT register from offset 0x54 to 0x58 in the 8169 -- account for this. - Added rl_gmii_readreg() and rl_gmii_writereg() routines. - Fix rl_probe() to deal with the case where the base type is not RL_8139. The next step is to add jumbo buffer support. Tested with the Xterasys XN-152 NIC (hard to beat $29 for a gigE NIC).
* | Add includes to fix user-compilation of acpica. Also clarify a commentnjl2003-08-071-2/+6
| | | | | | | | about overriding the OS name.
* | Remove trailing newlines (from the right branch this time)imp2003-08-071-2/+0
| |
* | - Remove GIANT_REQUIRED from pipe_free_kmem().alc2003-08-071-3/+0
| | | | | | | | | | - Remove the acquisition and release of Giant around pipe_kmem_free() and uma_zfree() in pipeclose().
* | Increase SMALL_PIPE_SIZE from 4096 to PAGE_SIZE.silby2003-08-071-1/+1
| | | | | | | | | | Sorry people with 8K pages, this could be have been causing some of the resent panics under heavy pipe load.
* | In cpu_set_upcall_kse(), create the upcall according to the entrymarcel2003-08-061-12/+19
| | | | | | | | | | | | | | | | | | path into the kernel. Normally it's due to a syscall, but one can also be created as the result of a clock interrupt (for example). This now even more looks like exec_setregs(). While here, add an assert that we don't expect more than 8KB of dirty registers on the kernel stack.
* | o In revision 1.45 of exception.S we changed exception_restore tomarcel2003-08-062-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unconditionally restore ar.k7 (kernel memory stack) and ar.k6 (kernel register stack). I don't know what I was smoking then, but if you unconditionally restore ar.k6, you also want to compute its value unconditionally. By having the computation predicated and dependent on whether we return to user mode, we would end up writing junk (= invalid value for ar.bspstore) if we would return to kernel mode. But the whole point of the unconditional restoration was that there is a grey area where we still need to have ar.k6 restored. If we restore with a junk value, we would end up wedging the machine on the next interrupt. So, unconditionally calculate the value we unconditionally write to ar.k6. o The previous braino was found while making the following change: We used to clear the lower 9 bits of the value we write to ar.k6. The meaning being that we know that the kernel register stack is at least 512 byte aligned and simply clearing the lower 9 bits allows us to return to a context of which we don't have dirty registers on the kernel stack, even though the context that entered the kernel does have dirty registers on the kernel stack. By masking-off the lower bits, we correctly obtain the base of the register stack without having to worry that we didn't actually reached the base while unwinding it. The change is to mask off the lower 13 bits, knowing that the kernel register stack is always 8KB aligned. The advantage is that we don't have to worry anymore if there's more than 512 bytes of dirty registers on the kernel stack. A situation that frequently occurs. In exec_setregs() in machdep.c:1.147 or older, we had to deal with that situation by copying the active portion of the register stack down in multiples of 512 bytes. Now that we mask off the lower 13 bits we don't have to do that at all. Contemporary IPF processors have a register file that can hold up to 96 stacked registers (=784 bytes [incl. 2 NaT collections]). With no indication that register files grow beyond a couple of hundred registers, we should not have to worry about it anymore... and yes, 640KB is enough for everybody :-) This change helps setcontext(2) and cpu_set_upcall_kse() in that they can return to completely different contexts without having to mess with the kernel stack. Of course exec_setregs() doesn't need to do that anymore as well.
* | Correct a mistake in the previous revision: Reduce the scope of the pagealc2003-08-061-1/+1
| | | | | | | | | | | | | | queues lock such that it isn't held around the call to get_pv_entry(), which calls uma_zalloc(). At the point of the call to get_pv_entry(), the lock isn't necessary and holding it could lead to recursive acquisition, which isn't allowed.
* | Acquire the page queues lock in pmap_insert_entry(). (I used to believealc2003-08-061-0/+2
| | | | | | | | | | | | that the page's busy flag could be relied upon to synchronize access to the pv list. I don't any longer. See, for example, the call to pmap_insert_entry() from pmap_copy().)
* | Remove dangling extern reference to swap_pager_fullphk2003-08-061-2/+0
| |
* | Backed out previous commit. This restores the warning about pessimizedbde2003-08-061-2/+2
| | | | | | | | | | | | | | (short) types for the port arg of inb() (rev.1.56). The warning started working for u_short types with gcc-3.3. The pessimizations exposed by this been fixed except for the cx and oltr drivers where the breakage of the warning has been pushed to the drivers.
* | Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* | Remove all USB quirks that only specify DA_Q_NO_6_BYTE. They are no longernjl2003-08-061-158/+0
| | | | | | | | | | | | | | needed. Other USB quirks remain in hopes that user testing will reveal which ones are also no longer needed. Courtesy of: USENIX lunch break
* | Don't use pessimal (u_short) types for i/o ports. This is mainly forbde2003-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
* | Remove the 6-10 byte translation from UFI and ATAPI command sets. It isnjl2003-08-061-61/+0
| | | | | | | | | | | | no longer needed now that we have PIM_NO_6_BYTE. Requested by: jhb
* | When compiling the module with INVARIANTS we also need INVARIANT_SUPPORT.harti2003-08-061-1/+1
| |
* | Ups. I forgot this one in the SIOCATMENA/SIOCATMDIS removal commit.harti2003-08-061-17/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows one to specify almost the complete traffic parameters for IPoverATM channels through the routing table. Up to now we used 4 byte DL addresses (flag, vpi, vciH, vciL). This format is still allowed. If the address is longer, however, the 5th byte is interpreted as the traffic class (UBR, CBR, VBR or ABR) and the remaining bytes are the parameters for this traffic class: UBR: 0 byte or 3 byte PCR CBR: 3 byte PCR VBR: 3 byte PCR, 3 byte SCR, 3 byte MBS ABR: 3 byte PCR, 3 byte MCR, 3 byte ICR, 3 byte TBE, 1 byte NRM, 1 byte TRM, 2 bytes ADTF, 1 byte RIF, 1 byte RDF and 1 byte CDF A script to generate the corresponding 'route add' arguments will follow soon.
* | Dont initialize a TSC timecounter until we know if it is broken or not.phk2003-08-064-0/+9
| |
* | Update to recognize Geode and note that the TSC seems broken.phk2003-08-061-1/+12
| |
* | Remove the ATMIOCENA and ATMIOCDIS ioctl. Everyting has been convertedharti2003-08-066-176/+23
| | | | | | | | | | to use the new OPENVCC and CLOSEVCC calls that allow the sepcification of traffic parameters for the connections.
* | Remove the last vestiges of ATM raw mode. This has not been useful for aharti2003-08-063-48/+6
| | | | | | | | | | long time and has already been removed from the only driver that supported it (en(4)) and from the man page.
* | Remove unused cmd6workaround() calls.njl2003-08-061-15/+2
| | | | | | | | MFC after: 1 day
* | Make the first two pages magic to protect the BSD labels rather thanphk2003-08-061-2/+2
| | | | | | | | only one.
* | Use the new OPENVCC and CLOSEVCC ioctls to open and close the NATMharti2003-08-061-13/+16
| | | | | | | | channel. These have been the last consumers of the old ioctls.
* | If connect(2) has been interrupted by a signal and therefore theyar2003-08-061-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | connection is to be established asynchronously, behave as in the case of non-blocking mode: - keep the SS_ISCONNECTING bit set thus indicating that the connection establishment is in progress, which is the case (clearing the bit in this case was just a bug); - return EALREADY, instead of the confusing and unreasonable EADDRINUSE, upon further connect(2) attempts on this socket until the connection is established (this also brings our connect(2) into accord with IEEE Std 1003.1.)
OpenPOWER on IntegriCloud