]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agoUse bus_get_dma_tag() to inherit the 4G boundary restriction from the
jhb [Wed, 7 Mar 2012 18:53:56 +0000 (18:53 +0000)]
Use bus_get_dma_tag() to inherit the 4G boundary restriction from the
parent PCI bus and remove the home-grown version in this driver.

12 years agoUse bus_get_dma_tag() to inherit the PCI bus' 4G boundary constraint.
jhb [Wed, 7 Mar 2012 18:52:46 +0000 (18:52 +0000)]
Use bus_get_dma_tag() to inherit the PCI bus' 4G boundary constraint.

Tested by: emaste

12 years agoSimplify the PCI bus dma tag code a bit. First, don't create a tag at
jhb [Wed, 7 Mar 2012 18:50:33 +0000 (18:50 +0000)]
Simplify the PCI bus dma tag code a bit.  First, don't create a tag at
all for platforms that only have 32-bit bus addresses.  Second, remove
the 'tag_valid' flag from the softc.  Instead, if we don't create a
tag in pci_attach_common(), just cache the value of our parent's tag
so that we always have a valid tag to return.

12 years agoImprove multi-line kernel ident parsing
emaste [Wed, 7 Mar 2012 18:46:21 +0000 (18:46 +0000)]
Improve multi-line kernel ident parsing

Instead of blindly grabbing the line with 'Version string' and the
following one from the core info file, take all lines after 'Version
string' until the one one that matches the field format in the core info
file.  This provides compatibility with VendorBSD modifications that have
a different kernel ident format.

Reviewed by: jhb

12 years agoIn batch mode, exit after receiving SIGINT, instead of immediate
kib [Wed, 7 Mar 2012 18:05:45 +0000 (18:05 +0000)]
In batch mode, exit after receiving SIGINT, instead of immediate
output of the next display.

Submitted by: Andrey Zonov <andrey zonov org>
MFC after: 1 week

12 years agoMove struct if_data basic description to a more suitable place, and remove
pluknet [Wed, 7 Mar 2012 14:53:53 +0000 (14:53 +0000)]
Move struct if_data basic description to a more suitable place, and remove
a bit of .Bx 4.4 history.

MFC after: 1 week

12 years agoo Sync LOCK_PROFILING manpage with the current code: remove
maxim [Wed, 7 Mar 2012 14:50:14 +0000 (14:50 +0000)]
o Sync LOCK_PROFILING manpage with the current code: remove
unexistent sysctls, add new ones.

Reviewed by: gjb
Sponsored by: Nginx, Inc.

12 years agoReflect that if_output changed to take a struct route as its fourth
pluknet [Wed, 7 Mar 2012 11:29:43 +0000 (11:29 +0000)]
Reflect that if_output changed to take a struct route as its fourth
argument (r191148).

MFC after: 1 week

12 years agoUpdate ifa_rtrequest() description after post-4.4BSD change made in r85074.
pluknet [Wed, 7 Mar 2012 09:42:19 +0000 (09:42 +0000)]
Update ifa_rtrequest() description after post-4.4BSD change made in r85074.
3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of
``sockaddr *''. While here, un-document RTM_RESOLVE cmd argument for
ifa_rtrequest() that became a stub after separating L2 tables in r186119.

MFC after: 1 week

12 years agoThe pipe_poll() performs lockless access to the vnode to test
kib [Wed, 7 Mar 2012 07:31:50 +0000 (07:31 +0000)]
The pipe_poll() performs lockless access to the vnode to test
fifo_iseof() condition, allowing the v_fifoinfo to be reset and freed
by fifo_cleanup().

Precalculate EOF at the places were fo_wgen is changed, and cache the
state in a new pipe state flag PIPE_SAMEWGEN.

Reported and tested by: bf
Submitted by: gianni
MFC after: 1 week (a backport)

12 years agoMove the vlan buffer space into the union which also fixes an unused variable
thompsa [Wed, 7 Mar 2012 07:22:53 +0000 (07:22 +0000)]
Move the vlan buffer space into the union which also fixes an unused variable
warning with !INET & !INET6.

Spotted by: pluknet

12 years agoAdd support for the MosChip MCS9904 four serial ports
remko [Wed, 7 Mar 2012 06:42:21 +0000 (06:42 +0000)]
Add support for the MosChip MCS9904 four serial ports
controller.

