]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoMerge from pprojects/mips to head by hand.
imp [Sat, 9 Jan 2010 18:08:31 +0000 (18:08 +0000)]
Merge from pprojects/mips to head by hand.

Copy over the SWARM config file.

14 years agoExtra parantheses to keep certain compilers happy.
np [Sat, 9 Jan 2010 18:07:10 +0000 (18:07 +0000)]
Extra parantheses to keep certain compilers happy.

Submitted by: trasz@

14 years agoMerge from projects/mips to head by hand:
imp [Sat, 9 Jan 2010 18:02:31 +0000 (18:02 +0000)]
Merge from projects/mips to head by hand:

Merge support files for the Atheros AR71xx (and soon AR9xxx)
processors, except files from sys/conf and sys/mips/conf.  This work
was done primarily by Olecksandr Tymoshenko and works on the
RouterStation and RouterStation PRO.  Other AR71xx-based boards have
been reported as working as well (RouterBoard, for example).

14 years agoMerge from projects/mips to head by hand:
imp [Sat, 9 Jan 2010 17:56:25 +0000 (17:56 +0000)]
Merge from projects/mips to head by hand:

Copy the files for the sibyte support (except files in sys/conf and
sys/mips/conf).  This targets the Broadcom SWARM board (bcm91250) and
the SB-1 core in the BCM1250 SoC.  This work was done by Neel Natu.

14 years agoMerge r201902 and r195669 from projects/mips into head by hand:
imp [Sat, 9 Jan 2010 17:21:36 +0000 (17:21 +0000)]
Merge r201902 and r195669 from projects/mips into head by hand:

r201902 | imp | 2010-01-09 10:16:19 -0700 (Sat, 09 Jan 2010) | 2 lines
Fix comment, which was missed in an earlier commit...

r195669 | gonzo | 2009-07-13 17:03:44 -0600 (Mon, 13 Jul 2009) | 3 lines
- Remove -mno-dsp from CFLAGS. MIPS DSP ASE is off by default
   now (as it should be)

14 years agoFix comment, which was missed in an earlier commit...
imp [Sat, 9 Jan 2010 17:16:19 +0000 (17:16 +0000)]
Fix comment, which was missed in an earlier commit...

