summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Re-staticize a few functions I un-staticized for debugging purposeswpaul2005-02-161-2/+2
| | | | | on amd64 and accidentally forgot to put back. (Have I mentioned that gdb on amd64 needs work? It does. Boy howdy.)
* KeAcquireSpinLockRaiseToDpc() and KeReleaseSpinLock() are (at leastwpaul2005-02-162-27/+5
| | | | | | | | | | for now) exactly the same as KfAcquireSpinLock() and KfReleaseSpinLock(). I implemented the former as small routines in subr_ntoskrnl.c that just turned around and invoked the latter. But I don't really need the wrapper routines: I can just create an entries in the ntoskrnl func table that map KeAcquireSpinLockRaiseToDpc() and KeReleaseSpinLock() to KfAcquireSpinLock() and KfReleaseSpinLock() directly. This means the stubs can go away.
* On Rev. B silicon, we disabled the enhanced busfree detection logic togibbs2005-02-161-3/+3
| | | | | | | | | | | close holes in detecting busfrees that occur after a packetized target transitions to a non-packetized phase. The most common case where this occurs is when a target is externally reset so the controller believes a packetzied negotiation agreement is still in effect. Unfortunately, disabling this feature seems to cause problems for the 7901B. Re-enable ehanced busfree detection for this part until I can get my hands on a samble to figure out if the old workaround is necessary and, if so, how to make it work correctly.
* MF5S: Explicitly initialize timedout_scb lists, use SCB_TAG for all accessgibbs2005-02-163-4/+9
| | | | | to the hardware_scb->tag field, limit max lun reported to CAM to 63, return after a panic to silence a warning.
* Mostly stylistic issues: move a variable into local scope, makeharti2005-02-161-36/+48
| | | | | | condition positive and fix long lines. Submitted by: Max Okumoto <okumoto@ucsd.edu>
* Remove mutex asserion from g_gate_find(). We don't want g_gate_list_mtxpjd2005-02-161-1/+0
| | | | mutex to be held here, because we want speed here.
* Remove TDP_GEOM flag from thread after ggate device creation.pjd2005-02-161-0/+7
| | | | | | | This flag means "wait for all pending requests before returning to userland". There are pending events for sure, because we just created new provider and other classes want to taste it, but we cannot answer on I/O requests until we're here.
* Remove a recursion protection, which we inherited from splnet() netgraph times.glebius2005-02-161-9/+0
| | | | | | | | Now several threads may write data to ng_ksocket. Locking of socket is done in sosend(). Reviewed by: archie, julian, rwatson MFC after: 2 weeks
* Fix a memory leak: when freeing the connection structure, don't forget todes2005-02-161-0/+1
| | | | | | | free the connection buffer as well. PR: bin/76153 MFC after: 1 week
* Better version of the patch in 1.117: bring a variable into local scopeharti2005-02-161-10/+15
| | | | | | | to prepare for function splitting and slightly reorganise the code in anticipation of Var_Subst returning a Buffer. Submitted by: Max Okumoto <okumoto@ucsd.edu> (with slight changes)
* Add some consistency checks to the signal-related code.yar2005-02-161-0/+6
| | | | MFC: along with rev. 1.202
* A call to maskurg() makes sense only when a transfer is under way,yar2005-02-161-3/+5
| | | | | | | the function will emit an annoying log message otherwise. Reported by: kris MFC: along with rev. 1.202
* va_list style tweaksobrien2005-02-161-1/+2
|
* On second though, print the OUI, model and revision. This is the sameimp2005-02-161-1/+3
| | | | | information that's in the id1 and id2 fields we were using, but is in a form that the drivers will be using in their matching routines.
* Add support for Windows/x86-64 binaries to Project Evil.wpaul2005-02-1619-264/+782
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ville-Pertti Keinonen (will at exomi dot comohmygodnospampleasekthx) deserves a big thanks for submitting initial patches to make it work. I have mangled his contributions appropriately. The main gotcha with Windows/x86-64 is that Microsoft uses a different calling convention than everyone else. The standard ABI requires using 6 registers for argument passing, with other arguments on the stack. Microsoft uses only 4 registers, and requires the caller to leave room on the stack for the register arguments incase the callee needs to spill them. Unlike x86, where Microsoft uses a mix of _cdecl, _stdcall and _fastcall, all routines on Windows/x86-64 uses the same convention. This unfortunately means that all the functions we export to the driver require an intermediate translation wrapper. Similarly, we have to wrap all calls back into the driver binary itself. The original patches provided macros to wrap every single routine at compile time, providing a secondary jump table with a customized wrapper for each exported routine. I decided to use a different approach: the call wrapper for each function is created from a template at runtime, and the routine to jump to is patched into the wrapper as it is created. The subr_pe module has been modified to patch in the wrapped function instead of the original. (On x86, the wrapping routine is a no-op.) There are some minor API differences that had to be accounted for: - KeAcquireSpinLock() is a real function on amd64, not a macro wrapper around KfAcquireSpinLock() - NdisFreeBuffer() is actually IoFreeMdl(). I had to change the whole NDIS_BUFFER API a bit to accomodate this. Bugs fixed along the way: - IoAllocateMdl() always returned NULL - kern_windrv.c:windrv_unload() wasn't releasing private driver object extensions correctly (found thanks to memguard) This has only been tested with the driver for the Broadcom 802.11g chipset, which was the only Windows/x86-64 driver I could find.
* Change /bin/sh so *it* implements the processing needed for scripts togad2005-02-161-11/+43
| | | | | | | | | | | | | | | | | | | | | | work as expected when they have a "shebang line" of: #!/bin/sh -- # -*- perl -*- -p This specific line is recommended in some perl documentation, and I think I've seen similar lines in documentation for ruby and python. Those write-ups expect `sh' to ignore everything after the '--' if the first thing after the '--' is a '#'. See chapter 19, "The Command-Line Interface" in 3rd edition of "Programming Perl", for some discussion of why perl recommends using this line in some circumstances. The above line does work on solaris, irix and aix (as three data points), and it used to work on FreeBSD by means of a similar patch to execve(). However, that change to execve() effected *all* shells (which caused other problems), and that processing was recently removed. PR: 16393 (the original request to fix the same issue) Reviewed by: freebsd-current (looking at a slightly different patch) MFC after: 1 week
* Fix for a SACK (receiver) bug where incorrect SACK blocks areps2005-02-162-8/+10
| | | | | | | | reported to the sender - in the case where the sender sends data outside the window (as WinXP does :(). Reported by: Sam Jensen <sam at wand dot net dot nz> Submitted by: Mohan Srinivasan
* Add location and PNP info to the mii busimp2005-02-161-0/+24
|
* Add an XXX comment about string quoting.imp2005-02-161-0/+1
|
* Set TCP_NOPUSH on HTTP requests, reducing the number of round-tripskbyanc2005-02-161-1/+9
| | | | | | necessary to establish each connection. MFC after: 2 weeks
* Don't say that mtx_lock() will "sleep" if another kernel thread isru2005-02-151-2/+2
| | | | | | | | holding the mutex, say it will "block". Later in this manual page we say that sleeping while holding a mutex isn't allowed, and this can be confusing. Submitted by: jhb
* Fix grammar error.obrien2005-02-151-1/+1
|
* Rather than overloading the page->object field like UMA does, use insteadbmilekic2005-02-151-17/+13
| | | | | | | | | | | | | | | | | | an unused pageq queue reference in the page structure to stash a pointer to the MemGuard FIFO. Using the page->object field caused problems because when vm_map_protect() was called the second time to set VM_PROT_DEFAULT back onto a set of pages in memguard_map, the protection in the VM would be changed but the PMAP code would lazily not restore the PG_RW bit on the underlying pages right away (see pmap_protect()). So when a page fault finally occured and the VM noticed the faulting address corresponds to a page that _does_ have write access now, it would then call into PMAP to set back PG_RW (i386 case being discussed here). However, before it got to do that, an assertion on the object lock not being owned would get triggered, as the object of the faulting page would need to be locked but was overloaded by MemGuard. This is precisely why MemGuard cannot overload page->object. Submitted by: Alan Cox (alc@)
* Initialize Netgraph type at a correct time, before device probing.ru2005-02-152-2/+2
|
* Remove an outdated comment about ifnet not being locked.ru2005-02-151-3/+0
| | | | OK'ed by: njl, rwatson, sam
* Set the default guardsize and stacksize in the default threaddeischen2005-02-152-0/+4
| | | | attribute when the library is initialized.
* Be concerned about huge callback numbers by truncating them rather thanbrian2005-02-151-5/+9
| | | | | | scribbling past the end of our buffer. Problem spotted by: Damien COUDERC couderc at openbsd dot org
* Be more careful when doing el_parse() - only do it when el isdelphij2005-02-151-1/+1
| | | | | | | | | | properly initialized, that happens when lpc is called from a tty. Without this change, it's possible to get SIGSEGV simply doing: echo "..:" | lpc Reported by: Wojciech A. Koszek <dunstan at freebsd czest pl> PR: 77462 (patch rewritten by myself) MFC After: 1 week
* Expand contractions.ru2005-02-158-8/+8
|
* When dealing with systems with no absolute drivers attached, only calibratenjl2005-02-151-10/+22
| | | | | | | the rate for the 100% state once. Afterwards, use that value for deriving states. This should fix the problem where the calibrated frequency was different once a switch was done, giving a different set of levels each time. Also, properly search for the right cpufreqX device when detaching.
* MFi386 rev 1.61: Fix a few bugs in the legacy cpu attachment ivars.njl2005-02-151-3/+2
|
* Bind to the driver's parent cpu before switching, for both absolute andnjl2005-02-151-18/+28
| | | | | relative drivers. Remove some extraneous KASSERTs since NULL pointers will be found when they're used right afterwards.
* Correct a few bugs in the legacy cpu attachment. Get the unit from thenjl2005-02-151-3/+2
| | | | | | | parent cpu device before passing it to pcpu_find(). Get the ivars from the child, not parent cpu device. These bugs would cause a panic when dereferencing the pcpu ivar, but weren't present in the acpi attachment which it seems most people are using.
* Remove mention of the -k and -wcore options because they don'tmarcel2005-02-151-14/+0
| | | | | | | | exist anymore. PR: doc/70943 Submitted by: Jun <junsu at delphij dot net> Reviewed by: delphij
* Bump __FreeBSD_version for increased size for default thread stacks.njl2005-02-151-1/+1
|
* New release notes: tzdata2004g (+MFC), netcat (+MFC), OpenPAMbmah2005-02-152-2/+26
| | | | | | Feterita, OpenSSH 3.9p1, sendmail 8.13.3. These were all culled from CVS import log messages.
* Use ANSI function definitions, in preference to the K&R definitions.imp2005-02-152-34/+15
|
* Remove more deadwood that never got implemented in NEWCARD, since NEWCARDimp2005-02-152-31/+0
| | | | | went a different direction than was anticipated when these compatibility shims were added.
* Move the harvesting of the MAC address out of the generic novell probeimp2005-02-143-21/+49
| | | | | | | | | and into the bus front ends. For ISA and C-BUS cards, we always need to grab it. For PC Card, already committed, we need to do some sanity checking on the data that's in the ROMs before we decide that they are OK to use. The PC Card code has already been committed and is independent of this code (which also has to work on NE-1000 cards, assuming that those cards still work :-).
* Move the #defines from edreg to edvar which don't have anything to doimp2005-02-142-46/+48
| | | | with talking to the hardware.
* o It turns out that most of the ne-2000 cards that I have got real unhappyimp2005-02-142-13/+45
| | | | | | | | | with the latest changes. They actually have valid ROM data at location 0 of memory, just like a real NE-2000 ISA card. Use this data, if the ROM passes a few basic tests, as an additional source for the MAC address. Prefer the CIS over this source, but have it take precidence over falling back to reading the attribtue memory. o Minor cleanup of a few devices that we match on based on CIS string.
* Adapt for new KDB world order.brueffer2005-02-141-4/+4
| | | | | | PR: 77528 Submitted by: Jamin Brown <alec@gwi.net> MFC after: 3 days
* - Retransmit just one segment on initiation of SACK recovery.ps2005-02-143-42/+18
| | | | | | | | Remove the SACK "initburst" sysctl. - Fix bugs in SACK dupack and partialack handling that can cause large bursts while in SACK recovery. Submitted by: Mohan Srinivasan
* - Remove the unused and unsafe ufs_ihashlookup. This function returned ajeff2005-02-142-24/+0
| | | | | | vnode pointer that could not be used since no locks were held. Sponsored by: Isilon Systems, Inc.
* Fix English grammar.glebius2005-02-141-1/+1
| | | | Submitted by: ru
* Fix typo.stefanf2005-02-141-1/+1
| | | | Submitted by: Antoine Brodin
* Update information now that support for priorities has been added.njl2005-02-141-4/+9
|
* Implement priorities. This allows a driver (say, for cooling purposes) tonjl2005-02-141-4/+38
| | | | | | | override the current freq level temporarily and restore it when the higher priority condition is past. Note that only the first overridden value is saved. Callers pass NULL to CPUFREQ_SET to restore the saved level. Priorities are not yet used so this commit should have no effect.
* - Use socklen_t.stefanf2005-02-141-8/+5
| | | | | - No need for 'fromlen' to have file scope. - Remove an unused variable.
* Use socklen_t.stefanf2005-02-141-5/+5
|
OpenPOWER on IntegriCloud