PR: 165804
Submitted by: Eugene Grosbein
MFC after: 1 week

12 years agoFix typo and bump the document date which I also forgot.
thompsa [Wed, 7 Mar 2012 06:25:17 +0000 (06:25 +0000)]
Fix typo and bump the document date which I also forgot.

Spotted by: Andrey Zonov

12 years agoGet rid of duplicated versions of the KSU bits.
jmallett [Tue, 6 Mar 2012 23:08:02 +0000 (23:08 +0000)]
Get rid of duplicated versions of the KSU bits.

12 years agoAdd the ability to set which packet layers are used for the load balance hash
thompsa [Tue, 6 Mar 2012 22:58:13 +0000 (22:58 +0000)]
Add the ability to set which packet layers are used for the load balance hash
calculation.

12 years agoBreak long lines.
ray [Tue, 6 Mar 2012 22:45:54 +0000 (22:45 +0000)]
Break long lines.

Approved by: adri (mentor)

12 years agoRemove EoL whitespaces.
ray [Tue, 6 Mar 2012 22:16:10 +0000 (22:16 +0000)]
Remove EoL whitespaces.

Approved by: adri (mentor)

12 years agoFix build of libc.so after r232620. This caused a duplicate definition
dim [Tue, 6 Mar 2012 21:56:30 +0000 (21:56 +0000)]
Fix build of libc.so after r232620.  This caused a duplicate definition
of __getCurrentRuneLocale().

Pointy hat to: me

12 years agoModify HWMP to be able to allocate memory for PREQ/PREP/PERR for all scenarios.
adrian [Tue, 6 Mar 2012 21:20:16 +0000 (21:20 +0000)]
Modify HWMP to be able to allocate memory for PREQ/PREP/PERR for all scenarios.

* Added verify_mesh_*_len functions that verify the length
  according to the amendment spec and return number of destination addresses
  for allocation of appropriate struct size in memory;
* Modified hwmp_recv_action_meshpath to allocate HWMP ie instead of
  storing them on the stack and store all available field according the flags;
* Modify hwmp_add_mesh* to work with all cases of HWMP according to amendment.
* Modify hwmp_send_* to calculate correct len of bytes for the HWMP ie.
* Added new M_80211_MESH_* malloc defines.
* Added macros with magic numbers for HWMP ie sizes according to amendment.
* Added the external address to all HWMP ie structs.

Submitted by: monthadar@gmail.com

12 years agoAdd a note to clarify why we create a relocated copy of boot1 in lower
jhb [Tue, 6 Mar 2012 20:45:13 +0000 (20:45 +0000)]
Add a note to clarify why we create a relocated copy of boot1 in lower
memory.

12 years agoRemove unused file.
jmallett [Tue, 6 Mar 2012 20:23:29 +0000 (20:23 +0000)]
Remove unused file.

12 years agoAfter r232498, programs built with -ansi or -std=c89 including <ctype.h>
dim [Tue, 6 Mar 2012 20:15:23 +0000 (20:15 +0000)]
After r232498, programs built with -ansi or -std=c89 including <ctype.h>
would not compile anymore, due to plain 'inline' keywords.  Fix this by
using __inline instead.

Reported by: Jia-Shiun Li <jiashiun@gmail.com>
Discussed with: theraven

12 years agoDisable the option VFS_ALLOW_NONMPSAFE by default on all the supported
attilio [Tue, 6 Mar 2012 20:01:25 +0000 (20:01 +0000)]
Disable the option VFS_ALLOW_NONMPSAFE by default on all the supported
platforms.
This will make every attempt to mount a non-mpsafe filesystem to the
kernel forbidden, unless it is expressely compiled with
VFS_ALLOW_NONMPSAFE option.

This patch is part of the effort of killing non-MPSAFE filesystems
from the tree.

No MFC is expected for this patch.

12 years ago- Remove one more no-op #ifndef
gonzo [Tue, 6 Mar 2012 19:19:33 +0000 (19:19 +0000)]
- Remove one more no-op #ifndef

12 years agoAt the risk of reducing source compatibility with old NetBSD and Sprite:
jmallett [Tue, 6 Mar 2012 19:01:32 +0000 (19:01 +0000)]
At the risk of reducing source compatibility with old NetBSD and Sprite:
o) Get rid of some unused macros related to features we don't intend to
   provide.