14 years agoRemove clause 3 and 4 from TNF licenses (this was the only 4-clause TNF
marius [Sat, 9 Jan 2010 17:09:57 +0000 (17:09 +0000)]
Remove clause 3 and 4 from TNF licenses (this was the only 4-clause TNF
license FreeBSD had in sys/boot).

Obtained from: NetBSD

14 years agoSome style(9) fixes in order to fabricate a commit to denote that
marius [Sat, 9 Jan 2010 15:59:15 +0000 (15:59 +0000)]
Some style(9) fixes in order to fabricate a commit to denote that
the commit message for r201896 actually should have read:

As nfsm_srvmtofh_xx() assumes the 4-byte alignment required by XDR
ensure the mbuf data is aligned accordingly by calling nfs_realign()
in fha_extract_info(). This fix is orthogonal to the problem solved
by r199274/r199284.

PR: 142102 (second part)
MFC after: 1 week

14 years agoAdd comments trying to explain what bad things happen here, i.e.
bz [Sat, 9 Jan 2010 15:43:47 +0000 (15:43 +0000)]
Add comments trying to explain what bad things happen here, i.e.
how hashed MD5/SHA are implemented, abusing Final() for padding and
sw_octx to transport the key from the beginning to the end.

Enlightened about what was going on here by: cperciva
Reviewed by: cperciva
MFC After: 3 days
X-MFC with: r187826
PR: kern/126468

14 years agoCorrect spelling.
bz [Sat, 9 Jan 2010 15:37:24 +0000 (15:37 +0000)]
Correct spelling.

Submitted by: (pluknet gmail.com)
MFC after: 4 days
X-MFC with: r201806

14 years agoExclude options COMPAT_FREEBSD4 now that the MD freebsd4_sigreturn()
marius [Sat, 9 Jan 2010 15:31:27 +0000 (15:31 +0000)]
Exclude options COMPAT_FREEBSD4 now that the MD freebsd4_sigreturn()
is gone since r201396 and which is also in line with the fact that
FreeBSD 4 didn't supported sparc64.

PR: 142102 (second part)
MFC after: 1 week

14 years agoReduce recursions on curvnet and thus spamming the console with warning
zec [Sat, 9 Jan 2010 14:56:38 +0000 (14:56 +0000)]
Reduce recursions on curvnet and thus spamming the console with warning
messages for kernels built with options VIMAGE and VNET_DEBUG enabled.

Reviewed by: bz
MFC after: 3 days

14 years agoFix formatting.
delphij [Sat, 9 Jan 2010 12:34:15 +0000 (12:34 +0000)]
Fix formatting.

MFC after: 2 weeks

14 years agoAdd a set of manual pages for pthread[_attr]_[sg]etaffinity(3).
delphij [Sat, 9 Jan 2010 12:31:11 +0000 (12:31 +0000)]
Add a set of manual pages for pthread[_attr]_[sg]etaffinity(3).

Reviewed by: davidxu
MFC after: 2 weeks

14 years agoSet md_ldt (pointer to the LDT) after md_ldt_sd (system segment
kib [Sat, 9 Jan 2010 11:28:01 +0000 (11:28 +0000)]
Set md_ldt (pointer to the LDT) after md_ldt_sd (system segment
descriptor for the LDT) is populated. md_ldt is used by context-switch
code as indicator that LDT segment register shall be loaded with
GUSERLDT segment instead of 0, so context switch at the wrong time may
cause attempt to load non-populated descriptor.

Use store with the barrier to prevent other CPUs from seeing updated
md_ldt but not seeing updated md_ldt_sd. Multithreaded process may
context-switch to another thread of the process on another CPU and read
md_ldt.

MFC after: 1 week

14 years agoVarious language fixes. Also fixed the URL to totd, obtained from NetBSD.
brueffer [Sat, 9 Jan 2010 10:24:09 +0000 (10:24 +0000)]
Various language fixes.  Also fixed the URL to totd, obtained from NetBSD.

PR: 38061
Submitted by: Chris Pepper <pepper@rockefeller.edu>
MFC after: 1 week

14 years agobridge(4) acts like a switch, not like a hub.
brueffer [Sat, 9 Jan 2010 09:30:09 +0000 (09:30 +0000)]
bridge(4) acts like a switch, not like a hub.

PR: 141350
Submitted by: brucec
Reviewed by: thompsa
MFC after: 1 week

14 years agoUse enum to define key types.
davidxu [Sat, 9 Jan 2010 06:30:40 +0000 (06:30 +0000)]
Use enum to define key types.

Suggested by: jmallett

14 years agoput semaphore waiter in long term list.
davidxu [Sat, 9 Jan 2010 06:12:44 +0000 (06:12 +0000)]
put semaphore waiter in long term list.

14 years agoAdd key type TYPE_SEM.
davidxu [Sat, 9 Jan 2010 06:05:31 +0000 (06:05 +0000)]
Add key type TYPE_SEM.

14 years agoUpdate manual for sem_init and sem_open, restrictions of shared semaphore
davidxu [Sat, 9 Jan 2010 05:40:46 +0000 (05:40 +0000)]
Update manual for sem_init and sem_open, restrictions of shared semaphore
and 14 characters in name length no longer exist.

Reviewed by: deischen@

14 years agoMerge r195128 from project/mips to head.
imp [Sat, 9 Jan 2010 04:59:57 +0000 (04:59 +0000)]
Merge r195128 from project/mips to head.

r195128 | gonzo | 2009-06-27 17:27:41 -0600 (Sat, 27 Jun 2009) | 4 lines
- Add support for handling TLS area address in kernel space.
    From the userland point of view get/set operations are
    performed using sysarch(2) call.

14 years agoRevert iwn channel-argument handling of set_txpower() to r201822
keramida [Sat, 9 Jan 2010 04:00:22 +0000 (04:00 +0000)]
Revert iwn channel-argument handling of set_txpower() to r201822

Pass the channel argument as a real argument and not through
RXON.  The RXON version seems to have problem with both the older
228.57.2.23 firmware and the latest 228.61.2.24 version resulting
in device initialization errors like:

  wpa_supplicant[2928]: Failed to initiate AP scan.
  kernel: firmware error log:
  kernel: error type      = "SYSASSERT" (0x00000005)
  kernel: program counter = 0x0000147C
  kernel: source line     = 0x0000058B
  kernel: error data      = 0x0000058B00000000
  kernel: branch link     = 0x0000145A00001492
  kernel: interrupt link  = 0x000006DE00000000
  kernel: time            = 7310
  ...
  kernel: iwn0: iwn_config: could not set TX power
  kernel: iwn0: iwn_init_locked: could not configure device, error 35

By passing the current channel to hal->set_txpower() the firmware
error is fixed, at least for the 4965 chipset of my Thinkpad and
the ones tested by Bernhard.

Submitted by: Bernhard Schmidt <bschmidt@techwires.net>
Approved by: rpaulo

14 years agoRename mips_pcpu_init to mips_pcpu0_init since it applies only to the
imp [Sat, 9 Jan 2010 03:08:22 +0000 (03:08 +0000)]
Rename mips_pcpu_init to mips_pcpu0_init since it applies only to the
BSP.  Provide a missing prototype.

14 years agoCompute the target of the jump in the 'J' and 'JAL' instructions
neel [Sat, 9 Jan 2010 02:17:14 +0000 (02:17 +0000)]
Compute the target of the jump in the 'J' and 'JAL' instructions
correctly. The 256MB segment is formed by taking the top 4 bits
of the address of the instruction in the "branch delay" slot
as opposed to the 'J' or 'JAL' instruction itself.

Approved by: imp (mentor)

14 years agoIntroduce the new kernel thread called "deadlock resolver".
attilio [Sat, 9 Jan 2010 01:46:38 +0000 (01:46 +0000)]
Introduce the new kernel thread called "deadlock resolver".
While the name is pretentious, a good explanation of its targets is
reported in this 17 months old presentation e-mail:
http://lists.freebsd.org/pipermail/freebsd-arch/2008-August/008452.html

In order to implement it, the sq_type in sleepqueues is mandatory and not
only compiled along with INVARIANTS option. Additively, a new sleepqueue
function, sleepq_type() is added, returning the type of the sleepqueue
linked to a wchan.
Three new sysctls are added in order to configure the thread:
debug.deadlkres.slptime_threshold
debug.deadlkres.blktime_threshold
debug.deadlkres.sleepfreq

rappresenting the thresholds for sleep and block time that will lead to
a deadlock matching (when exceeded), while the sleepfreq rappresents the
number of seconds between 2 consecutive thread runnings.
In order to enable the deadlock resolver thread recompile your kernel
with the option DEADLKRES.

Reviewed by: jeff
Tested by: pho, Giovanni Trematerra
Sponsored by: Nokia Incorporated, Sandvine Incorporated
MFC after: 2 weeks

14 years agoVarious language fixes.
brueffer [Sat, 9 Jan 2010 00:24:54 +0000 (00:24 +0000)]
Various language fixes.

PR: 38061
Submitted by: Chris Pepper <pepper@rockefeller.edu>
MFC after: 1 week

14 years agoMerge r195129 from project/mips to head by hand:
imp [Sat, 9 Jan 2010 00:07:47 +0000 (00:07 +0000)]
Merge r195129 from project/mips to head by hand:

r195129 | gonzo | 2009-06-27 17:28:56 -0600 (Sat, 27 Jun 2009) | 2 lines
- Use sysarch(2) in MIPS version of _tcb_set/_tcb_get

14 years agoMerge r195030 from project/mips to head by hand
imp [Sat, 9 Jan 2010 00:01:35 +0000 (00:01 +0000)]
Merge r195030 from project/mips to head by hand

r195030 | gonzo | 2009-06-25 19:27:31 -0600 (Thu, 25 Jun 2009) | 4 lines
- Switch to libc softfloat from libgcc implementation. The problem
    with latter is that it is not complete, fpsetXXX/fpgetXXX
    functions are missing.

14 years agoMerge r197800 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:59:04 +0000 (23:59 +0000)]
Merge r197800 from projects/mips to head by hand:

r197800 | gonzo | 2009-10-06 00:35:52 -0600 (Tue, 06 Oct 2009) | 3 lines
- curbrk variable for sbrk and brk should be the same
- Add correct variable names to Symbol.map

14 years agoMerge r195025 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:50:39 +0000 (23:50 +0000)]
Merge r195025 from projects/mips to head by hand:

r195025 | gonzo | 2009-06-25 19:01:50 -0600 (Thu, 25 Jun 2009) | 4 lines
- Move fpgetXXX.c/fpsetXXX.c sources to hardfloat subdir/
    to prevenmt them from being mixed up with lib/libc/softfloat
    files with the same names

14 years agoMerge r194519 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:37:30 +0000 (23:37 +0000)]
Merge r194519 from projects/mips to head by hand:

r194519 | gonzo | 2009-06-19 17:28:26 -0600 (Fri, 19 Jun 2009) | 3 lines
- set -mabicalls and -msoft-float as a default in order to
    simplify building ports

14 years agoMake options KGSSAPI build and add it to NOTES.
brooks [Fri, 8 Jan 2010 23:26:10 +0000 (23:26 +0000)]
Make options KGSSAPI build and add it to NOTES.

rpcsec_gss_prot.c:
  Use kernel printf and headers.

vc_rpcsec_gss.c:
  Use a local RPCAUTH_UNIXGIDS definition for 16 instead of using NGROUPS.

14 years agoMerge r195030 from project/mips into head by hand:
imp [Fri, 8 Jan 2010 23:11:23 +0000 (23:11 +0000)]
Merge r195030 from project/mips into head by hand:

r195030 | gonzo | 2009-06-25 19:27:31 -0600 (Thu, 25 Jun 2009) | 4 lines
- Switch to libc softfloat from libgcc implementation. The problem
    with latter is that it is not complete, fpsetXXX/fpgetXXX
    functions are missing.

