summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove a bogus panic. It is possible more than one threads willdavidxu2004-06-181-1/+2
| | | | | | be suspended in thread_suspend_check, after they are resumed, all threads will call thread_single, but only one can be success, others should retry and will exit in thread_suspend_check.
* If thread singler wants to terminate other threads, make sure it includesdavidxu2004-06-181-2/+16
| | | | | | all threads except itself. Obtained from: julian
* This file is not part of GDB 5.2.1, but was off the vendor branch.marcel2004-06-1824-44078/+0
|
* Revert local changes.marcel2004-06-187-29/+7
|
* Correct merge-o: make sure to unlock symmetrically socket bufferrwatson2004-06-181-2/+2
| | | | | | locks on bluetooth sockets when clearing upcall flags. Submitted by: emax
* This file is not part of GDB 5.2.1 and is also off the vendor branch.marcel2004-06-181-814/+0
| | | | It was removed on 2001-11-07, according to ChangeLog.
* Hold SOCK_LOCK(so) while frobbing so_options. Note that while therwatson2004-06-181-1/+4
| | | | | local race is corrected, there's still a global race in sosend() relating to so_options and the SO_DONTROUTE flag.
* Try harder to give new processes a clean initial fpu state. fpu_cleanstatepeter2004-06-181-7/+5
| | | | | | | | | | | | | | | | | wasn't actually clean, it was saving the xmm registers as left over by the bios. fninit() doesn't clear those. In fpudna(), instead of doing a fninit() and forgetting to load the initial mxcsr, do a full fxrstor(&fpu_cleanstate). Otherwise we hand over whatever random values are left in the xmm registers by the last user. I'm not certain of whether this is excessive paranoia or not, but there was an outright bug in neglecting to set the mxcsr value that caused awk to SIGFPE in some case. Especially for Tim Robbins. :-) i386 probably should do something about the mxcsr setings too. Found by: tjr
* If SO_DEBUG is enabled for a TCP socket, and a received segment isbms2004-06-181-2/+11
| | | | | | | | | | | | encapsulated within an IPv6 datagram, do not abuse the 'ipov' pointer when registering trace records. 'ipov' is specific to IPv4, and will therefore be uninitialized. [This fandango is only necessary in the first place because of our host-byte-order IP field pessimization.] PR: kern/60856 Submitted by: Galois Zheng
* Merge some additional leaf node socket buffer locking fromrwatson2004-06-182-19/+53
| | | | | | | | | | | | | | | | | | | | | rwatson_netperf: Introduce conditional locking of the socket buffer in fifofs kqueue filters; KNOTE() will be called holding the socket buffer locks in fifofs, but sometimes the kqueue() system call will poll using the same entry point without holding the socket buffer lock. Introduce conditional locking of the socket buffer in the socket kqueue filters; KNOTE() will be called holding the socket buffer locks in the socket code, but sometimes the kqueue() system call will poll using the same entry points without holding the socket buffer lock. Simplify the logic in sodisconnect() since we no longer need spls. NOTE: To remove conditional locking in the kqueue filters, it would make sense to use a separate kqueue API entry into the socket/fifo code when calling from the kqueue() system call.
* Don't set FIN on a retransmitted segment after a FIN has been sent,bms2004-06-181-1/+1
| | | | | | | | | unless the segment really contains the last of the data for the stream. PR: kern/34619 Obtained from: OpenBSD (tcp_output.c rev 1.47) Noticed by: Joseph Ishac Reviewed by: George Neville-Neil
* Fixed a panic caused by over-optimizing npxdrop() in the non-FXSR case.bde2004-06-181-0/+9
| | | | | | | | | | | | | | | | frstor can trap despite it being a control instruction, since it bogusly checks for pending exceptions in the state that it is overwriting. This used to be a non-problem because frstor was always paired with a previous fnsave, and fnsave does an implicit fninit so any pending exceptions only remain live in the saved state. Now frstor is sometimes paired with npxdrop() and we must do a little more than just forget that the npx was used in npxdrop() to avoid a trap later. This is a non-problem in the FXSR case because fxrstor doesn't do the bogus check. FXSR is part of SSE, and npxdrop() is only in FreeBSD-5.x, so this bug only affected old machines running FreeBSD-5.x. PR: 68058
* Ensure that dst is bzeroed before calling rtalloc_ign(), to avoid possiblebms2004-06-181-0/+1
| | | | | | | | routing table corruption. PR: kern/40563, freebsd4/432 (KAME) Obtained from: NetBSD (in_gif.c rev 1.26.10.1) Requested by: Jean-Luc Richier
* Fix the problem that surfaced with the new binutils import on sparc64tmm2004-06-183-4/+10
| | | | | | | | | | | | | | | | | | | | | | (and that is for now being worked around by a binutils patch). The rtld code tested &_DYNAMIC against 0 to see whether rtld itself was built as PIC or not. While the sparc64 MD code did not rely on the preset value of the GOT slot for _DYNAMIC any more due to previous binutils changes, it still used to not be 0, so that this check did work. The new binutils do however initialize this slot with 0. As a consequence, rtld would not properly initialize itself and crash. Fix that by introducing a new macro, RTLD_IS_DYNAMIC, to take the role of this test. For sparc64, it is implemented using the rtld_dynamic() code that was already there. If an architecture does not provide its own implementation, we default to the old check. While being there, mark _DYNAMIC as a weak symbol in the sparc64 rtld_start.S. This is needed in the LDSCRIPT case, which is however not currently supported for want of an actual ldscript. Sanity checked with md5 on alpha, amd64, i386 and ia64.
* Forced commit to note that the hack removed in the previous commitbde2004-06-180-0/+0
| | | | | | | | | | | really used to be necessary. bus_teardown_interrupt() was completely broken for fast interrupts in -current from approx. 2001/02/09 to 2003/11/03. It not only didn't shut down the hardware interrupt; it also left the fast interrupt handler wired into the IDT. The hack was needed to shut down the hardware interrupt. Without it, for npx, unmasked exceptions were delivered via both IRQ13 and Exception16, and spurious IRQ13 broke exception handling in much the same way that it is broken on old systems that don't support Exception16.
* A couple more style(9) nits I should have included in last commitimp2004-06-181-4/+3
|
* Add an example to rc.conf(5) about how to use the static_routes variable.bms2004-06-181-0/+6
| | | | | | We already do this for jails and their various control variables. PR: conf/62772
* Style nits in the prototypesimp2004-06-181-2/+2
|
* Bumb version so apps can detect whether CLOCK_VIRTUAL and CLOCK_PROF arekbyanc2004-06-171-1/+1
| | | | implemented.
* CLOCK_PROF and CLOCK_VIRTUAL are implemented now.kbyanc2004-06-171-7/+1
|
* Implement CLOCK_VIRTUAL and CLOCK_PROF for clock_gettime(2) andkbyanc2004-06-171-9/+39
| | | | | | | clock_getres(2). Reviewed by: phk PR: 23304
* Merge additional socket buffer locking from rwatson_netperf:rwatson2004-06-1711-16/+154
| | | | | | | | | | | | | | | | | | | | | | | | | - Lock down low hanging fruit use of sb_flags with socket buffer lock. - Lock down low hanging fruit use of so_state with socket lock. - Lock down low hanging fruit use of so_options. - Lock down low-hanging fruit use of sb_lowwat and sb_hiwat with socket buffer lock. - Annotate situations in which we unlock the socket lock and then grab the receive socket buffer lock, which are currently actually the same lock. Depending on how we want to play our cards, we may want to coallesce these lock uses to reduce overhead. - Convert a if()->panic() into a KASSERT relating to so_state in soaccept(). - Remove a number of splnet()/splx() references. More complex merging of socket and socket buffer locking to follow.
* Up SiI reset wait a bit, some devices got lost.sos2004-06-171-1/+1
|
* Reduce the thaumaturgical level of root filesystem mounts: Instead of usingphk2004-06-172-52/+51
| | | | | | | an otherwise redundant clone routine in geom_disk.c, mount a temporary DEVFS and do a proper lookup. Submitted by: thomas
* Assorted markup, spelling, and grammar fixes.ru2004-06-1710-84/+93
|
* This comment should have been removed in the previous commit.cognet2004-06-171-1/+0
| | | | Spotted out by: marcus, simon
* Woohoo !cognet2004-06-172-4/+0
| | | | the latest binutils import mades this gross hack useless, so just remove it.
* Nuke dead code.cognet2004-06-171-92/+1
|
* Nuke bus_space_mmap(), as it does not exist in FreeBSD.cognet2004-06-173-21/+0
|
* Fixed markup bugs.ru2004-06-174-54/+51
|
* Fixed markup bugs.ru2004-06-172-23/+26
| | | | Spell function correctly when talking about restarting after a signal.
* Revert last change. If acpi is loaded or compiled into the kernel, itsnjl2004-06-172-2/+2
| | | | | | | devclass will be present even if the driver was disabled by a hint. Using device_get_softc() provides the right info even if it's overkill. Explained by: jhb
* Second half of the dev_t cleanup.phk2004-06-1773-205/+186
| | | | | | | | | | | The big lines are: NODEV -> NULL NOUDEV -> NODEV udev_t -> dev_t udev2dev() -> findcdev() Various minor adjustments including handling of userland access to kernel space struct cdev etc.
* Import two fixes from the OpenBSD stable branch:mlaier2004-06-173-19/+16
| | | | | | | | | - prevent an endless loop with route-to lo0, fixes PR 3736 (dhartmei@) - The rule_number parameter for pf_get_pool() needs to be 32 bits, not 8 - this fixes corruption of the address pools with large rulesets. (mcbride@, pb@) Reviewed-by: dhartmei
* Add reference to mac_get_link() in man page, which was omitted whenrwatson2004-06-172-1/+10
| | | | mac_get_link() and mac_set_link() were added.
* Commit a crude hack so we get sparc64 snapshots working again with aobrien2004-06-173-4/+19
| | | | | | stable ld.so. We need to revisit the rtld-elf/sparc64/rtld_start.S rev. 1.5 and rtld-elf/sparc64/rtld_machdep.h rev. 1.5, which was suppose to allow stock Binutils 2.13 (and later) to be used.
* Fix printing of u_int64_t with a cast to unsigned long long.mlaier2004-06-171-1/+1
| | | | Found-by: tinderbox(amd64)
* Use strlcpy(3) to replace the idiomaticrobert2004-06-173-30/+18
| | | | | | | strncpy(d, s, l); d[l - 1] = '\0'; statements.
* Save a couple of bytes for the SIO case.phk2004-06-171-4/+2
|
* Document boot0sio and note that it requires modem handshake to work.phk2004-06-171-2/+9
|
* Fix another beak.phk2004-06-171-1/+1
| | | | Seen by: pjd
* Fix a bug which occurred when the home directory given by therobert2004-06-171-1/+2
| | | | | | | | -d option was equal to the one already saved and which caused the pw utility to avoid updating values passed by other options processed before the -d option in the code path. Spotted by: Richard Caley <rjc@interactive.co.uk>
* Third time's a charm?? (the logic was reversed from desired)obrien2004-06-171-1/+1
| | | | | | Time for sleep... Submitted by: ru
* atapicam(4) is currently off by three orders of magnitude regarding thegreen2004-06-171-2/+2
| | | | | | | | | timeout values in the CAM CCBs. Divide by 1000 to get values in seconds which are what ata(4) timeouts internally use. This does lose granularity, though, and small values can now round down to zero. It's probably worth making all ata(4) timeouts in terms of hz/ticks/milliseconds/something.
* Do not preset PG_BUSY on VM_ALLOC_NOOBJ pages. Such pages are notalc2004-06-173-8/+2
| | | | accessible through an object. Thus, PG_BUSY serves no purpose.
* Add missing newlines.pjd2004-06-172-8/+8
|
* Grrr, use the userland spelling not the kernel tree spelling.obrien2004-06-171-1/+1
|
* Always restore permissions for regular files, even if thekientzle2004-06-171-1/+3
| | | | | | | | | file already exists on disk. Pointed out by: www/resin3 port (whose distfile contains the same file twice with different permissions and relies on the permissions associated with the second instance) Thanks again to: Kris Kennaway
* Fall out from Binutils 2.15: don't bulid the ld.so on Sparc64.obrien2004-06-171-0/+3
|
* Fall out from Binutils 2.15: disable building the Alpha loader.obrien2004-06-171-1/+4
|
OpenPOWER on IntegriCloud