o) Get rid of macro definitions for MIPS-I CPUs.  We are not likely to
   support anything that predartes MIPS-III.
o) Respell MIPS3_* macros as MIPS_*, which is how most of them were being
   used already.
o) Eliminate a duplicate and mostly-unused set of exception vector macros.

There's still considerable duplication and lots more obsolete in our headers,
but this reduces one of the larger files to a size where one could reckon
about the correctness of its contents with a mere few hours of contemplation.

There is, of course, a question of whether we need definitions for fields,
registers and configurations that we are unlikely to ever use or implement,
even if they're not obsolete since 1991.  FreeBSD is not a processor
reference manual, and things that aren't used may be wrong, or may be
duplicated because nobody could possibly actually know whether they're
already defined.

12 years agoProvide wbwd(4), a driver for the watchdog timer found on various
bz [Tue, 6 Mar 2012 18:44:52 +0000 (18:44 +0000)]
Provide wbwd(4), a driver for the watchdog timer found on various
Winbond Super I/O chips.

With minor efforts it should be possible the extend the driver to support
further chips/revisions available from Winbond.  In the simplest case
only new IDs need to be added, while different chipsets might require
their own function to enter extended function mode, etc.

Sponsored by: Sandvine Incorporated ULC (in 2011)
Reviewed by: emaste, brueffer
MFC after: 2 weeks

12 years agoFix building with WITHOUT_INET_SUPPORT set.
bz [Tue, 6 Mar 2012 18:39:07 +0000 (18:39 +0000)]
Fix building with WITHOUT_INET_SUPPORT set.

Reviewed by: jamie (actually provided the real fix)
MFC after: 3 days

12 years agoProperly mask off bits that are not supported in the IAP counters.
gnn [Tue, 6 Mar 2012 17:17:03 +0000 (17:17 +0000)]
Properly mask off bits that are not supported in the IAP counters.
This fixes a bug where users would see massively large counts, near
to 2**64 -1, due to the bits not being cleared.

MFC after: 3 weeks

12 years agoUse = rather than == for expressions to test(1) builtin(1) in sh(1) to
bz [Tue, 6 Mar 2012 14:19:36 +0000 (14:19 +0000)]
Use = rather than == for expressions to test(1) builtin(1) in sh(1) to
comply with standards.

On modern branches there is an undocumented alias (see r219084) but on
stable/7 this is still an error.

Sponsored by: Cisco Systems, Inc.
MFC after: 3 days

12 years agoAdd LUN resizing to CTL. Also make it possible to explicitly set
trasz [Tue, 6 Mar 2012 13:43:57 +0000 (13:43 +0000)]
Add LUN resizing to CTL.  Also make it possible to explicitly set
size when creating file-backed or device-backed LUN.

Reviewed by: ken (earlier version)
Sponsored by: The FreeBSD Foundation

12 years agoRemove some duplicated copyright notices.
theraven [Tue, 6 Mar 2012 12:53:44 +0000 (12:53 +0000)]
Remove some duplicated copyright notices.

Approved by: dim (mentor)

12 years agoRemove if_watchdog remnants after if_timer/if_watchdog removal in r199975.
pluknet [Tue, 6 Mar 2012 12:20:37 +0000 (12:20 +0000)]
Remove if_watchdog remnants after if_timer/if_watchdog removal in r199975.
This part was missed in r199992.

MFC after: 1 week

12 years agoMake racct and rctl correctly handle jail renaming. Previously
trasz [Tue, 6 Mar 2012 11:05:50 +0000 (11:05 +0000)]
Make racct and rctl correctly handle jail renaming.  Previously
they would continue using old name, the one jail was created with.

PR: bin/165207

12 years agoFix a typo: use lower case in "A Shorthand".
pluknet [Tue, 6 Mar 2012 09:57:50 +0000 (09:57 +0000)]
Fix a typo: use lower case in "A Shorthand".

Noted by: maxim

12 years agoKill EoL whitespaces.
pluknet [Tue, 6 Mar 2012 09:40:34 +0000 (09:40 +0000)]
Kill EoL whitespaces.

12 years agoCosmetic nit:
pluknet [Tue, 6 Mar 2012 09:34:30 +0000 (09:34 +0000)]
Cosmetic nit:
- rename isspace1() macro to the more appropriate rtld_isspace().

