summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * Add the readline(3) API to libedit. The libedit versions ofobrien2011-04-0515-26/+2791
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree). * Enable its use in the BSD licensed utilities that support readline(3). * To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location. Obtained from: NetBSD Sponsored by: Juniper Networks
| * "Tag" the "2010/08/04 20:29:18 UTC" import.obrien2011-04-0450-0/+22569
| |
| * Vendor import NetBSD's libedit of "2010/08/04 20:29:18 UTC".obrien2011-04-043-7/+19
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2010/06/01 18:20:26 UTC" import.obrien2011-03-3150-0/+22557
| |
| * Vendor import NetBSD's libedit of "2010/06/01 18:20:26 UTC".obrien2011-03-3149-1739/+4017
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2007/01/12 16:31:13 UTC" import.obrien2011-03-3146-0/+20279
| |
| * Vendor import NetBSD's libedit of "2007/01/12 16:31:13 UTC".obrien2011-03-3119-198/+422
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2006/03/23 20:22:51 UTC" import.obrien2011-03-3146-0/+20055
| |
| * Vendor import NetBSD's libedit of "2006/03/23 20:22:51 UTC".obrien2011-03-3111-119/+212
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2005/11/09 22:11:10 UTC" import.obrien2011-03-3146-0/+19962
| |
| * Vendor import NetBSD's libedit of "2005/11/09 22:11:10 UTC".obrien2011-03-3113-67/+93
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2005/08/02 12:11:14 UTC" import.obrien2011-03-3146-0/+19936
| |
| * Vendor import NetBSD's libedit of "2005/08/02 12:11:14 UTC".obrien2011-03-3147-2323/+4015
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "2001/09/29 17:52:10 UTC" import.obrien2011-03-3143-0/+18244
| |
| * Vendor import NetBSD's libedit of "2001/09/29 17:52:10 UTC".obrien2011-03-3144-8946/+11819
| | | | | | | | Obtained from: NetBSD
| * "Tag" the "1997-06-25 01:14:45 -0700" import.obrien2011-03-3140-0/+15371
| |
| * Vendor import NetBSD's libedit of "1997-06-25 01:14:45 -0700".obrien2011-03-3140-0/+15371
| | | | Obtained from: NetBSD
* Lower the bar for ACPI-fast on real machines slightly. Empirical evidencesjkim2011-04-051-8/+11
| | | | | | | show that there are perfectly working PM timers with occasional "hiccups", probably because of an SMI. Now we ignore the maximum if it happens once in the test loop and the width is small enough. Also, relax normal width a bit to count in a boundary case.
* Add initial jumbo frame support for BCM5714/BCM5715 and BCM5780.yongari2011-04-052-17/+38
| | | | | | | | | | | | | | | | | | | | | | | | Unlike other controllers which have more advanced jumbo support, these controllers have one send ring, one standard receive producer ring and one receive return ring. In order to receive jumbo frames on the controllers, driver now will increase Rx buffer size to 9k. Two Rx modes are supported on these controllers and I chose standard Rx BDs over extended Rx BDs. The extended Rx BD mode allows up to 4 segmentations for each Rx BDs such that kernel does not have to allocate large buffer of contiguous memory for receiving. The extended Rx BD mode is already used on controllers that have separate jumbo receive ring. However, using extended Rx BDs on BCM5714/BCM5715/BCM5780 reduces the number of Rx BDs to 256 entries which in turn may reduce the performance. Also UMA backed page allocator for jumbo frame returns contiguous memory so using extended Rx BD has no advantage on FreeBSD unless highly customized local allocator implemented in driver is used. To use jumbo buffers in standard receive ring, Rx buffer allocation handler was changed to allocate MJUM9BYTES sized mbuf. PR: kern/155192 Tested by: Vijay Singh <vijju.singh <> gmail dot com> Submitted by: mjacob (initial version)
* Make the alq log path tunableadrian2011-04-051-1/+5
|
* * re-enable marker stuff, I accidentally disabled it during debuggingadrian2011-04-051-4/+2
| | | | * correct arg check
* Flesh out a simple tool to print the ALQ dump generated by the HAL.adrian2011-04-053-1/+126
|
* Add the ability to manage the state of write caching when the batteryjhb2011-04-052-7/+40
| | | | | | | | | back-up is missing or dead. The current state of this field is reported in 'mfiutil cache <volume>' and can be adjusted via 'mfiutil cache <volume> bad-bbu-write-cache <enable|disable>'. This setting should generally be disabled to avoid data loss. MFC after: 1 week
* Extend the DDB command "watchdog" with the ability to specify a timeoutattilio2011-04-051-8/+25
| | | | | | | | | | | | | | | | value. The timeout is expressed in the form T(N) = (2^N * nanoseconds) and can be easilly extracted from the watchdog interface as a WD_TO_* macro. That new functionality is supposed to fix re-entering the kernel from DDB re-enabling the watchdog again (previously disabled) and also offer the possibility to break for deadlocked DDB commands. Please note that retro-compatibility is retained. Sponsored by: Sandvine Incorporated Approved by: des MFC after: 10 days
* MFi386: revision 220337nyan2011-04-051-0/+1
| | | | Build boot2 with -mregparm=3.
* The xpaBiasLvlFreq[] fields in the modal header also need swappingadrian2011-04-051-1/+4
| | | | when the EEPROM contents are byte-swapped.
* Make clang default on x86 and powerpc, but not on other architectures.imp2011-04-052-33/+52
| | | | | | | | | | | | | | Make fdt default on arm and powerpc. This now includes cross compiled targets, where before we tried to make it host-based. Also, move the lists of default yes and no options to a variable. In general, only build tools should get this treatment in bsd.own.mk. Also, the use of TARGET* in the bsd.*mk files is discouraged, but necessary here due to the ordering of things in buildworld. We make the native case work by testing MACHINE_ARCH after TARGET_ARCH.
* Document -w for swapuse.pluknet2011-04-051-3/+7
| | | | | | PR: docs/156089 Submitted by: Andrey Ignatov <rdna att rdna.ru> MFC after: 1 week
* if_arge has had a strange bug that only appears during high trafficadrian2011-04-051-0/+21
| | | | | | | | | | | | | | | | levels. TX would hang, RX wouldn't. A bit of digging showed the interface send queue was full, but IFF_DRV_OACTIVE was clear and the hardware TX queue was empty. It turns out that there wasn't a check to drain the interface send queue once hardware TX had completed, so if the interface send queue had filled up in the meantime, subsequent packets would be dropped by the higher layers and if_start (and thus arge_start()) would never be called. The fix is simple - call arge_start_locked() in the software interrupt handler after the hardware TX queue has been handled or a TX underrun occured. This way the interface send queue gets drained.
* * Add some more debugging to if_argeadrian2011-04-052-2/+33
| | | | * Make doubly sure that IFF_DRV_OACTIVE is set if the hardware TX queue is full
* Put the ARGE_DEBUG behind a kernel config option.adrian2011-04-052-4/+15
|
* Begin fleshing out a functioning debugging setup for if_arge.adrian2011-04-051-13/+22
| | | | | | I'm seeing TX hangs when doing large amounts of TX traffic; an interface reset fixes it. This will hopefully help me identify why.
* Check correctly for whether there are any available wireless networks. Thisnwhitehorn2011-04-051-1/+1
| | | | was tested on a train in the middle of an upstate New York swamp.
* Improve logging by always sending stderr to the installation log file.nwhitehorn2011-04-051-1/+3
| | | | Reduce warnings by making sure the temporary etc directory exists.
* Use cpu_ticks() for get_cyclecount(9) rather than checking existence of TSCjkim2011-04-041-7/+1
| | | | | | | at run-time on i386. cpu_ticks() is set to use RDTSC early enough on i386 where it is available. Otherwise, cpu_ticks() is driven by the current timecounter hardware as binuptime(9) does. This also avoids unnecessary namespace pollution from <machine/cputypes.h>.
* Add a manpage for the nvram2env driver.adrian2011-04-042-0/+123
|
* Move a trivial acpi_TimerDelta() to acpivar.h to make it inlineable.jkim2011-04-042-11/+10
|
* Build boot2 with -mregparm=3, ie. pass upto 3 arguments via registers.rdivacky2011-04-043-10/+12
| | | | | | | | | | | This modifies CFLAGS and tweaks sio.S to use the new calling convention. The sio_init() and sio_putc() prototypes are modified so that other users of this code know the correct calling convention. This makes the code smaller when compiled with clang. Reviewed by: jhb Tested by: me and Freddie Cash <fjwcash gmail com>
* Always check the current minimum value to make the test more predictable.jkim2011-04-041-2/+2
| | | | Use INT32_MAX instead of an arbitrary big number for the initial minimum.
* errno.h: fix couple of whitespace nitsavg2011-04-041-2/+2
| | | | | Submitted by: bde (a half of the changes) MFC after: 1 week
* Fix bogus logic to calculate delta between two values from ACPI timers.jkim2011-04-041-8/+3
|
* Lower the bar for ACPI-fast on virtual machines. The current logic dependsjkim2011-04-041-2/+3
| | | | | | on the fact that real hardware has almost fixed cost to read the ACPI timer. It is virtually always false for hardware emulation and it makes no sense to read it multiple times, which is already quite expensive for full emulation.
* Fix a long standing bug where file_load() passes down the global loadaddrmarcel2011-04-041-1/+1
| | | | | | | | to the l_load() method in the file_formats structure, while being passed an address as an argument (dest). With file_load() calling arch_loadaddr() now, this bug is a little bit more significant. Spotted by: nyan@ (nice catch!)
* Add inline to acpi_timer_read() to reduce unnecessary jumps and calls.jkim2011-04-041-3/+3
|
* Remove malloc type M_NETADDR unused since splitting into vfs_subr.cpluknet2011-04-041-2/+0
| | | | | | and vfs_export.c. MFC after: 1 week
* Commit missing bits from the last commit:adrian2011-04-043-1/+6
| | | | | * add the hal capability flag * make sure its disabled for the ar9280/ar9285.
* Add a HAL capability bit for supporting self-linked RX descriptors and ↵adrian2011-04-049-12/+31
| | | | | | | | | | | | | | | | | | | disable it for the 11n chipsets. From the ath9k source: == 11N: we can no longer afford to self link the last descriptor. MAC acknowledges BA status as long as it copies frames to host buffer (or rx fifo). This can incorrectly acknowledge packets to a sender if last desc is self-linked. == Since this is useful for pre-AR5416 chips that communicate PHY errors via error frames rather than by on-chip counters, leave the support in there, but disable it for AR5416 and later.
* At least set the coverage class value here; worry about populating theadrian2011-04-041-0/+1
| | | | register values at a later date.
* Do not increment num_args if strsep(3) returned an empty field.pluknet2011-04-041-3/+4
| | | | | | | That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel MFC after: 2 weeks
* When removing ifnets, we should first remove the reference to ifnetglebius2011-04-041-9/+10
| | | | | | | | | | | from the interface index, then decrease refcount, not vice versa. Otherwise there is a race (reproducible) when if_free_internal() contests on IFNET_WLOCK(), and we got a zero-refed ifnet in the index for a long time. It may be picked by some other thread, that runs ifnet_byindex_ref(), who takes the ifnet from index, and bumps refcount. When reader drops the lock, if_free_internal() proceeds with free. Then reader tries to free it a second time.
OpenPOWER on IntegriCloud