14 years agoMerge r195575 and 195530 from projects/mips to head by hand:
imp [Fri, 8 Jan 2010 23:09:11 +0000 (23:09 +0000)]
Merge r195575 and 195530 from projects/mips to head by hand:

r195575 | imp | 2009-07-10 12:24:02 -0600 (Fri, 10 Jul 2009) | 2 lines
quick hack for the problem gonzo is seeing.

r195530 | imp | 2009-07-10 01:18:30 -0600 (Fri, 10 Jul 2009) | 5 lines
Always build all 4 emulators into the mips toolchain.
# I think we have a gcc spec file issue with abi=64 since I have to do other
# hacks to get it mostly kinda right.

14 years agoMerge from project/mips r195021:
imp [Fri, 8 Jan 2010 23:06:56 +0000 (23:06 +0000)]
Merge from project/mips r195021:

r195021 | gonzo | 2009-06-25 18:44:23 -0600 (Thu, 25 Jun 2009) | 2 lines
- Add MIPS to the list of 32-bit architectures

14 years agoBack-merge (by hand) r195668:
imp [Fri, 8 Jan 2010 23:02:17 +0000 (23:02 +0000)]
Back-merge (by hand) r195668:

r195668 | gonzo | 2009-07-13 17:01:12 -0600 (Mon, 13 Jul 2009) | 3 lines
- Get rid of ugly TARGET_CPU_DEFAULT default. 16 is MASK_DSP
    and was set there due to my ignroance.

14 years agoFree allocated sbufs before returning ENOMEM.
brueffer [Fri, 8 Jan 2010 22:58:50 +0000 (22:58 +0000)]
Free allocated sbufs before returning ENOMEM.

PR: 128335
Submitted by: Mateusz Guzik <mjguzik@gmail.com>
MFC after: 2 week

14 years agoRevert r199758. It pointed out that we were calling pcpu_init way too
imp [Fri, 8 Jan 2010 22:52:02 +0000 (22:52 +0000)]
Revert r199758.  It pointed out that we were calling pcpu_init way too
late...

14 years agoCentralize initialization of pcpu, and set curthread early...
imp [Fri, 8 Jan 2010 22:48:21 +0000 (22:48 +0000)]
Centralize initialization of pcpu, and set curthread early...

14 years agoRemove unnecessary quoting and markup, add missing punctuation.
brueffer [Fri, 8 Jan 2010 22:02:42 +0000 (22:02 +0000)]
Remove unnecessary quoting and markup, add missing punctuation.

PR: 140494
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>, bde
MFC after: 1 week

14 years agoFix array overflow.
trasz [Fri, 8 Jan 2010 21:02:12 +0000 (21:02 +0000)]
Fix array overflow.

Reviewed by: rpaulo

14 years agoGet rid of #ident.
trasz [Fri, 8 Jan 2010 20:40:28 +0000 (20:40 +0000)]
Get rid of #ident.