Discussed with: kib

12 years agoThe missing part of r232588 that documents ifaddr_byindex() itself.
pluknet [Tue, 6 Mar 2012 09:04:53 +0000 (09:04 +0000)]
The missing part of r232588 that documents ifaddr_byindex() itself.

MFC after: 1 week

12 years ago- ifnet_addrs has gone and replaced by ifaddr_byindex(), as per r83130
pluknet [Tue, 6 Mar 2012 08:59:42 +0000 (08:59 +0000)]
- ifnet_addrs has gone and replaced by ifaddr_byindex(), as per r83130
- access to the AF_LINK address through if_addrhead is deprecated (r128315)

MFC after: 1 week

12 years agoGarbage collect some unused symbols.
jmallett [Tue, 6 Mar 2012 08:40:21 +0000 (08:40 +0000)]
Garbage collect some unused symbols.

12 years agoMake the native sigreturn just wrap set_mcontext, much as freebsd32_sigreturn
jmallett [Tue, 6 Mar 2012 08:10:48 +0000 (08:10 +0000)]
Make the native sigreturn just wrap set_mcontext, much as freebsd32_sigreturn
does.

12 years agoStore TLS base in the sigframe just as is done in freebsd32_sendsig. Because
jmallett [Tue, 6 Mar 2012 08:02:10 +0000 (08:02 +0000)]
Store TLS base in the sigframe just as is done in freebsd32_sendsig.  Because
the native sigreturn doesn't use set_mcontext like the COMPAT_FREEBSD32 version
does, this wouldn't actually result in overwriting the TLS base.  Probably it
makes sense to restructure the native sigreturn to use set_mcontext for
consistency, and to allow sigreturn to change the TLS base.

12 years agoFix two and a half oversights in COMPAT_FREEBSD32 related to contexts and
jmallett [Tue, 6 Mar 2012 07:50:45 +0000 (07:50 +0000)]
Fix two and a half oversights in COMPAT_FREEBSD32 related to contexts and
TLS:
o) The mc_tls field used to store the TLS base when doing context gets and
   restores was left a pointer and not converted to a 32-bit integer.  This
   had the bug of not correctly capturing the TLS value desired by the user,
   and the extra nastiness of making the structure the wrong size.
o) The mc_tls field was not being saved by sendsig.  As a result, the TLS base
   would always be set to NULL when restoring from a signal handler.

Thanks to gonzo for helping track down a bunch of other TLS bugs that came out
of tracking these down.

12 years agoWhen emulating rdhwr for TLS, use the 32-bit offset under COMPAT_FREEBSD32.
jmallett [Tue, 6 Mar 2012 07:47:28 +0000 (07:47 +0000)]
When emulating rdhwr for TLS, use the 32-bit offset under COMPAT_FREEBSD32.

12 years ago- Switch ARM and MIPS to TLS Variant I
gonzo [Tue, 6 Mar 2012 03:42:54 +0000 (03:42 +0000)]
- Switch ARM and MIPS to TLS Variant I
- Fix TLS allocation  for Variant I: both rtld and libc allocators
    assume that tls_static_space includes space for TLS structure.
    So increment calculated static size by the size of it.

12 years agoImplement _set_tp
gonzo [Tue, 6 Mar 2012 03:30:09 +0000 (03:30 +0000)]
Implement _set_tp

12 years ago- Remove NOSHARED parts since it seems to be no-op
gonzo [Tue, 6 Mar 2012 03:29:46 +0000 (03:29 +0000)]
- Remove NOSHARED parts since it seems to be no-op
- Call _init_tls for statically linked binaries

12 years ago- Switch to saving non-offseted pointer to TLS block in order too keep things simple
gonzo [Tue, 6 Mar 2012 03:27:58 +0000 (03:27 +0000)]
- Switch to saving non-offseted pointer to TLS block in order too keep things simple

12 years ago- Switch to saving non-offseted pointer to TLS block in order too keep things simple
gonzo [Tue, 6 Mar 2012 03:27:08 +0000 (03:27 +0000)]
- Switch to saving non-offseted pointer to TLS block in order too keep things simple

