summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix some nits.hselasky2013-02-055-6/+6
|
* Fix depend target.hselasky2013-02-051-4/+4
|
* Load the pfsync module if necessary.des2013-02-051-0/+1
| | | | | Reviewed by: glebius@ MFC after: 1 week
* Build clang for little-endian arm by default. Due to size issues when builtandrew2013-02-051-1/+5
| | | | with gcc disable CLANG_FULL for now.
* Remove two dead assignments andganbold2013-02-051-14/+14
| | | | | | | make use of sc more explicit and clear Submitted by: Christoph Mallon Approved by: gonzo@
* ext2fs: move assignment where it is not dead.pfg2013-02-051-2/+3
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* ext2fs: Remove unused em_e2fsb definition..pfg2013-02-051-1/+0
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* ext2fs: Remove useless rootino local variable.pfg2013-02-051-4/+3
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* ext2fs: Correct off-by-one errors in FFTODT() and DDTOFT().pfg2013-02-051-2/+2
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* ext2fs: Use nitems().pfg2013-02-051-6/+4
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* ext2fs: Use EXT2_LINK_MAX instead of LINK_MAXpfg2013-02-051-5/+5
| | | | | Submitted by: Christoph Mallon MFC after: 2 weeks
* crunchgen: Permit use of alternative linkers.pfg2013-02-051-1/+2
| | | | | Submitted by: Pete Chou MFC after: 1 week
* Add gpio driver and update dts and kernel config accordingly.ganbold2013-02-054-1/+532
| | | | Approved by: gonzo@
* Rework jumbo frame handling. QAC confirmed that the controlleryongari2013-02-052-44/+87
| | | | | | | | | | | | | | | | | | | | | | requires 8 bytes alignment on RX buffer. Given that non-jumbo frame works on any alignments I guess this DMA limitation for RX buffer could be jumbo frame specific one. Also I'm not sure whether this DMA limitation is related with 64bit DMA. Previously age(4) disabled 64bit DMA addressing due to silent data corruption. So we may need more testing on re-enabling 64bit DMA in future. While I'm here, change mbuf chaining algorithm to use fixed sized buffer and force software checksum if controller reports length error. According to QAC, RFD is not updated at all for jumbo frame so it works just like alc(4) controllers. This change also added alignment fixup for strict alignment architectures. Because I'm not aware of any non-x86 machines that use age(4) controllers it's just for completeness at this moment. Wit this change, jumbo frame should work with age(4). Tested by: Christian Gusenbauer < c47g <> gmx dot at > MFC after: 1 week
* ktr: prevent possible footshooting with KTR_ENTRIES and KTR_BOOT_ENTRIESavg2013-02-041-1/+1
| | | | | | Suggested by: adrian MFC after: 14 days X-MFC with: r246282
* ktr: copy content from the early static buffer if KTR_ENTRIES !=avg2013-02-041-0/+1
| | | | | | | | | KTR_BOOT_ENTRIES Reported by: glebius, jhb Pointyhat to: avg MFC after: 14 days X-MFC with: r246282
* Use stripesize as smallest block size if it's available.delphij2013-02-041-0/+5
| | | | MFC after: 2 weeks
* Sort by MK_* knob like the comment saysdes2013-02-041-5/+5
| | | | MFC after: 1 week
* Missed adding Makefile.config and unit-tests/Makefile shouldsjg2013-02-042-0/+23
| | | | | | allow FreeBSD make to do 'obj'. Approved by: marcel (mentor)
* ng_ether_ifnet_arrival_event: check interface type before using IFP2NGavg2013-02-041-1/+7
| | | | | | | | | | | The check is copied from vnet_ng_ether_init. Not sure if it covers all the types that we want to support with ng_ether. Reported by: markj Discussed with: zec MFC after: 10 days X-MFC with: r246245
* Cast *tabchar, a wchar_t, to a wint_t as it is the type the %lc printfandrew2013-02-041-1/+1
| | | | | format string expects. This is only an issue on ARM EABI where wint_t is different to wchar_t.
* Use the STACKALIGN macro to alight the stack rather than with a magic mask.andrew2013-02-041-5/+4
| | | | Submitted by: Christoph Mallon <christoph.mallon gmx.de>
* Add #undef TARGET_DEFAULT back as it shouldn't have been removed in r245539andrew2013-02-041-0/+1
|
* Try to improve r242655 take III: move these SYSCTLs describing the kernelmarius2013-02-042-11/+11
| | | | | | map, which is defined and initialized in vm/vm_kern.c, to the latter. Submitted by: alc
* Fix xdev by using the install shell script as it knows about the -landrew2013-02-041-1/+2
| | | | argument thile the local version install may not.
* Allow the unwind functions int libgcc_s to interact correctly with libthr.andrew2013-02-042-11/+13
| | | | | | | | | | | | | | | | | | | _Unwind_ForcedUnwind in libgcc_s takes as one of it's parameters a stop function to tell it when to stop unwinding. One of the stop function's parameters is a _Unwind_Exception_Class. On most architectures this is an int64_t, however on ARM EABI the gcc developers have made this a char array with 8 items. While both of these take the same space they are passed into the stop function differently, an int64_t is passed in in registers r2 and r3, while the char[8] is passed in as a pointer to the first item in register r2. Because libthr expects the value to be an int64_t we would get incorrect results when it passes a function that take an int64_t but libgcc passes in a pointer to a char array including crashing. The fix is to update libgcc_s to make it pass an int64_t to the stop function and to libstdc++ as it expects _Unwind_Exception_Class to be an array.
* Extend GDB to check the value in the .note.tag section along with theandrew2013-02-042-0/+18
| | | | | | | | .note.ABI-tag section. This helps on ARM EABI where the OS/ABI field is zero. It would be better to use the NOTES program header however this would require a more invasive change.
* Further improve r242655 and supply VM_{MIN,MAX}_KERNEL_ADDRESS as constantmarius2013-02-031-7/+7
| | | | | | values to SYSCTL_ULONG(9) where possible. Submitted by: bde
* - Make pci_ns8250_ids[] const.marius2013-02-031-6/+6
| | | | | | | - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. MFC after: 1 week
* UFS: Remove dead assignment.pfg2013-02-031-1/+0
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* crunchide(1): Put e_shnum into a local variable.pfg2013-02-031-10/+13
| | | | | | | This simplifies the code a bit. Submitted by: Cristoph Mallon MFC after: 2 weeks
* Add several missing symbols to libcxxrt's symbol version map, and removedim2013-02-031-14/+12
| | | | | | | | | a few duplicates. This should fix building world with -stdlib=libc++ after r246028. Submitted by: Yamaya Takashi <yamayan@kbh.biglobe.ne.jp> MFC after: 1 week X-MFC-With: r246028
* crunchide(1): support non-custom elf object layoutpfg2013-02-031-60/+157
| | | | | | | | | | | | | | | The crunchide utility presumes the last 3 chunks of an ELF object layout are section headers, symbol table, and then string table. However, this is not specified in the ELF standards, and linkers may generate different layouts when doing partial linking (-r). This change is required to build FreeBSD with mclinker or the gold linker. PR: bin/174011 Submitted by: Pete Chou Reviewed by: Cristoph Mallon MFC after: 2 weeks
* zfs: fix, improve and re-organize page_lookup and page_unlockavg2013-02-031-23/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now they are split into two pairs: page_hold/page_unhold for mappedread and page_busy/page_unbusy for update_pages. For mappedread we simply hold a page that is to be used as a source if it is resident and valid (and not busy). This is sufficient since we are only doing page -> user buffer copying. There is no page <-> backing storage I/O involved. update_pages is now better split to properly handle the putpages case (page -> arc) and the regular write case (arc -> page). For the latter we use complete protocol of marking an object with paging-in-progress and marking a page with io_start (busy count). Also, in this case we remove the write bit from all page mappings and clear dirty bits of the pages, the former is needed to ensure that the latter does the right thing. Additionally we update a page if it is cached instead of just freeing it as was done before. This needs to be verified. A minor detail: ZFS-backed pages should always be either fully valid or fully invalid. Assert this and use simpler API that does not deal with sub-page blocks. Reviewed by: kib MFC after: 26 days
* For UFS2 i_blocks is unsigned. The current "sanity" check that itmckusick2013-02-031-3/+3
| | | | | | | | | | | has gone below zero after the blocks in its inode are freed is a no-op which the compiler fails to warn about because of the use of the DIP macro. Change the sanity check to compare the number of blocks being freed against the value i_blocks. If the number of blocks being freed exceeds i_blocks, just set i_blocks to zero. Reported by: Pedro Giffuni (pfg@) MFC after: 2 weeks
* sh: Expand here documents in the current process.jilles2013-02-035-24/+48
| | | | | | | | | | | | | | | | | Expand here documents at the same point other redirections are expanded but use a non-fork subshell environment (like simple command substitutions) for compatibility. Substitition errors result in an empty here document like before. As a result, a fork is avoided for short (<4K) expanded here documents. Unexpanded here documents (with quoted end marker after <<) are not affected by this change. They already only forked when >4K. Side effects: * Order of expansion is slightly different. * Slow expansions are not executed in parallel with the redirected command. * A non-fork subshell environment is subtly different from a forked process.
* - Add CHECKSUM.* support in Makefile[1].hrs2013-02-0310-254/+212
| | | | | | | | | | | | - Use ln -fs to create a symlink. - Remove pkgadd for docports. - Use WITHOUT_JADETEX=yes instead of WITH_JADETEX=no. - Add {WORLD,KERNEL}_FLAGS to [BTWK]MAKE. - Use makefs(8) and gpart(8) for sparc64 ISO image[2]. - Add publisher option to makefs(8)[2]. Based on work by: gjb[1] Discussed with: marius, nwhitehorn[2]
* allow for large KTR_ENTRIES values by allocating ktr_buf using malloc(9)avg2013-02-033-3/+33
| | | | | | | | | | | Only during very early boot, before malloc(9) is functional (SI_SUB_KMEM), the static ktr_buf_init is used. Size of the static buffer is determined by a new kernel option KTR_BOOT_ENTRIES. Its default value is 1024. This commit builds on top of r243046. Reviewed by: alc MFC after: 17 days
* crunch: Sync some NetBSD changespfg2013-02-031-0/+2
| | | | | | | Fix a couple of free's in previous commit. Obtained from: NetBSD MFC after: 1 week
* Another overhaul of the CPSW driver for BeagleBonekientzle2013-02-033-901/+1586
| | | | | | | | | | | | | | Major changes: * Finally tracked down the flow control setting that seems to have been causing TX stalls and watchdog timeouts * RX and TX paths now share a lot more code * TX interrupt is no longer used; we instead GC finished tx queue entries at the bottom of the start routine. * TX start now queues fragmented packets directly; it only invokes defrag() for occasional very fragmented packets. * "sysctl dev.cpsw" dumps controller statistics and queue counts * Host Error Interrupt will give extensive debugging information if the controller chokes on the queued data.
* Fix the PowerPC DTrace copy functions. The kernel doesn't hold the same view tojhibbits2013-02-032-66/+61
| | | | | | the user map, so use the md copy in/out functions provided by the kernel. MFC with: r242723
* Regenerate src.conf(5).dim2013-02-021-0/+7
|
* Add missing src.conf(5) fragments for WITHOUT_LIBCPLUSPLUS and WITH_GPL_DTC.dim2013-02-022-0/+5
|
* crunch: Sync some NetBSD changespfg2013-02-021-2/+3
| | | | | | Revert a comment that was not supposed to go away. Obtained from: NetBSD
* Regenerate src.conf(5).dim2013-02-021-4/+25
|
* Pull in r170135 from upstream clang trunk:dim2013-02-0270-18/+218
| | | | | | | | | | | | | | | | Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled. Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped). To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time. MFC after: 1 week
* ext2fs: general cleanup.pfg2013-02-027-61/+17
| | | | | | | | | | | | | | | | | | | | | | - Remove unused extern declarations in fs.h - Correct comments in ext2_dir.h - Several panic() messages showed wrong function names. - Remove commented out stray line in ext2_alloc.c. - Remove the unused macro EXT2_BLOCK_SIZE_BITS() and the then write-only member e2fs_blocksize_bits from struct m_ext2fs. - Remove the unused macro EXT2_FIRST_INO() and the then write-only member e2fs_first_inode from struct m_ext2fs. - Remove EXT2_DESC_PER_BLOCK() and the member e2fs_descpb from struct m_ext2fs. - Remove the unused members e2fs_bmask, e2fs_dbpg and e2fs_mount_opt from struct m_ext2fs - Correct harmless off-by-one error for fspath in ext2_vfsops.c. - Remove the unused and broken macros EXT2_ADDR_PER_BLOCK_BITS() and EXT2_DESC_PER_BLOCK_BITS(). - Remove the !_KERNEL versions of the EXT2_* macros. Submitted by: Christoph Mallon MFC after: 2 weeks
* Improve r238673 to additionally allow for odd-aligned buffers asmarius2013-02-022-10/+49
| | | | | | | | | passed in by smartd of smartmontools. While at it, hint the compiler that 32-bit PIO is the most likely case (idea from Linux) and use bus_{read,write}_stream_2(9) instead of bus_{read,write}_multi_stream_2(9) for single count reads/writes. MFC after: 1 week
* crunch: Sync some NetBSD changes.pfg2013-02-023-26/+26
| | | | | | | | | | | | | | | | | crunchide: Apr 11, 2009: fix some -Wsign-compare issues. Sep 20, 1999: Free the right thing. crunchgen: Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual) Oct 30, 2004: Add (unsigned char) cast to ctype functions Feb 5, 2001: fix nested extern. examples: Aug 30, 2007: NetBSD 36867 - trsp references are deprecated Obtained from: NetBSD MFC after: 1 week
* Use the default policy table of RFC 6724.ume2013-02-021-10/+18
| | | | MFC after: 1 weeks
OpenPOWER on IntegriCloud