imp
681e259e01
Merge from tbemd:
...
Add directory names directly and sort at the end.
Include bsd.arch.inc.mk so we can, in the future, more easily make arch
dependent changes in /bin (unlikely, but is needed for symmetry).
2010-09-13 01:29:51 +00:00
imp
3e55b193ba
merge powerpc and powerpc64 now that we use TARGET_CPUARCH
2010-09-13 01:20:53 +00:00
imp
39270288ca
Move to using TARGET_CPUARCH instead of TARGET_ARCH.
2010-09-13 01:00:48 +00:00
imp
825ac700e5
Use TARGET_CPUARCH instead of TARGET_ARCH here. Define TARGET_CPUARCH
...
based on TARGET_ARCH. Use TARGET_ARCH still for a powerpc64 test.
Futureproof for coming mipsel/mipseb and arm/armeb rename.
2010-09-13 00:57:48 +00:00
jilles
dc327c8b4d
sh: Add __dead2 to two functions that do not return.
...
Apart from helping static analyzers, this also appears to reduce the size of
the binary slightly.
2010-09-12 22:00:31 +00:00
cognet
624f75c1e1
In pmap_remove_all(), do not decrease pm_stats.wired_count if the mapping was
...
wired, as it's been done later in pmap_nuke_pv().
Submitted by: Mark Tinguely
2010-09-12 20:46:32 +00:00
kib
131282cc47
Do not fork nfsiod directly from the vop methods. This causes LORs between
...
vnode lock and several locks needed during fork, like fd lock.
Instead, schedule the task to be executed in the taskqueue context. We
still waiting for the fork to finish, but the context of the thread
executing the task does not make real LORs with our vnode lock.
Submitted by: pluknet at gmail com
Reviewed by: jhb
Tested by: pho
MFC after: 3 weeks
2010-09-12 19:06:08 +00:00
jh
7ad5ac6559
In backup_kernel(), support backing up subdirectories and handle files
...
with spaces correctly.
Approved by: cperciva
MFC after: 1 month
2010-09-12 18:53:44 +00:00
qingli
5da585aeb8
Adding an address on an interface also requires the loopback route to
...
that address be installed.
PR: kern/150481
Submitted by: Ingo Flaschberger <if at xip.at>
MFC after: 5 days
2010-09-12 18:04:47 +00:00
kib
6a41bca77d
Add DF_1_LOADFLTR.
...
MFC after: 3 days
2010-09-12 17:55:56 +00:00
gjb
4e7fbc699b
I believe the majority of Gregorian calendars would agree the current
...
year is 2010, not 2005.
Approved by: keramida (mentor)
Pointy hat to: gjb
MFC after: 1 week
2010-09-12 17:53:36 +00:00
kib
41e1f37ac2
Fix typo.
...
MFC after: 3 days
2010-09-12 17:53:31 +00:00
gjb
cad58ae3ff
Rewording and typo fixes in newfs(8).
...
PR: 150490
Submitted by: Eitan Adler <foreignuser at eitanadler com>
Additional fixes by: Warren Block <wblock at wonkity com>, keramida
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-12 17:50:07 +00:00
nwhitehorn
6701006626
Check for undefined weak symbols during PLT binding on powerpc64, and do
...
not attempt to copy NULL function descriptors. This fixes LD_BIND_NOW on
powerpc64 after r211706.
Reviewed by: kib
2010-09-12 17:04:51 +00:00
ivoras
599c1ac599
List low-level Blowfish ECB module in the SRCS. It looks like it was dropped
...
by accident (and it would be inconvenient to implement it otherwise because it
uses internal non-published headers).
MFC after: 1 week
2010-09-12 16:28:26 +00:00
rpaulo
4f68232de5
Give a chance to the target binary to run the ctors by waiting until it
...
has reached main(). This allows plockstat to work.
Sponsored by: The FreeBSD Foundation
2010-09-12 15:59:14 +00:00
rpaulo
f29acedb77
Revamp locking a bit. This fixes three problems:
...
* processes now can't go away while we are inserting probes (fixes a panic)
* if a trap happens, we won't be holding the process lock (fixes a hang)
* fix a LOR between the process lock and the fasttrap bucket list lock
Thanks to kib for pointing some problems.
Sponsored by: The FreeBSD Foundation
2010-09-12 14:12:16 +00:00
gjb
1c33048a16
Bump date from r212440.
...
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-12 14:04:54 +00:00
gjb
b008f7b64b
Bump dates in dbopen(3) and cpuset_getaffinity(2) from r212441 and
...
r212438, repectively.
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-12 14:04:05 +00:00
mav
8b0db56f3b
Instead of storing last event timestamp, store the next event timestamp.
...
It corrects handling of the first event offset in emulated periodic mode.
2010-09-12 11:11:53 +00:00
nwhitehorn
8b14990639
ATAPI DMA does not seem to work completely reliably on Shasta controllers,
...
especially in conjunction with ATA_CAM, so disable it for now.
2010-09-11 22:09:16 +00:00
weongyo
4839bf82b7
Mentions cases when bwi(4) driver should be used that it only wrote
...
about chipset type instead of card names because it's not easy to sort
names what cards use these chipsets.
Pointed by: imp
2010-09-11 21:49:28 +00:00
mav
29989e4d9c
Do not print "frequency 0 Hz", when frequency is unknown.
2010-09-11 20:18:15 +00:00
kan
a47d3fbf19
Add missing pointer increment to sbuf_cat.
2010-09-11 19:42:50 +00:00
marius
0b2ac861b5
Change OF_interpret() to also take an array of cell_t (missed in r209801).
...
Reviewed by: nwhitehorn
2010-09-11 18:55:00 +00:00
jilles
2beda3228f
sh: Fix exit status if return is used within a loop condition.
2010-09-11 15:07:40 +00:00
jilles
694b7e6c37
sh: Apply variable assignments left-to-right in bltinlookup().
...
Example:
HOME=foo HOME=bar cd
2010-09-11 14:15:50 +00:00
kib
107ea66c07
Protect mnt_syncer with the sync_mtx. This prevents a (rare) vnode leak
...
when mount and update are executed in parallel.
Encapsulate syncer vnode deallocation into the helper function
vfs_deallocate_syncvnode(), to not externalize sync_mtx from vfs_subr.c.
Found and reviewed by: jh (previous version of the patch)
Tested by: pho
MFC after: 3 weeks
2010-09-11 13:06:06 +00:00
rpaulo
fe4368ea53
Avoid a LOR (sleepable after non-sleepable) in
...
fasttrap_tracepoint_enable().
Sponsored by: The FreeBSD Foundation
2010-09-11 12:58:31 +00:00
brucec
7adc5f91cf
Revert changes of 'assure' to 'ensure' made in r211936.
...
Approved by: rrs (mentor)
2010-09-11 10:49:56 +00:00
rpaulo
6b5a9d0d4b
Disable debug by default.
...
Sponsored by: The FreeBSD Foundation
2010-09-11 10:16:15 +00:00
rpaulo
7196fce56d
Add a comment describing where to include bsd.dtrace.mk.
...
Sponsored by: The FreeBSD Foundation
2010-09-11 10:11:59 +00:00
mav
a9f24443ec
Fix the build after r212453. IPI_STATCLOCK declaration is still needed
...
for build, though not really used.
Submitted by: andreast
2010-09-11 09:53:33 +00:00
davidxu
4b5fe92932
Make a link for pthread_timedjoin_np.
2010-09-11 09:26:36 +00:00
davidxu
24263f7931
kill() does queue signal now.
2010-09-11 08:15:18 +00:00
avg
e755b6fa44
make acpi_hp device a child of acpi_wmi
...
to properly reflect dependency between the devices/drivers
PR: kern/147858
Suggested by: jhb
Tested by: Maciej Suszko <maciej@suszko.eu>
MFC after: 1 week
2010-09-11 08:09:14 +00:00
mav
4687e7f394
Sparc64 uses dummy cpu_idle() method. It's CPUs never sleeping. Tell
...
scheduler that it doesn't need to use IPI to "wake up" CPU.
2010-09-11 07:24:10 +00:00
mav
90db957786
Merge some SCHED_ULE features to SCHED_4BSD:
...
- Teach SCHED_4BSD to inform cpu_idle() about high sleep/wakeup rate to
choose optimized handler. In case of x86 it is MONITOR/MWAIT. Also it
will be needed to bypass forthcoming idle tick skipping logic to not
consume resources on events rescheduling when it won't give any benefits.
- Teach SCHED_4BSD to wake up idle CPUs without using IPI. In case of x86,
when MONITOR/MWAIT is active, it require just single memory write. This
doubles performance on some heavily switching test loads.
2010-09-11 07:08:22 +00:00
mav
f9956f69fb
Update PowerPC event timer code to use new event timers infrastructure.
...
Reviewed by: nwitehorn
Tested by: andreast
H/W donated by: Gheorghe Ardelean
2010-09-11 04:45:51 +00:00
rmacklem
5120adc280
This patch applies one of the two fixes suggested by
...
zack.kirsch at isilon.com for a race between nfsrv_freeopen()
and nfsrv_getlockfile() in the experimental NFS server that
he found during testing. Although nfsrv_freeopen() holds a
sleep lock on the lock file structure when called with
cansleep != 0, nfsrv_getlockfile() could still search the
list, once it acquired the NFSLOCKSTATE() mutex. I believe
that acquiring the mutex in nfsrv_freeopen() fixes the race.
MFC after: 2 weeks
2010-09-10 23:49:33 +00:00
gjb
92f51406df
Note O_SYNC and O_NOFOLLOW flags in dbopen(3) since r190497.
...
PR: 150030
Submitted by: Janne Snabb snabb at epipe com
Patch by: Janne Snabb
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-10 23:24:55 +00:00
gjb
fe3edd04c5
Add RETURN VALUES section to devclass_get_maxunit(9).
...
PR: 149979
Submitted by: gcooper
Patch by: gcooper
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-10 23:22:01 +00:00
rmacklem
a7e4e69d19
Fix the NFSVNO_CMPFH() macro in the experimental NFS server so
...
that it works correctly for ZFS file handles. It is possible to
have two ZFS file handles that differ only in the bytes in the
fid_reserved field of the generic "struct fid" and comparing the
bytes in fid_data didn't catch this case. This patch changes the
macro to compare all bytes of "struct fid".
Tested by: gull at gull.us
MFC after: 2 weeks
2010-09-10 23:18:45 +00:00
gjb
3ec13fa002
Add EINVAL to list of possible return values for cpuset_getaffinity(2).
...
PR: 149978
Submitted by: gcooper
Patch by: gcooper
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-10 23:15:05 +00:00
jamie
5a233127aa
Don't exit kern_jail_set without freeing options when enforce_statfs
...
has an illegal value.
MFC after: 3 days
2010-09-10 21:45:42 +00:00
mdf
b25dd573cd
Mark the sbuf_overflowed(9) manpage as obsolete since it has been
...
renamed.
Noticed by: jhb
2010-09-10 20:42:41 +00:00
cperciva
2dd00a9624
"freebsd-update fetch -r NEWRELEASE" is meaningless and probably a typo
...
for "freebsd-update upgrade -r NEWRELEASE". Error out and suggest what
the user probably meant.
Submitted by: James Seward
MFC after: 1 month
2010-09-10 20:20:28 +00:00
cperciva
27d52dcc5a
Add warning about freebsd-update upgrade needing lots of disk space.
...
Submitted by: jpaetzel
MFC after: 1 month
2010-09-10 19:23:59 +00:00
cperciva
36a61709f2
Remind the user that he needs to run 'freebsd-update install' to install
...
new bits after downloading them using 'freebsd-update upgrade'.
Submitted by: bapt
MFC after: 1 month
2010-09-10 19:20:52 +00:00
obrien
207cb0601b
Add real dependancies on the uuencoded firmwares.
...
Now when one does 'make kernel ; make kernel' the second invocation
only does: `kernel.ko' is up to date.
rather than reproduce all the .fw files and relink the kernel.
2010-09-10 18:19:38 +00:00