summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add PT_GNU_STACK definition.kib2010-11-231-0/+1
| | | | MFC after: 3 days
* Add include guards.kib2010-11-232-0/+10
| | | | MFC after: 3 days
* Make the Huawei E1820 work (Emile Coetzee).n_hibma2010-11-232-6/+6
| | | | | | | | Shorten the descriptive strings for Huawei devices. The vendor or operator name should not be included in the device name. Submitted by: Emile Coetzee MFC after: 3 days
* o NetBSD 5.1 added.maxim2010-11-231-14/+15
|
* Add parentheses for clarity. The parentheses around the two terms of the &&cperciva2010-11-231-1/+1
| | | | | | | are unnecessary but I'm leaving them in for the sake of avoiding confusion (I confuse easily). Submitted by: bde
* sh: Fix confusing behaviour if chdir succeeded but getcwd failed in cd -P.jilles2010-11-221-2/+5
| | | | | | If getcwd fails, do not treat this as an error, but print a warning and unset PWD. This is similar to the behaviour when starting the shell in a directory whose name cannot be determined.
* Allow for vlan(4) ifnets to have overlapping unit numbers if they arezec2010-11-221-0/+42
| | | | | | | | | | | | | | | | created in separated vnets. As a side-effect of having a separated if_cloner instance for each vnet, all vlan ifnets created in a vnet will be automatically destroyed when vnet teardown is initiated. Disallow SIOCSETVLAN and SIOCGETVLAN ioctls on vlan ifnets which are associated with physical ifnets residing in parent vnets. This is an interim vlan-specific solution which will be superseded by a more generic if_cloner V_irtualization change from p4. For nooptions VIMAGE builds, this should be a no-op change. Discussed with: bz MFC after: 3 days
* Fix small typo.mav2010-11-221-1/+1
| | | | Submitted by: Artem Belevich
* Restore the (state) and \n printout when not using -T.gnn2010-11-221-2/+3
| | | | | Pointed out by: brucec@ MFC after: 3 weeks
* - Fix and enable support for flow control.marius2010-11-221-6/+10
| | | | | | | - Partially revert r172334; as it turns out the DELAYs in gem_reset_{r,t}x() are actually necessary although bus space barriers and gem_bitwait() are used, otherwise the controller may trigger an IOMMU errors on at least sparc64. This is in line with what Linux and OpenSolaris do.
* - Fix and enable support for flow control.marius2010-11-221-21/+18
| | | | - Fix compilation with CAS_DEBUG defined.
* - Also probe BCM5214 and BCM5222.marius2010-11-222-11/+53
| | | | | | | | - Add some DSP init code for BCM5221. The values derived from Apple's GMAC driver and the same init code also exists in Linux's sungem_phy driver. - Only read media status bits when they are valid. Obtained from: NetBSD, OpenBSD
* Resume critical PCI devices (and their children) first, then everything elsejkim2010-11-221-1/+28
| | | | later. This give us better chance to catch device driver problems.
* Remove kernbb(8) from the source tree.uqs2010-11-223-239/+0
| | | | | | | | | It's been broken for several years and with all the binutils/toolchain changes in flight, it might make more sense to put efforts into dtrace and hwpmc instead. Discussed with: phk PR: bin/83558
* Add support for flow control.marius2010-11-223-6/+10
| | | | Obtained from: NetBSD (partially)
* Given that unlike f.e. rgephy(4) these drivers doen't explicitly start anmarius2010-11-222-0/+4
| | | | | | | autonegotiation along with manual media selection and also only report flow control status when BMCR_AUTOEN is set (at least with gentbi(4) determining the flow control status results in false-positives when not set), use MIIF_NOMANPAUSE.
* Given that unlike f.e. rgephy(4) this driver doesn't explicitly start anmarius2010-11-221-0/+2
| | | | | | | autonegotiation along with manual media selection and ukphy_status() also only reports flow control status when BMCR_AUTOEN is set (at least with gentbi(4) determining the flow control status results in false-positives when not set), use MIIF_NOMANPAUSE.
* Add missing newlines.marius2010-11-221-5/+5
| | | | MFC after: 3 days
* Resurrect amd64 support.bschmidt2010-11-224-8/+95
| | | | | | | | | | | | - Many drivers on amd64 are picking system uptime, interrupt time and ticks via global data structure instead of calling functions for performance reasons. For now just patch such address so driver will not trigger page fault when trying to access such data. In future, additional callout may be added to update data in periodic intervals. - On amd64 we need to allocate "shadow space" on stack before calling any function. Submitted by: Paul B Mahol <onemda at gmail.com>
* Prefer pmap_extract() over pmap_kextract() as done in MmIsAddressValid().bschmidt2010-11-221-1/+7
| | | | | | | According to the comment for MmIsAddressValid() there are issues on PAE kernels using pmap_kextract(). Submitted by: Paul B Mahol <onemda at gmail.com>
* Fix linux kernel module breakage introduced in r215675, by includingdim2010-11-221-0/+1
| | | | | | | <sys/sysent.h>. Noticed by: many Pointy hat to: netchild
* hdr.elf.e_ident[EI_OSABI] is not a bitmask so '==' should been used.brucec2010-11-221-2/+2
| | | | Reported by: Artem Belevich <fbsdlist at src.cx>
* Fix some more warnings found by clang.brucec2010-11-2211-12/+16
|
* - Disable caches and flush caches/TLBs when we update PAT as we do for MTRR.jkim2010-11-222-166/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | Flushing TLBs is required to ensure cache coherency according to the AMD64 architecture manual. Flushing caches is only required when changing from a cacheable memory type (WB, WP, or WT) to an uncacheable type (WC, UC, or UC-). Since this function is only used once per processor during startup, there is no need to take any shortcuts. - Leave PAT indices 0-3 at the default of WB, WT, UC-, and UC. Program 5 as WP (from default WT) and 6 as WC (from default UC-). Leave 4 and 7 at the default of WB and UC. This is to avoid transition from a cacheable memory type to an uncacheable type to minimize possible cache incoherency. Since we perform flushing caches and TLBs now, this change may not be necessary any more but we do not want to take any chances. - Remove Apple hardware specific quirks. With the above changes, it seems this hack is no longer needed. - Improve pmap_cache_bits() with an array to map PAT memory type to index. This array is initialized early from pmap_init_pat(), so that we do not need to handle special cases in the function any more. Now this function is identical on both amd64 and i386. Reviewed by: jhb Tested by: RM (reuf_m at hotmail dot com) Ryszard Czekaj (rychoo at freeshell dot net) army.of.root (army dot of dot root at googlemail dot com) MFC after: 3 days
* Fix use of AND operator: should be bitwise instead of logical.brucec2010-11-221-2/+2
|
* After some off-list discussion, revert a number of changes to thedim2010-11-2261-226/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | DPCPU_DEFINE and VNET_DEFINE macros, as these cause problems for various people working on the affected files. A better long-term solution is still being considered. This reversal may give some modules empty set_pcpu or set_vnet sections, but these are harmless. Changes reverted: ------------------------------------------------------------------------ r215318 | dim | 2010-11-14 21:40:55 +0100 (Sun, 14 Nov 2010) | 4 lines Instead of unconditionally emitting .globl's for the __start_set_xxx and __stop_set_xxx symbols, only emit them when the set_vnet or set_pcpu sections are actually defined. ------------------------------------------------------------------------ r215317 | dim | 2010-11-14 21:38:11 +0100 (Sun, 14 Nov 2010) | 3 lines Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout the tree. ------------------------------------------------------------------------ r215316 | dim | 2010-11-14 21:23:02 +0100 (Sun, 14 Nov 2010) | 2 lines Add macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.
* The meshid element is memcpy()'ed into se_meshid if included in eitherbschmidt2010-11-221-1/+1
| | | | | | | | beacon or probe-response frames. Fix the condition by checking for the the array's content instead of the always existing array itself. Reviewed by: rpaulo, stefanf MFC after: 3 days
* Regenerate manual pages for OpenSSL 0.9.8p.simon2010-11-22278-9639/+7617
|
* Merge OpenSSL 0.9.8p into head.simon2010-11-22127-535/+876
| | | | | Security: CVE-2010-3864 Security: http://www.openssl.org/news/secadv_20101116.txt
* Use g_eventlock to protect against losing wakeups in the g_event processjh2010-11-222-32/+37
| | | | | | | | | | | | | and replace tsleep(9) with msleep(9) which doesn't use a timeout. The previously used timeout caused the event process to wake up ten times per second on an idle system. one_event() is now called with the topology lock held and it returns with both the topology and event locks held when there are no more events in the queue. Reported by: mav, Marius NĂ¼nnerich Reviewed by: freebsd-geom
* Fix a TSO checksum bug on mxge(4):gallatin2010-11-221-1/+12
| | | | | | | | | | | | | | | | | The Myri10GE NIC will assume all TSO frames contain partial checksum, and will emit TSO segments with bad TCP checksums if a TSO frame contains a full checksum. The mxge driver takes care to make sure that TSO is disabled when checksum offload is disabled for this reason. However, modules that modify packet contents (like pf) may end up completing a checksum on a TSO frame, leading to the NIC emitting TSO segments with bad checksums. To workaround this, restore the partial checksum in the mxge driver when we're fed a TSO frame with a full checksum. Reported by: Bob Healey MFC after: 3 days
* Style fix.attilio2010-11-221-3/+2
| | | | | | | | Sponsored by: Sandvine Incorporated Requested by: jhb Reviewed by: jhb MFC after: 1 week X-MFC: 215544
* Add <time.h> for ctime(), which we accidentally picked up throughdes2010-11-221-0/+1
| | | | | | | <sys/time.h>. Submitted by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days
* Add the ability for GDB to printout the thread name along with otherattilio2010-11-2214-3/+131
| | | | | | | | | | | | | | | | | | | | thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks
* Similar to mfiutil, drop local definition of powerof2() and use versionjhb2010-11-221-2/+0
| | | | from <sys/param.h> instead.
* Remove an apparently redundant CURVNET_SET() / CURVNET_RESTORE() pair.zec2010-11-221-2/+0
| | | | MFC after: 3 days
* Don't generate input() since it's not used.brucec2010-11-227-3/+7
|
* Do not take the process lock. The assignment to u_short inside thenetchild2010-11-221-5/+3
| | | | | | | | | | | properly aligned structure is atomic on all supported architectures, and the thread that should see side-effect of assignment is the same thread that does assignment. Use a more appropriate conditional to detect the linux ABI. Suggested by: kib X-MFC: together with r215664
* Don't generate input() since it's not used.brucec2010-11-221-0/+1
|
* Allow for MTU sizes of up to ETHER_MAX_LEN_JUMBO (i.e. 9018) bytes to bezec2010-11-222-1/+3
| | | | | | | | | | configured on ng_eiface ifnets. The default MTU remains unchanged at 1500 bytes. Mark ng_eiface ifnets as IFCAP_VLAN_MTU capable, so that the associated vlan(4) ifnets may use full-sized Ethernet MTUs (1500 bytes). MFC after: 3 days
* Add SIGINT handler to `gpart restore` action.ae2010-11-221-1/+20
| | | | MFC after: 1 week
* Always dump partition labels with `gpart backup`, but `gpart restore`ae2010-11-222-29/+32
| | | | | | | | | does restore them only when -l option is specified [1]. Make number of entries field in backup format optional. Document -l and -r options of `gpart show` action. Suggested by: pjd [1] MFC after: 1 week
* 1) Add a hint to check for duplicates with optional files. The committednetchild2010-11-221-1/+10
| | | | | | | | | text is a little bit modified to what was submitted. The code example to automate a part of this was proposed by Dmitry Morozovsky. 2) Remove trailing whitespace. Submitted by: arundel
* Remove trailing dot from the unimplemented futex messages to makenetchild2010-11-221-5/+5
| | | | | | | them consistent with the syscall and ipc messages. Submitted by: arundel MFC after: 3 days
* In tc_windup, handle the case where the previous call to tc_windup wascperciva2010-11-221-0/+10
| | | | | | | | | | | | | more than 1s earlier. Prior to this commit, the computation of th_scale * delta (which produces a 64-bit value equal to the time since the last tc_windup call in units of 2^(-64) seconds) would overflow and any complete seconds would be lost. We fix this by repeatedly converting tc_frequency units of timecounter to one seconds; this is not exactly correct, since it loses the NTP adjustment, but if we find ourselves going more than 1s at a time between clock interrupts, losing a few seconds worth of NTP adjustments is the least of our problems...
* By using the 32-bit Linux version of Sun's Java Development Kit 1.6netchild2010-11-224-23/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | on FreeBSD (amd64), invocations of "javac" (or "java") eventually end with the output of "Killed" and exit code 137. This is caused by: 1. After calling exec() in multithreaded linux program threads are not destroyed and continue running. They get killed after program being executed finishes. 2. linux_exit_group doesn't return correct exit code when called not from group leader. Which happens regularly using sun jvm. The submitters fix this in a similar way to how NetBSD handles this. I took the PRs away from dchagin, who seems to be out of touch of this since a while (no response from him). The patches committed here are from [2], with some little modifications from me to the style. PR: 141439 [1], 144194 [2] Submitted by: Stefan Schmidt <stefan.schmidt@stadtbuch.de>, gk Reviewed by: rdivacky (in april 2010) MFC after: 5 days
* In xen_get_timecount, return the full ns-precision time rather thancperciva2010-11-221-1/+1
| | | | | | | rounding to 1/HZ precision. I have no idea why the rounding was introduced in the first place, but it makes FreeBSD unhappy.
* Plug an fd leakkevlo2010-11-221-0/+1
|
* Use atomic instruction to set _has_writer, otherwise there is a racedavidxu2010-11-221-1/+2
| | | | | | causes userland to not wake up a thread sleeping in kernel. MFC after: 3 days
* Adds usbdump(8) tool that currently it only supports the very basicweongyo2010-11-223-0/+627
| | | | | | feature set. It's not connected to the build yet. Reviewed by: hps
OpenPOWER on IntegriCloud