summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Add all interface polling patches.mbr2003-08-071-2/+8
|
* Do not poll during discover. Add a polling tunable to the interfacembr2003-08-072-4/+26
| | | | | | struct to be able to turn polling on/off. Tested by: Larry Rosenman <ler@lerctr.org>
* 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.
* Add additional documentation to setfacl(1) regarding the behavior ofrwatson2003-08-071-0/+18
| | | | | | | | | | | tools such as chmod(1) and ls(1) when it comes to acting on objects that have POSIX.1e extended ACLs. Specifically, discuss the substitution of the mask entry for the group entry in the mode representation of the ACL. Differently worded from the submission, and could probably use further refinement. PR: 55319 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
* -v no longer a valid argument to setfacl(1) -- remove from usage().rwatson2003-08-071-1/+1
| | | | | PR: 55318 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
* 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).
* Implement mblen(s, n) as mbtowc(NULL, s, n) to avoid calling sgetrune()tjr2003-08-071-26/+9
| | | | | and to simplify things. This is only valid until we start supporting state-dependent encodings.
* We donot need `\n' for panic().non2003-08-071-1/+1
|
* Implement mbstowcs() as a wrapper around mbsrtowcs(), and wcstombs()tjr2003-08-072-115/+24
| | | | as a wrapper around wcsrtombs().
* Grok async contexts. When a thread is interrupted and an upcallmarcel2003-08-074-18/+82
| | | | | | | | | | | | | | | | | | | | | happens, the context of the interrupted thread is exported to userland. Unlike most contexts, it will be an async context and we cannot easily use our existing functions to set such a context. To avoid a lot of complexity that may possibly interfere with the common case, we simply let the kernel deal with it. However, we don't use the EPC based syscall path to invoke setcontext(2). No, we use the break-based syscall path. That way the trapframe will be compatible with the context we're trying to restore and we save the kernel a lot of trouble. The kind of trouble we did not want to go though ourselves... However, we also need to set the threads mailbox and there's no syscall to help us out. To avoid creating a new syscall, we use the context itself to pass the information to the kernel so that the kernel can update the mailbox. This involves setting a flag (_MC_FLAGS_KSE_SET_MBOX) and setting ifa (the address) and isr (the value).
* Implement mbtowc() in terms of mbrtowc(), and wctomb() in terms of wcrtomb().tjr2003-08-072-53/+42
|
* 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 :-)
* Implement btowc() in terms of mbrtowc() instead of sgetrune(), andtjr2003-08-072-10/+27
| | | | | | | | | wctob() in terms of wcrtomb() instead of sputrune(). There should be no functional differences, but there may be a small performance hit because we make an extra function call. The aim here is to have as few functions as possible calling s{get,put}rune() to make it easier to remove them in the future.
* 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.
* - Fix the polling code to work with media settings in dhclient.conf.mbr2003-08-072-38/+189
| | | | | | | | | | | | | | | | | | | | | | | | - Rename linkstatus to linkstate which is more correct. - Sort any leases each time we loose and regain link. With the first version we spammed the dhclient.leases file. - When there was no link on a interface, polling has been done twice. This has been fixed with a bigger sleep interval. - interface_active() now returns only a assumed state of the link. If we are using media settings, we cannot be sure that the link actually works. That means we assume that the link is working and continue to send requests as usual on the interface and loop over all possible media options. Polling is still done. If your interface gets suddenly link, dhclient will send a dhcp discover request. After all media settings have been tried a few times, dhclient will sleep. If one does change networks very often, it can help to set the "retry timeout" to a low value like 100 seconds. The default is over six minutes. Tested by: Larry Rosenman <ler@lerctr.org>, imp
* 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).
* No need to define externs for getopt interface.imp2003-08-071-2/+1
|
* Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, soimp2003-08-073-5/+5
| | | | remove the unneeded +1.
* No need to define optind as an extern. stdlib.h does that for us.imp2003-08-071-1/+0
|
* Prefer PATH_MAX to MAXPATHLEN. PATH_MAX has the trailing NUL.imp2003-08-071-1/+1
|
* MAXPATHLEN includes the trailing NUL, so no need to add 1 here.imp2003-08-071-1/+1
|
* Document hw.acpi.os_name. Also update the credits section.njl2003-08-071-1/+6
|
* Add includes to fix user-compilation of acpica. Also clarify a commentnjl2003-08-071-2/+6
| | | | about overriding the OS name.
* getopt returns -1 not EOF at the end of args. Compare against that.imp2003-08-071-1/+1
|
* Add entries for NETGEAR MA401RA, IO DATA PCET10CL and Panasonic KXL-CB10AN.imp2003-08-071-0/+16
| | | | Appologies to: those that submitted these to me.
* 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.
* Add a reference to config(5) in the SEE ALSO section.simon2003-08-061-0/+2
| | | | | Suggested by: dcs Approved by: ceri (mentor)
* 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.
* RFC 3561 (ad-hoc on-demand distance vector routing) was ratifieddcs2003-08-061-0/+2
| | | | | | | | and the ports assigned by IANA. PR: conf/55125 Submitted by: Bruce M Simpson <bms@spc.org> MFC after: 2 days
* 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.
* Change ieee802 to ieee80211.mbr2003-08-062-53/+53
| | | | | | Add bogospaces to match the ISC style. Suggested by: eivind
* 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
|
OpenPOWER on IntegriCloud