12 years agoPrepare for large TLS redo. Save pointer to the beginning of TLS area,
gonzo [Tue, 6 Mar 2012 03:25:50 +0000 (03:25 +0000)]
Prepare for large TLS redo. Save pointer to the beginning of TLS area,
    and offset it only if requested by RDHWR handler. Otherwise things
    get overly complicated - we need to track whether address passsed in
    request for setting td_md.md_tls is already offseted or not.

12 years agoIn the trap messages that aid the primitive debugging environment of MIPS,
jmallett [Tue, 6 Mar 2012 02:23:15 +0000 (02:23 +0000)]
In the trap messages that aid the primitive debugging environment of MIPS,
include the tid as well, so it's easier to tell which thread of a process
with multiple is responsible for a crash.

12 years agoLink EV_SET(3) to kqueue(2).
pjd [Mon, 5 Mar 2012 20:59:34 +0000 (20:59 +0000)]
Link EV_SET(3) to kqueue(2).

MFC after: 3 days

12 years agoThe libmap.conf initialization is performed before TLS is functional.
kib [Mon, 5 Mar 2012 20:43:06 +0000 (20:43 +0000)]
The libmap.conf initialization is performed before TLS is functional.
Since after r232498 the ctype macros require working access to
thread-local variables, rtld crashes when libmap.conf is present.

Use hand-made isspace1() macro which is enough to detect spaces in
libmap.conf.

Reported by: alc, lme, many on current@
Tested by: lme
Reviewed by: dim, kan
MFC after: 1 week

12 years agoActually bump date, sigh.
pluknet [Mon, 5 Mar 2012 20:04:28 +0000 (20:04 +0000)]
Actually bump date, sigh.

12 years agoFix boot2 to handle boot config files that only contain a custom path to
jhb [Mon, 5 Mar 2012 19:53:17 +0000 (19:53 +0000)]
Fix boot2 to handle boot config files that only contain a custom path to
a loader or kernel.  Specifically, kname cannot be pointed at cmd[] since
it's value is change to be an empty string after the initial call to
parse, and cmd[]'s value can be changed (thus losing a prior setting for
kname) due to user input at the boot prompt.  While here, ensure that that
initial boot config file text is nul-terminated, that ops is initialized
to zero, and that kname is always initialized to a valid string.

Tested by: Domagoj Smolcic  rank1seeker of gmail
MFC after: 1 week

12 years agoFix three instances of a missing word.
jhb [Mon, 5 Mar 2012 19:38:59 +0000 (19:38 +0000)]
Fix three instances of a missing word.

Submitted by: bjk

12 years agoFix few style nits.
jkim [Mon, 5 Mar 2012 18:47:42 +0000 (18:47 +0000)]
Fix few style nits.

12 years agoFix typo. Bump .Dd for the previous change.
pluknet [Mon, 5 Mar 2012 17:38:44 +0000 (17:38 +0000)]
Fix typo. Bump .Dd for the previous change.

12 years agoMake growfs(8) mostly style compliant. No functional changes,
trasz [Mon, 5 Mar 2012 16:37:51 +0000 (16:37 +0000)]
Make growfs(8) mostly style compliant.  No functional changes,
verified with MD5.

12 years agoPrint out process name and thread id in the debugging message.
ivoras [Mon, 5 Mar 2012 14:19:43 +0000 (14:19 +0000)]
Print out process name and thread id in the debugging message.
This is useful because the message can end up in system logs in
non-debugging operation.

Reviewed by: attilio (earlier version)

12 years agoApply inlined vn_vget_ino() algorithm for ".." lookup in pseudofs.
kib [Mon, 5 Mar 2012 11:38:02 +0000 (11:38 +0000)]
Apply inlined vn_vget_ino() algorithm for ".." lookup in pseudofs.

Reported and tested by: pho
MFC after: 2 weeks

12 years agoAdd DWC OTG module to ARM builds.
hselasky [Mon, 5 Mar 2012 06:46:35 +0000 (06:46 +0000)]
Add DWC OTG module to ARM builds.

MFC after: 1 week

12 years agoFix for DWC OTG interrupt register programming.
hselasky [Mon, 5 Mar 2012 06:41:44 +0000 (06:41 +0000)]
Fix for DWC OTG interrupt register programming.
Fix a compiler warning.
Add missing header file.

MFC after: 1 week