14 years agosk(4), stge(4) and vge(4) should work on all architectures, snd_t4dwave(4)
brueffer [Fri, 8 Jan 2010 20:38:41 +0000 (20:38 +0000)]
sk(4), stge(4) and vge(4) should work on all architectures, snd_t4dwave(4)
works on sparc64.

Submitted by: yongari

14 years agoFix array overflow.
trasz [Fri, 8 Jan 2010 19:56:37 +0000 (19:56 +0000)]
Fix array overflow.

Reviewed by: philip

14 years agoTo avoid hardcoding further kernel configuration names for
bz [Fri, 8 Jan 2010 19:01:50 +0000 (19:01 +0000)]
To avoid hardcoding further kernel configuration names for
make universe, split the logic into two parts:
- 1st to build worlds and generate kernel configs like LINT.
- 2nd to build kernels for a given TARGET architecture correctly
  finding all newly generated configs, not knowing anything about
  LINT anymore. (*)

(*) If you know better/cleaner/... ways to do this, let me know.

Discussed on/with: arch, jhb, rwatson
MFC after: 1 month

14 years agoGenerate a second LINT configuration for i386 and amd64 in
bz [Fri, 8 Jan 2010 19:00:20 +0000 (19:00 +0000)]
Generate a second LINT configuration for i386 and amd64 in
sys/conf/makeLINT.mk, which includes LINT and sets options VIMAGE
so that we will have VIMAGE LINT builds[1]. For now only do it for
those two architectures to avoid massive universe times for archs,
where people will less likely use VIMAGE or not at all.

Requested by: jhb [1]
Discussed on/with: arch, jhb, rwatson
MFC after: 1 month

14 years agoIn sys/<arch>/conf/Makefile set TARGET to <arch>. That allows
bz [Fri, 8 Jan 2010 18:57:31 +0000 (18:57 +0000)]
In sys/<arch>/conf/Makefile set TARGET to <arch>. That allows
sys/conf/makeLINT.mk to only do certain things for certain
architectures.

Note that neither arm nor mips have the Makefile there, thus
essentially not (yet) supporting LINT.  This would enable them
do add special treatment to sys/conf/makeLINT.mk as well chosing
one of the many configurations as LINT.

This is a hack of doing this and keeping it in a separate commit
will allow us to more easily identify and back it out.

Discussed on/with: arch, jhb (as part of the LINT-VIMAGE thread)
MFC after: 1 month

14 years agoEnsure an address is removed from the interface address
qingli [Fri, 8 Jan 2010 17:49:24 +0000 (17:49 +0000)]
Ensure an address is removed from the interface address
list when the installation of that address fails.

PR: 139559

14 years agoRemove ste(4), it should work on all architectures now.
brueffer [Fri, 8 Jan 2010 17:47:37 +0000 (17:47 +0000)]
Remove ste(4), it should work on all architectures now.

14 years agoGet rid of #ident, GCC 4.4 warns about it being deprecated.
trasz [Fri, 8 Jan 2010 17:20:41 +0000 (17:20 +0000)]
Get rid of #ident, GCC 4.4 warns about it being deprecated.

OK-ed by: scottl

14 years agoSwitch traceroute over to make use of proper in-kernel source
bz [Fri, 8 Jan 2010 16:59:28 +0000 (16:59 +0000)]
Switch traceroute over to make use of proper in-kernel source
address selection.

Reviewed by: rwatson, fenner
MFC after: 1 week
X-MFCable to: stable/8, stable/7 (after r183571).
PR: kern/139454
Tested by: Frank Steinborn (steinex nognu.de)

14 years agoUnbreak the XEN build after r201751.
bz [Fri, 8 Jan 2010 16:56:11 +0000 (16:56 +0000)]
Unbreak the XEN build after r201751.

14 years agoStop GCC from complaining about lagg_port_checkstacking() being unused.
trasz [Fri, 8 Jan 2010 16:44:33 +0000 (16:44 +0000)]
Stop GCC from complaining about lagg_port_checkstacking() being unused.

14 years agoComplete the swap of carp(4) log levels and document the change.
ru [Fri, 8 Jan 2010 16:14:41 +0000 (16:14 +0000)]
Complete the swap of carp(4) log levels and document the change.

