aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-0446-138/+142
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* Increase MAXLINE to deal with longer paths.Marcel Moolenaar2014-03-041-1/+1
| | | | | | | Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262721
* Document the fact that OpenSSH default configuration requires CapsicumXin LI2014-03-031-0/+10
| | | | | | | | capability mode support in kernel, which have been worked around later but it's still recommended to have it enabled. Notes: svn path=/head/; revision=262719
* Include kbd(4) when vt(4) is enabled as on other platforms.John Baldwin2014-03-031-1/+1
| | | | | | | Reported by: Anton Shterenlikht Notes: svn path=/head/; revision=262716
* Add note about dtc switch.Warner Losh2014-03-031-0/+7
| | | | Notes: svn path=/head/; revision=262715
* Add a missing semicolong, noticed by the gnu dt compiler.Ian Lepore2014-03-031-1/+1
| | | | Notes: svn path=/head/; revision=262714
* Use the standard __used macro instead of a bare __attribute__.Ian Lepore2014-03-031-2/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=262712
* Add EMAC and SRAM controller entries to FDT.Ganbold Tsagaankhuu2014-03-036-0/+36
| | | | | | | | | | Add EMAC device to kernel config files and enable EMAC, SRAM drivers for build. Approved by: stas (mentor) Notes: svn path=/head/; revision=262711
* Add EMAC 10/100 Ethernet controller driver for A10/A20.Ganbold Tsagaankhuu2014-03-032-0/+1391
| | | | | | | | | | | | | | | It is available mostly in A10 devices like Hackberry, Marsboard, Mele A1000, A2000, A100 HTPC, cubieboard1 and A20 device like cubieboard2. TX performance can be improved using both channels 0 and 1. RX performance is poor and needs improvement with the assistance of external DMA controller in case there is bulk TCP receiver. Reviewed by: yongari@ Approved by: stas (mentor) Notes: svn path=/head/; revision=262710
* Add Static Random Access Memory controller driver for A10/A20.Ganbold Tsagaankhuu2014-03-032-0/+168
| | | | | | | | | | A10/A20's SRAM is used by devices, such as CPU, EMAC, for extra fast memory or as cache. Approved by: stas (mentor) Notes: svn path=/head/; revision=262709
* Add gpio and clock bits for A10/A20's EMAC ethernet controller driver, such as:Ganbold Tsagaankhuu2014-03-034-2/+76
| | | | | | | | | | - EMAC gpio configuration - EMAC clock activation Approved by: stas (mentor) Notes: svn path=/head/; revision=262708
* Workaround a GCC warning to unbreak ARM build.Xin LI2014-03-031-1/+1
| | | | | | | Reported by: ian Notes: svn path=/head/; revision=262705
* Explicitly request review/regression testing on theGlen Barber2014-03-021-0/+2
| | | | | | | | | | release/release.sh script, as it is heavily used on a regular basis, not just during a release cycle. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=262699
* sh: Simplify expari().Jilles Tjoelker2014-03-021-48/+46
| | | | | | | | | | | | Redo expari() like evalvar(). This makes the logic more understandable and avoids possible problems if arithmetic expansion occurs if CTLESC characters are not generated (looking backwards for CTLARI is not generally possible in that case but the old code tried anyway). This adds an extra argstr() recursion. Notes: svn path=/head/; revision=262697
* Add __attribute__((used)) so that the delay implementation doesn't getIan Lepore2014-03-021-0/+1
| | | | | | | | optimized away as unreferenced, causing linker errors when trying to resolve the weak reference to the missing function. Notes: svn path=/head/; revision=262696
* Add a tunable to set the number of active cores, and enable SMP by default.Ian Lepore2014-03-022-3/+11
| | | | Notes: svn path=/head/; revision=262695
* Include needed header. I don't know why clang didn't complain about thisIan Lepore2014-03-021-0/+4
| | | | | | | but gcc sure did. Notes: svn path=/head/; revision=262694
* When querying a process's umask via sysctl in libprocstat(), don'tRobert Watson2014-03-021-1/+1
| | | | | | | | | | | | print a warning if EPERM is returned as this is an expected failure mode rather than error -- similar to current handling of ESRCH. This makes the output of 'procstat -as' vastly more palatable. MFC after: 3 days Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=262690
* Add fetch and patch to .PHONY and .NOTMAIN only if PORTNAME is defined.Andrey A. Chernov2014-03-021-2/+6
| | | | | | | | | | Unconditional addition cause real fetch(1) and patch(1) programs are builded every time. MFC after: 1 week Notes: svn path=/head/; revision=262689
* MFV r262639: ncurses 5.9 20140222 snapshot.Xin LI2014-03-02289-17032/+35920
|\ | | | | | | | | | | | | Requested by: bapt Notes: svn path=/head/; revision=262685
| * Vendor import of ncurses 5.9 20140222 snapshot.vendor/ncurses/5.9-20140222Xin LI2014-03-01636-37682/+64307
| | | | | | | | | | Notes: svn path=/vendor/ncurses/dist/; revision=262639 svn path=/vendor/ncurses/5.9-20140222/; revision=262640; tag=vendor/ncurses/5.9-20140222
| * Compensate previous import with the removed files.vendor/ncurses/5.9-20110404Xin LI2014-03-01542-0/+148580
| | | | | | | | | | Notes: svn path=/vendor/ncurses/dist/; revision=262633 svn path=/vendor/ncurses/5.9-20110404/; revision=262635; tag=vendor/ncurses/5.9-20110404
* | Add a description here.Adrian Chadd2014-03-021-0/+3
| | | | | | | | Notes: svn path=/head/; revision=262684
* | Set all of the ports into the same vlangroup; there's only one vlangroupAdrian Chadd2014-03-021-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pvid=1) and we already configure them to send to other ports. Setting pvid=portnum would mean that there were separate vlangroups for each ports, but 'leaking' into other ports. The result? All port traffic flooded to all other port traffic. Tested: * DB120, AR9344 + AR8327 switch Notes: svn path=/head/; revision=262683
* | - Fix BBB's dts compilation with GNU dtcOleksandr Tymoshenko2014-03-021-1/+1
| | | | | | | | Notes: svn path=/head/; revision=262682
* | Add ATU flush support.Adrian Chadd2014-03-023-1/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OpenWRT AR8xxx switch support flushes the ATU (address translation unit) after each port link 'up' status change. I've modified this to just flush on any port transition. Whilst here, bump the number of ports on the AR8327 to 6, rather than the default of 5. It's DB120 specific; I'll go and make this configurable later. There's some debugging code in here still; I am still debugging whether this is or isn't working fully. Tested: * DB120, AR9344 + AR8327 switch Obtained from: OpenWRT Notes: svn path=/head/; revision=262681
* | Add AR8216 era ATU management/configuration register definitions.Adrian Chadd2014-03-021-6/+31
| | | | | | | | | | | | | | Obtained from: OpenWRT Notes: svn path=/head/; revision=262680
* | Improve upon previous commit:Marcel Moolenaar2014-03-021-6/+7
| | | | | | | | | | | | | | | | | | | | | | 1. Check return of mmap(2) (*) 2. Avoid FD leak when fstat fails. 3. Fix style(9). (*) Pointed out by jmg@ Notes: svn path=/head/; revision=262679
* | ufs: small formatting fixes.Pedro F. Giffuni2014-03-0217-196/+196
| | | | | | | | | | | | | | | | | | | | | | | | Cleanup some extra space. Use of tabs vs. spaces. No functional change. MFC after: 3 days Reviewed by: mckusick Notes: svn path=/head/; revision=262678
* | Add the USB EHCI flags required for the post-AR71xx devices.Adrian Chadd2014-03-021-2/+3
| | | | | | | | | | | | | | | | | | Tested: * DB120, AR9344 Notes: svn path=/head/; revision=262677
* | All callers of static method load_nvlist() in spa.c handles error case,Xin LI2014-03-021-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | so there is no reason to assert that we won't hit an error. Instead, just return that error to caller and have the upper layer handle it. Obtained from: FreeNAS Reported by: rodrigc Reviewed by: Matthew Ahrens MFC after: 2 weeks Notes: svn path=/head/; revision=262676
* | Revive support for /etc/issue, lost due revision 81963.Marcel Moolenaar2014-03-021-0/+19
| | | | | | | | | | | | | | Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262673
* | Use ${MAKE} so that we always use the same version/implementationMarcel Moolenaar2014-03-021-2/+2
| | | | | | | | | | | | | | of make. Notes: svn path=/head/; revision=262670
* | When our linker merges .SUNW_dof sections from multiple files, it simplyMark Johnston2014-03-011-30/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | concatenates the DOF tables into one section. Previously, the USDT init code in drti.o would only look at the first table in the DOF section; with this change, it iterates over all the tables, passing each DOF table to the kernel. PR: 186821 Submitted by: Fedor Indutny <fedor@indutny.com> MFC after: 1 month Notes: svn path=/head/; revision=262669
* | ext2fs: small formatting fixes.Pedro F. Giffuni2014-03-012-3/+3
| | | | | | | | | | | | | | | | | | | | Remove some redundant spaces. No functional change. MFC after: 3 days Notes: svn path=/head/; revision=262667
* | If we can't find the u-boot api signature, exit with an error status thatIan Lepore2014-03-011-3/+9
| | | | | | | | | | | | | | | | includes "badab1"; u-boot displays the status in hex, so this may help give some clue about why ubldr isn't working (more than -1 does anyway). Notes: svn path=/head/; revision=262666
* | Expose a few DTrace parameters as sysctls under kern.dtrace and addMark Johnston2014-03-013-4/+16
| | | | | | | | | | | | | | | | | | | | | | descriptions for several existing sysctls. PR: 187027 Submitted by: Fedor Indutny <fedor@indutny.com> (original version) MFC after: 2 weeks Notes: svn path=/head/; revision=262665
* | Prevent fdt data loaded from a file from overwriting the kernel environment,Ian Lepore2014-03-015-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | by having uboot_autoload() do the fdt setup (which may load a file) rather than waiting until we're actually in the process of launching the kernel. As part of making this happen... - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when MK_FDT is set. - Make fdt_setup_fdtb() public. - Declare public fdt_whatever() functions in a header instead of using scattered extern decls in .c files. Notes: svn path=/head/; revision=262664
* | - Make pointer easier to control when moving slowly.Hans Petter Selasky2014-03-011-6/+26
| | | | | | | | | | | | | | | | | | | | - Increase chance of vertical scrolling as vertical scrolling is used more often. Submitted by: Huang Wen Hui <huanghwh@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=262663
* | Fix emulation of call and jmp instructions on i386 and for 32-bit processesMark Johnston2014-03-011-11/+4
| | | | | | | | | | | | | | | | | | | | on amd64. Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> MFC after: 2 weeks Notes: svn path=/head/; revision=262661
* | Apply fix for lldb not linking after the sparc backend import.Dimitry Andric2014-03-011-0/+6
| | | | | | | | | | | | | | | | Reported by: se Pointy hat to: dim Notes: svn path=/head/; revision=262657
* | Silence the gcc warning about unsigned comparison with 0 in a differentTijl Coosemans2014-03-011-3/+2
| | | | | | | | | | | | | | | | | | way because mnemonic_ext_size isn't a preprocessor macro. MFC after: 3 days Notes: svn path=/head/; revision=262655
* | (I think!) make the AR8327 switch correctly handle traffic.Adrian Chadd2014-03-011-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch does four things: * it globally disables mirroring; * it globally sets the mirroring on each port to be disabled; * the initial port setup now programs a portmask for the port to allow transmission (forwarding) to all other ports bar itself; * the vlan setup path now programs the portmask for the port to allow transmission (forwarding) to all other ports bar itself. Before this, I hard-coded the portmask to 0x3f which would mean all ports (bar port 6, which currently isn't hooked up to anything.) This means that traffic would be duplicated back out the port it received it. I bet this wasn't .. optimal. In any case, this _seems_ to make DHCP from my macosx laptop work through this access point. I'll do some further testing to ensure it's actually working correctly on all my devices. Tested: * DB120, AR8327 switch Notes: svn path=/head/; revision=262653
* | ssh-copy-id: add restorecon callEitan Adler2014-03-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | In certain situations when creating an authorized_key file on a Linux machine restorecon(1) may need to be called. Therefore, attempt to run it if it exists. MFC After: 1 week Idea from: https://bugzilla.redhat.com/show_bug.cgi?id=739989 Notes: svn path=/head/; revision=262647
* | Fix a race between VMRUN() and vcpu_notify_event() due to 'vcpu->hostcpu'Neel Natu2014-03-011-10/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being updated outside of the vcpu_lock(). The race is benign and could potentially result in a missed notification about a pending interrupt to a vcpu. The interrupt would not be lost but rather delayed until the next VM exit. The vcpu's hostcpu is now updated concurrently with the vcpu state change. When the vcpu transitions to the RUNNING state the hostcpu is set to 'curcpu'. It is set to 'NOCPU' in all other cases. Reviewed by: grehan Notes: svn path=/head/; revision=262646
* | ssh-copy-id: avoid sending private keys; add -v optionEitan Adler2014-03-012-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To help avoid confusion: when attempting to send a key file check to see if a file of the same name exists with a '.pub' suffix and send that instead. This mimics the behavior of other ssh-copy-id scripts. Add -v passthrough. Reported by: dweimer <dweimer@dweimer.net> Reported by: feld MFC After: 1 week Notes: svn path=/head/; revision=262645
* | Add the bluetooth information structs to the firmware RX statistics message.Adrian Chadd2014-03-011-6/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that there's a variant format of the RX statisitcs notification from the intel firmware. It's even more whacked - the non-BT variant has bluetooth fields; apparently some later NICs return even _more_ bluetooth related fields. I'll commit the statistics structure changes here - it's a no-op for the driver. I'll later teach the driver code to populate a statistics structure from the received message after reformatting things correctly. I don't _think_ it's going to fix anything related to sensitivity programming as the CCK/OFDM (non-11n) fields are in the same place for both formats. But the HT structure and the general statistics aren't in the same place. I'll go find some NIC(s) that spit out the other format and when I find one, I'll go and update the driver to handle things correctly. Tested: * Intel 5100 (which returns the legacy, non-BT format) Obtained from: Linux iwlwifi Notes: svn path=/head/; revision=262642
* | Be paranoid about bit operations here.Adrian Chadd2014-03-011-1/+1
| | | | | | | | Notes: svn path=/head/; revision=262634
* | Remove now dead code.Adrian Chadd2014-03-011-10/+0
| | | | | | | | Notes: svn path=/head/; revision=262632
* | Bump __FreeBSD_version after import of ncurses 5.9.Xin LI2014-02-281-1/+1
| | | | | | | | Notes: svn path=/head/; revision=262630