12 years agoFix ng_ipfw(4) cookie number in example.
glebius [Mon, 5 Mar 2012 06:12:15 +0000 (06:12 +0000)]
Fix ng_ipfw(4) cookie number in example.

Pointed out by: "Jacco van Buuren" <jaccovanbuuren gmail.com>

12 years agoMake the chroot shell more functional by providing devfs.
nwhitehorn [Mon, 5 Mar 2012 02:40:18 +0000 (02:40 +0000)]
Make the chroot shell more functional by providing devfs.

Reported by: Robert Simmons
MFC after: 4 days

12 years agoOops - used the wrong field.
adrian [Mon, 5 Mar 2012 02:36:15 +0000 (02:36 +0000)]
Oops - used the wrong field.

Noticed by: nwhitehorn

12 years agoAdd the thread id to the net80211 alq records.
adrian [Sun, 4 Mar 2012 23:13:52 +0000 (23:13 +0000)]
Add the thread id to the net80211 alq records.

This will (hopefully) aid in debugging concurrency related issues.

12 years agoFix style(9) issues.
adrian [Sun, 4 Mar 2012 23:04:16 +0000 (23:04 +0000)]
Fix style(9) issues.

12 years agoFix a thinko in r232322, where gcc (and its tools) are not built during
dim [Sun, 4 Mar 2012 21:36:18 +0000 (21:36 +0000)]
Fix a thinko in r232322, where gcc (and its tools) are not built during
the cross-tools stage, if CC=clang and WITH_CLANG_IS_CC is not set.

This causes no 'cc' to be installed in the temporary cross-tools tree,
making lint fall over later in the build, because it ignores ${CC} and
attempts to run 'cc' anyway.

To fix this, only skip building gcc during cross-tools, if WITHOUT_GCC
is set, or if WITH_CLANG_IS_CC is set.

Pointy hat to: dim
MFC after: 2 weeks

12 years agoExclude USB drivers (except umass and ukbd) from main kernel image on i386
rmh [Sun, 4 Mar 2012 21:31:13 +0000 (21:31 +0000)]
Exclude USB drivers (except umass and ukbd) from main kernel image on i386
and amd64.

Reviewed by: hselasky, arch, usb
Approved by: kib (mentor)

12 years agoCopy amd64 ptrace.h to x86 and merge with i386 ptrace.h. Replace
tijl [Sun, 4 Mar 2012 20:24:28 +0000 (20:24 +0000)]
Copy amd64 ptrace.h to x86 and merge with i386 ptrace.h. Replace
amd64/i386/pc98 ptrace.h with stubs.

For amd64 PT_GETXSTATE and PT_SETXSTATE have been redefined to match the
i386 values. The old values are still supported but should no longer be
used.

Reviewed by: kib

12 years agoDo not use INT64_C and UINT64_C to define 64 bit integer limits. They
tijl [Sun, 4 Mar 2012 20:02:20 +0000 (20:02 +0000)]
Do not use INT64_C and UINT64_C to define 64 bit integer limits.  They
aren't defined for C++ code unless __STDC_CONSTANT_MACROS is defined.

Reported by: jhb

12 years agoRespect phy-handle property in Ethernet nodes of the device tree.
raj [Sun, 4 Mar 2012 19:22:52 +0000 (19:22 +0000)]
Respect phy-handle property in Ethernet nodes of the device tree.

This lets specify whereabouts of the parent PHY for a given MAC node
(and get rid of ugly kludges in mge(4) and tsec(4)).

Obtained from: Semihalf
MFC after: 1 week

12 years agoChange SYSINIT priorities so that ip_mroute_modevent() is executed
zec [Sun, 4 Mar 2012 18:59:38 +0000 (18:59 +0000)]
Change SYSINIT priorities so that ip_mroute_modevent() is executed
before vnet_mroute_init(), since vnet_mroute_init() depends on mfchashsize
tunable to be set, and that is done in in ip_mroute_modevent().
Apparently I broke that ordering with r208744 almost 2 years ago...

PR: kern/162201
Submitted by: Stevan Markovic (mcafee.com)
MFC after: 3 days

12 years agoDocument pci_find_extcap() and pci_find_htcap().
jhb [Sun, 4 Mar 2012 18:55:33 +0000 (18:55 +0000)]
Document pci_find_extcap() and pci_find_htcap().