MFC after: 3 days

14 years agoOne more #ifdef fix for GCC 4.4.
trasz [Fri, 8 Jan 2010 15:57:56 +0000 (15:57 +0000)]
One more #ifdef fix for GCC 4.4.

14 years agoRemove unused smbfs_smb_qpathinfo().
trasz [Fri, 8 Jan 2010 15:53:07 +0000 (15:53 +0000)]
Remove unused smbfs_smb_qpathinfo().

14 years agoRemove unused uhci_dump_qhs().
trasz [Fri, 8 Jan 2010 15:52:06 +0000 (15:52 +0000)]
Remove unused uhci_dump_qhs().

Reviewed by: hps

14 years agoRemove unused iir_watchdog().
trasz [Fri, 8 Jan 2010 15:47:23 +0000 (15:47 +0000)]
Remove unused iir_watchdog().

Reviewed by: scottl

14 years agoPut mly_timeout() under MLY_DEBUG, so that newer GCC versions don't
trasz [Fri, 8 Jan 2010 15:46:27 +0000 (15:46 +0000)]
Put mly_timeout() under MLY_DEBUG, so that newer GCC versions don't
complain about unused static function.

Reviewed by: scottl

14 years agoReplace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
trasz [Fri, 8 Jan 2010 15:44:49 +0000 (15:44 +0000)]
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
to silence newer GCC versions.

14 years agoFix #ifdefs so that GCC 4.4 doesn't complain about it.
trasz [Fri, 8 Jan 2010 15:41:24 +0000 (15:41 +0000)]
Fix #ifdefs so that GCC 4.4 doesn't complain about it.

Reviewed by: rpaulo

14 years ago- Fix a bug in sched_4bsd where the timestamp for the sleeping operation
attilio [Fri, 8 Jan 2010 14:55:11 +0000 (14:55 +0000)]
- Fix a bug in sched_4bsd where the timestamp for the sleeping operation
  is not cleaned up on the wakeup but reset.
  This is harmless mostly because td_slptick (and ki_slptime from
  userland) should be analyzed only with the assumption that the thread
  is actually sleeping (thus while the td_slptick is correctly set) but
  without this invariant the number is nomore consistent.
- Move td_slptick from u_int to int in order to follow 'ticks' signedness
  and wrap up accordingly [0]

[0] Submitted by: emaste
Sponsored by: Sandvine Incorporated
MFC 1 week

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Fri, 8 Jan 2010 11:16:58 +0000 (11:16 +0000)]
This now passes a make universe with WARNS=6.