12 years agoRather than printing the output from route add for all FIBs just print them
bz [Sun, 4 Mar 2012 18:53:35 +0000 (18:53 +0000)]
Rather than printing the output from route add for all FIBs just print them
for the default FIB followed by a statement with a list of FIB numbers for
all the other FIBs we install the routes for.

Request by: kib (to make it less noisy)
Tested by: kib
MFC after: 3 days

12 years agoIn nd6_options() ignore the RFC 6106 options completely rather than printing
bz [Sun, 4 Mar 2012 18:51:45 +0000 (18:51 +0000)]
In nd6_options() ignore the RFC 6106 options completely rather than printing
them if nd6_debug is enabled as unknown.  Leave a comment about the RFC4191
option as I am undecided so far.

Discussed with: hrs
MFC after: 3 days

12 years agoCorrect typo in the RFC number for the constants based on IANA assignments
bz [Sun, 4 Mar 2012 18:47:20 +0000 (18:47 +0000)]
Correct typo in the RFC number for the constants based on IANA assignments
for IPv6 Neighbor Discovery Option types for "IPv6 Router Advertisement
Options for DNS Configuration".  It is RFC 6106.

MFC after: 3 days

12 years agoRemove unused #defines. All this is now retrieved from the device tree.
raj [Sun, 4 Mar 2012 18:13:45 +0000 (18:13 +0000)]
Remove unused #defines. All this is now retrieved from the device tree.

MFC after: 1 week

12 years agoPermit the use of raidz3 in pc-sysinstall
eadler [Sun, 4 Mar 2012 17:33:22 +0000 (17:33 +0000)]
Permit the use of raidz3 in pc-sysinstall

PR: conf/164709
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Reviewed by: brd, brooks
Approved by: cperciva
MFC after: 3 days

12 years agoFix race condition in KfRaiseIrql().
brucec [Sun, 4 Mar 2012 17:08:43 +0000 (17:08 +0000)]
Fix race condition in KfRaiseIrql().

After getting the current irql, if the kthread gets preempted and
subsequently runs on a different CPU, the saved irql could be wrong.

Also, correct the panic string.

PR: kern/165630
Submitted by: Vladislav Movchan <vladislav.movchan at gmail.com>

12 years agoBump date as modified the man page
eadler [Sun, 4 Mar 2012 16:59:45 +0000 (16:59 +0000)]
Bump date as modified the man page

Submitted by: gjb

12 years agoExplicitly list dependency
eadler [Sun, 4 Mar 2012 16:46:27 +0000 (16:46 +0000)]
Explicitly list dependency

PR: misc/160463
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Helped by: kan
Approved by: cperciva
MFC after: 3 days

12 years agoRemove outdated comment of seven years
eadler [Sun, 4 Mar 2012 16:44:04 +0000 (16:44 +0000)]
Remove outdated comment of seven years

PR: docs/116116
Approved by: cperciva
MFC after: 1 week

12 years agoRemove reference to gcc's non-standard -fwritable-strings, which
eadler [Sun, 4 Mar 2012 16:41:07 +0000 (16:41 +0000)]
Remove reference to gcc's non-standard -fwritable-strings, which
doesn't exist in recent releases (and is bad advice anyway)

PR: docs/163119
Submitted by: Yuri Pankov <yuri.pankov@gmail.com>
Approved by: cperciva
MFC after: 1 week

12 years agoPOSIX mandates that swab do nothing when len < 0
eadler [Sun, 4 Mar 2012 16:39:08 +0000 (16:39 +0000)]
POSIX mandates that swab do nothing when len < 0

PR: kern/140690
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
Approved by: cperciva
MFC after: 2 weeks

12 years agoFix a variety of grammar issues and style nits.
eadler [Sun, 4 Mar 2012 16:37:44 +0000 (16:37 +0000)]
Fix a variety of grammar issues and style nits.

PR: docs/165668
Submitted by: Robert Simmons <rsimmons0@gmail.com>
Reviewed by: kaduk@mit.edu
Approved by: cperciva
MFC after: 1 week

12 years agoehci tunables are only available when kernel is compiled with USB_DEBUG
eadler [Sun, 4 Mar 2012 16:26:49 +0000 (16:26 +0000)]
ehci tunables are only available when kernel is compiled with USB_DEBUG

PR: docs/163646
Reported by: Momchil Ivanov <momchil@xaxo.eu>
Submitted by: Benjamin Kaduk <kaduk@mit.edu>
Approved by: cperciva
MFC after: 1 week

12 years agoReapply 227753 (xlocale cleanup), plus some fixes so that it passes build
theraven [Sun, 4 Mar 2012 15:31:13 +0000 (15:31 +0000)]
Reapply 227753 (xlocale cleanup), plus some fixes so that it passes build
universe with gcc.

Approved by: dim (mentor)

12 years agoAdd __aeabi_read_tp to the symbol list.
cognet [Sun, 4 Mar 2012 15:25:11 +0000 (15:25 +0000)]
Add  __aeabi_read_tp to the symbol list.

12 years agoPR: docs/158813
eadler [Sun, 4 Mar 2012 15:22:03 +0000 (15:22 +0000)]
PR: docs/158813
Submitted by: Ben Kaduk <kaduk@mit.edu>
Approved by: bcr
MFC after: 1 week

12 years agopipe_read(): change the type of size to int, and remove signed clamp.
kib [Sun, 4 Mar 2012 15:09:01 +0000 (15:09 +0000)]
pipe_read(): change the type of size to int, and remove signed clamp.
pipe_write(): change the type of desiredsize back to int, its value fits.

Requested by: bde
MFC after:    3 weeks

12 years agoInstead of incomplete handling of read(2)/write(2) return values that
kib [Sun, 4 Mar 2012 14:55:37 +0000 (14:55 +0000)]
Instead of incomplete handling of read(2)/write(2) return values that
does not fit into registers, declare that we do not support this case
using CTASSERT(), and remove endianess-unsafe code to split return value
into td_retval.

While there, change the style of the sysctl debug.iosize_max_clamp
definition.

Requested by: bde
MFC after: 3 weeks

12 years agoRemove unneeded cast to u_int. The values as small enough to fit into
kib [Sun, 4 Mar 2012 14:51:42 +0000 (14:51 +0000)]
Remove unneeded cast to u_int. The values as small enough to fit into
int, beside the use of MIN macro which performs type promotions.

Submitted by: bde
MFC after: 3 weeks

12 years agoCopy amd64 trap.h to x86 and replace amd64/i386/pc98 trap.h with stubs.
tijl [Sun, 4 Mar 2012 14:12:57 +0000 (14:12 +0000)]
Copy amd64 trap.h to x86 and replace amd64/i386/pc98 trap.h with stubs.

12 years agoCopy amd64 float.h to x86 and merge with i386 float.h. Replace
tijl [Sun, 4 Mar 2012 14:00:32 +0000 (14:00 +0000)]
Copy amd64 float.h to x86 and merge with i386 float.h. Replace
amd64/i386/pc98 float.h with stubs.

12 years agoRestore proper dot symbol creation for assembly files in the kernel build case.
andreast [Sun, 4 Mar 2012 11:55:28 +0000 (11:55 +0000)]
Restore proper dot symbol creation for assembly files in the kernel build case.
Without this patch we were not able to see the assembly function.
Only the function descriptor was visible.

- Distinguish between user-land and kernel when creating the ENTRY() point of
  assembly source.
- Make the ENTRY() macro more readable, replace the .align directive with the
  gas platform independant .p2align directive.
- Create an END()macro for later use to provide traceback tables on powerpc64.

12 years agoProperly restore curvnet context when returning early from
zec [Sun, 4 Mar 2012 11:11:03 +0000 (11:11 +0000)]
Properly restore curvnet context when returning early from
ether_input_internal().

This change only affects options VIMAGE kernel builds.

PR: kern/165643
Submitted by: Vijay Singh
MFC after: 3 days

12 years agoRemove unnecessary casts
kevlo [Sun, 4 Mar 2012 09:48:58 +0000 (09:48 +0000)]
Remove unnecessary casts

12 years agoFix build w/o 'options IEEE80211_SUPPORT_MESH'.
glebius [Sun, 4 Mar 2012 09:45:43 +0000 (09:45 +0000)]
Fix build w/o 'options IEEE80211_SUPPORT_MESH'.

12 years agoClean up style(9) nits
kevlo [Sun, 4 Mar 2012 09:38:20 +0000 (09:38 +0000)]
Clean up style(9) nits