14 years agoAllow comment (#) to be placed anywhere in the line, not only at the
sobomax [Fri, 8 Jan 2010 10:54:15 +0000 (10:54 +0000)]
Allow comment (#) to be placed anywhere in the line, not only at the
beginning, so it's consistent with other configuration files.

MFC after: 3 weeks

14 years agoIf we fail to read the Ethernet address from the card, just print an
gavin [Fri, 8 Jan 2010 10:32:27 +0000 (10:32 +0000)]
If we fail to read the Ethernet address from the card, just print an
warning message and attach without setting the Ethernet address to a
random address.  It is not believed that this code can actually be
executed, and if it does, we're better off printing an error message than
faking up an Ethernet address.

PR: kern/133239
Reviewed by: yongari (earlier version of patch)
Approved by: ed (mentor)

14 years agoCatch up with r183101 that added "device acpi" to GENERIC.
alc [Fri, 8 Jan 2010 09:16:37 +0000 (09:16 +0000)]
Catch up with r183101 that added "device acpi" to GENERIC.

14 years ago- Change the type of size_max to u_quad_t because its value is converted
jh [Fri, 8 Jan 2010 07:57:43 +0000 (07:57 +0000)]
- Change the type of size_max to u_quad_t because its value is converted
  with vfs_scanopt(9) using the "%qu" format string.
- Limit the maximum value of size_max to (SIZE_MAX - PAGE_SIZE) to
  prevent overflow in howmany() macro.

PR: kern/141194
Approved by: trasz (mentor)
MFC after: 2 weeks

14 years agoAdd a DDB command "show pcb" to dump out the contents of a thread's PCB.
neel [Fri, 8 Jan 2010 05:53:11 +0000 (05:53 +0000)]
Add a DDB command "show pcb" to dump out the contents of a thread's PCB.

Approved by: imp (mentor)

14 years agoEnable ste(4). ste(4) should work on all architectures.
yongari [Fri, 8 Jan 2010 02:46:34 +0000 (02:46 +0000)]
Enable ste(4). ste(4) should work on all architectures.

14 years agoMake sure to store dma address of RX buffer in little endian form.
yongari [Fri, 8 Jan 2010 02:43:20 +0000 (02:43 +0000)]
Make sure to store dma address of RX buffer in little endian form.
This fixes the last bug which keeps ste(4) from working on sparc64.

14 years agoFix EEPROM access code to return data in host byte order.
yongari [Fri, 8 Jan 2010 02:39:53 +0000 (02:39 +0000)]
Fix EEPROM access code to return data in host byte order.
EEPROM on ST201 always returns 16bits data with little endian
format so conversion to host order is required.
This change fixes inversed ethernet address on sparc64.

14 years agoRemove unneeded includes.
thompsa [Fri, 8 Jan 2010 01:41:58 +0000 (01:41 +0000)]
Remove unneeded includes.

14 years agoUpdate copyright date
dougb [Fri, 8 Jan 2010 00:05:10 +0000 (00:05 +0000)]
Update copyright date

Update delete_temproot() to include the error message if it fails,
and clean up the places where it's called.

If there are no files left in temproot when the comparison is done
delete it without prompting. This should make "automated" runs of
mergemaster without -a a little easier.

Document the new behavior in the man page.

14 years agoFor the now-infamous Rumsfeld quote:
dougb [Thu, 7 Jan 2010 23:30:10 +0000 (23:30 +0000)]
For the now-infamous Rumsfeld quote:

Change "there're" to "there are" which is consistent with the vast
majority of on line references.

Remove a spurious trailing "

Update the citation text with a suggestion from des.

14 years agoFurther fix grammar.
kib [Thu, 7 Jan 2010 21:14:46 +0000 (21:14 +0000)]
Further fix grammar.

Suggested by: alc
MFC after: 3 days

14 years agoFix a typo and bump date for the previous commit.
brueffer [Thu, 7 Jan 2010 21:08:22 +0000 (21:08 +0000)]
Fix a typo and bump date for the previous commit.

14 years agoRemove extraneous semicolons, no functional changes.
mbr [Thu, 7 Jan 2010 21:01:37 +0000 (21:01 +0000)]
Remove extraneous semicolons, no functional changes.

Submitted by: Marc Balmer <marc@msys.ch>
MFC after: 1 week

14 years agoRe-apply onnv-gate revisions 7994 and 8986 (corresponds to FreeBSD
delphij [Thu, 7 Jan 2010 20:10:22 +0000 (20:10 +0000)]
Re-apply onnv-gate revisions 7994 and 8986 (corresponds to FreeBSD
revision 200726 and 200727).  It looks like that the two revisions
were not applied in the right sequence, I found this when comparing
with the OpenSolaris code.

MFC after: 3 days
Reviewed by: mm@

14 years agoSince the IPv4 rule allows ICMP_TIMXCEED, allow
ume [Thu, 7 Jan 2010 17:46:25 +0000 (17:46 +0000)]
Since the IPv4 rule allows ICMP_TIMXCEED, allow
ICMP6_TIME_EXCEEDED as well for workstation type
firewall.  It makes traceroute6 work.

14 years agoMake pmap_set_pg() static.
alc [Thu, 7 Jan 2010 17:34:45 +0000 (17:34 +0000)]
Make pmap_set_pg() static.

14 years agoRemove BUGS section that no longer applies after recent changes to semaphore
trasz [Thu, 7 Jan 2010 16:52:00 +0000 (16:52 +0000)]
Remove BUGS section that no longer applies after recent changes to semaphore
code.

OK-ed by: davidxu

14 years agoip_var.h now needs to be before ip_fw_private.h
luigi [Thu, 7 Jan 2010 14:23:19 +0000 (14:23 +0000)]
ip_var.h now needs to be before ip_fw_private.h

14 years agowe don't use dummynet_drain!
luigi [Thu, 7 Jan 2010 13:53:47 +0000 (13:53 +0000)]
we don't use dummynet_drain!

14 years agoGive some information on SF_MNOWAIT flag.
kib [Thu, 7 Jan 2010 13:31:00 +0000 (13:31 +0000)]
Give some information on SF_MNOWAIT flag.

MFC after: 3 days

14 years agoAfter adding an SDT provider for opencrypto in r199884 we should also
bz [Thu, 7 Jan 2010 12:58:03 +0000 (12:58 +0000)]
After adding an SDT provider for opencrypto in r199884 we should also
depend on opt_kdtrace.h for the module build.

Submitted by: (Andre.Albsmeier siemens.com)
MFC after: 3 days

14 years agocheck that we have an ipv4 packet before swapping ip_len and ip_off.
luigi [Thu, 7 Jan 2010 12:00:54 +0000 (12:00 +0000)]
check that we have an ipv4 packet before swapping ip_len and ip_off.
This should fix the handling of ipv6 packets which i broke when i
made ipfw operate on packets in network format.

Reported by: Hajimu UMEMOTO

14 years ago- s/unsecure/insecure/ as this is the correct keyword
danger [Thu, 7 Jan 2010 11:30:54 +0000 (11:30 +0000)]
- s/unsecure/insecure/ as this is the correct keyword

14 years agoFollowing up on a request from Ermal Luci to make
luigi [Thu, 7 Jan 2010 10:39:15 +0000 (10:39 +0000)]
Following up on a request from Ermal Luci to make
ip_divert work as a client of pf(4),
make ip_divert not depend on ipfw.

This is achieved by moving to ip_var.h the struct ipfw_rule_ref
(which is part of the mtag for all reinjected packets) and other
declarations of global variables, and moving to raw_ip.c global
variables for filter and divert hooks.

Note that names and locations could be made more generic
(ipfw_rule_ref is really a generic reference robust to reconfigurations;
the packet filter is not necessarily ipfw; filters and their clients
are not necessarily limited to ipv4), but _right now_ most
of this stuff works on ipfw and ipv4, so i don't feel like
doing a gratuitous renaming, at least for the time being.

14 years agoput ip_var before ip_fw_private.h as this will be needed in
luigi [Thu, 7 Jan 2010 10:27:52 +0000 (10:27 +0000)]
put ip_var before ip_fw_private.h as this will be needed in
the near future

14 years agosome header shuffling to help decoupling ip_divert from ipfw
luigi [Thu, 7 Jan 2010 10:08:05 +0000 (10:08 +0000)]
some header shuffling to help decoupling ip_divert from ipfw

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:47:05 +0000 (09:47 +0000)]
This now passes a make universe with WARNS=6.

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:45:15 +0000 (09:45 +0000)]
This now passes a make universe with WARNS=6.

14 years agoThis now passes a make universe with WARNS=6.
dwmalone [Thu, 7 Jan 2010 09:40:34 +0000 (09:40 +0000)]
This now passes a make universe with WARNS=6.

14 years agoput ip_len in correct order for ip_output().
luigi [Thu, 7 Jan 2010 09:28:17 +0000 (09:28 +0000)]
put ip_len in correct order for ip_output().
This prevents a panic when ipfw generates packets on its own
(such as reject or keepalives for dynamic rules).

Reported by: Chagin Dmitry

14 years agoKASSERT that condition raised by Coverity cannot happen.
mckusick [Thu, 7 Jan 2010 06:20:07 +0000 (06:20 +0000)]
KASSERT that condition raised by Coverity cannot happen.

Found by: Coverity Prevent (tm)
KASSERT by: sam

14 years agoEliminate unused variables (see r137912).
alc [Thu, 7 Jan 2010 04:47:09 +0000 (04:47 +0000)]
Eliminate unused variables (see r137912).

14 years agoDon't forget to use fourth argument if O_CREAT is set in argument oflag.
davidxu [Thu, 7 Jan 2010 04:15:49 +0000 (04:15 +0000)]
Don't forget to use fourth argument if O_CREAT is set in argument oflag.
The fourth specifies initial value for the semaphore.

14 years agoFix debug printf on 64bit arches.
thompsa [Thu, 7 Jan 2010 02:25:19 +0000 (02:25 +0000)]
Fix debug printf on 64bit arches.

Spotted by: b. f.

14 years agoFix typos.
attilio [Thu, 7 Jan 2010 01:24:09 +0000 (01:24 +0000)]
Fix typos.