]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd mips support.
imp [Fri, 4 Apr 2008 21:33:41 +0000 (21:33 +0000)]
Add mips support.

16 years agoMFp4 (mips2-jnpr):
imp [Fri, 4 Apr 2008 21:12:40 +0000 (21:12 +0000)]
MFp4 (mips2-jnpr):
o Default to -O on mips as well as arm.  -O2 has been strongly implicated
  in many problems in the past, so we're taking a conservative approach
  until the problems are well understood.

16 years agoMFp4: Add mips support for dynamic linking.
imp [Fri, 4 Apr 2008 20:59:26 +0000 (20:59 +0000)]
MFp4: Add mips support for dynamic linking.

This code came from the merged mips2 and Juniper mips repositories.
Warner Losh, Randall Seager, Oleksandr Tymoshenko and Olivier Houchard
worked to merge, debug and integrate this code.  This code may also
contain code derived from NetBSD.

16 years agoIf you build a compiler with TARGET_BIG_ENDIAN, and then try to build
imp [Fri, 4 Apr 2008 19:33:09 +0000 (19:33 +0000)]
If you build a compiler with TARGET_BIG_ENDIAN, and then try to build
a little endian kernel, things break.  Be explicit about the endian
choice by setting it in the little endian case as well.

16 years agoUpdate a comment to vm_map_pmap_enter().
alc [Fri, 4 Apr 2008 19:14:58 +0000 (19:14 +0000)]
Update a comment to vm_map_pmap_enter().

16 years agoReintroduce UMA_SLAB_KMAP; however, change its spelling to
alc [Fri, 4 Apr 2008 18:41:12 +0000 (18:41 +0000)]
Reintroduce UMA_SLAB_KMAP; however, change its spelling to
UMA_SLAB_KERNEL for consistency with its sibling UMA_SLAB_KMEM.
(UMA_SLAB_KMAP met its original demise in revision 1.30 of
vm/uma_core.c.)  UMA_SLAB_KERNEL is now required by the jumbo frame
allocators.  Without it, UMA cannot correctly return pages from the
jumbo frame zones to the VM system because it resets the pages' object
field to NULL instead of the kernel object.  In more detail, the jumbo
frame zones are created with the option UMA_ZONE_REFCNT.  This causes
UMA to overwrite the pages' object field with the address of the slab.
However, when UMA wants to release these pages, it doesn't know how to
restore the object field, so it sets it to NULL.  This change teaches
UMA how to reset the object field to the kernel object.

Crashes reported by: kris
Fix tested by: kris
Fix discussed with: jeff
MFC after: 6 weeks

16 years agoFix stupid typo
imp [Fri, 4 Apr 2008 18:22:16 +0000 (18:22 +0000)]
Fix stupid typo

16 years agoEliminate an unnecessary test and its misleading comment from pmap_enter().
alc [Fri, 4 Apr 2008 18:00:22 +0000 (18:00 +0000)]
Eliminate an unnecessary test and its misleading comment from pmap_enter().

16 years agoMake kernel.tramp build properly on ARM9E.
raj [Fri, 4 Apr 2008 17:35:24 +0000 (17:35 +0000)]
Make kernel.tramp build properly on ARM9E.

Reviewed by: imp
Approved by: cognet (mentor)

16 years agoAdd note about PZERO being obsolete, because so much code uses it.
imp [Fri, 4 Apr 2008 16:59:58 +0000 (16:59 +0000)]
Add note about PZERO being obsolete, because so much code uses it.
Feel free to improve the verbage, since this was a compromise between
conflicting feedback I got on my original version.

16 years ago - Add sysctls at debug.rwlock to control the behavior of the speculative
jeff [Fri, 4 Apr 2008 10:00:46 +0000 (10:00 +0000)]
 - Add sysctls at debug.rwlock to control the behavior of the speculative
   spinning when readers hold a lock.  This spinning is speculative because,
   unlike the write case, we can not test whether the owners are running.
 - Add speculative read spinning for readers who are blocked by pending
   writers while a read lock is still held.  This allows the thread to
   spin until the write lock succeeds after which it may spin until the
   writer has released the lock.  This prevents excessive context switches
   when readers and writers both hold the lock for brief periods.

Sponsored by: Nokia

16 years agoAdd some compatibility code so that software which is built to use the new
dfr [Fri, 4 Apr 2008 09:43:03 +0000 (09:43 +0000)]
Add some compatibility code so that software which is built to use the new
struct flock with l_sysid member can work properly on an an old kernel which
doesn't support l_sysid.

Sponsored by: Isilon Systems

16 years agoThe temporary workaround for the call to the vget() without lock type in
kib [Fri, 4 Apr 2008 09:37:57 +0000 (09:37 +0000)]
The temporary workaround for the call to the vget() without lock type in
the fdesc_allocvp(). The caller of the fdesc_allocvp() expects that the
returned vnode is not reclaimed. Do lock the vnode exclusive and drop
the lock after.

Reported by: pho
Reviewed by: jeff

16 years ago- Normalize usage(), add "ddb pathname" syntax.
ru [Fri, 4 Apr 2008 07:31:43 +0000 (07:31 +0000)]
- Normalize usage(), add "ddb pathname" syntax.
- Revise the manpage.

16 years ago- Add -D to usage().
ru [Fri, 4 Apr 2008 05:55:42 +0000 (05:55 +0000)]
- Add -D to usage().
- Bump document date for the addition of the -D option.
- Reformat a sentence to look like a real sentence.

16 years agoAdd -D option to specify exact format of date and time output with ls -l.
grog [Fri, 4 Apr 2008 03:57:46 +0000 (03:57 +0000)]
Add -D option to specify exact format of date and time output with ls -l.

16 years agoAdd comment about specifying "ro" mount option when
rodrigc [Fri, 4 Apr 2008 01:50:58 +0000 (01:50 +0000)]
Add comment about specifying "ro" mount option when
doing an update mount on a read-only file system.

Requested by: yar

16 years ago - Add a Nokia copyright to cpuset to reflect their generous
jeff [Fri, 4 Apr 2008 01:22:04 +0000 (01:22 +0000)]
 - Add a Nokia copyright to cpuset to reflect their generous
   contribution to this work.

16 years ago - Allow static_boost to specify no boost with '0', traditional kernel
jeff [Fri, 4 Apr 2008 01:16:18 +0000 (01:16 +0000)]
 - Allow static_boost to specify no boost with '0', traditional kernel
   fixed pri boost with '1' or any priority less than the current thread's
   priority with a value greater than two.  Default the boost to
   PRI_MIN_TIMESHARE to prevent regular user-space threads from starving
   threads in the kernel.  This prevents these user-threads from also
   being scheduled as if they are high fixed-priority kernel threads.
 - Restore the setting of lowpri in tdq_choose().  It has to be either here
   or in sched_switch().  I accidentally removed it from both places.

Tested by: kris

16 years ago - Don't check for the ITHD pri class in tdq_load_add and rem. 4BSD doesn't
jeff [Fri, 4 Apr 2008 01:04:43 +0000 (01:04 +0000)]
 - Don't check for the ITHD pri class in tdq_load_add and rem.  4BSD doesn't
   do this either.  Simply check P_NOLOAD.  It'd be nice if this was
   in a thread flag so we didn't have an extra cache miss every time we
   add and remove a thread from the run-queue.

16 years ago - Fix a mis-merge that crept in during the softclock changes.
jeff [Fri, 4 Apr 2008 01:03:23 +0000 (01:03 +0000)]
 - Fix a mis-merge that crept in during the softclock changes.

Spotted by: jhb

16 years agoAllow crashdumps on machines with >4GB of RAM as long as the adapter can
emaste [Thu, 3 Apr 2008 23:29:31 +0000 (23:29 +0000)]
Allow crashdumps on machines with >4GB of RAM as long as the adapter can
do 64-bit S/G.

Submitted by: Alex Bencz
Reviewed by: scottl

16 years agoFix the build breakage, need the | between dependencies, I didn't
jfv [Thu, 3 Apr 2008 20:58:18 +0000 (20:58 +0000)]
Fix the build breakage, need the | between dependencies, I didn't
realize that :(

16 years agoAlways build kernel.tramp. This should be helpful for a lot of
imp [Thu, 3 Apr 2008 20:42:36 +0000 (20:42 +0000)]
Always build kernel.tramp.  This should be helpful for a lot of
people, as well making sure it doesn't break.

16 years agoUse safer string handling.
imp [Thu, 3 Apr 2008 20:37:38 +0000 (20:37 +0000)]
Use safer string handling.

Reviewed by: security-team

16 years agoMinor style(9) nit: move to using ANSI definition of functions.
imp [Thu, 3 Apr 2008 20:36:44 +0000 (20:36 +0000)]
Minor style(9) nit: move to using ANSI definition of functions.

16 years agoNow really add the bus_space_generic.c file...
raj [Thu, 3 Apr 2008 18:28:34 +0000 (18:28 +0000)]
Now really add the bus_space_generic.c file...

Reviewed by: sam
Approved by: cognet (mentor)

16 years agoRefactor certain ARM bus space methods: instead of having multiple copies of
raj [Thu, 3 Apr 2008 18:22:08 +0000 (18:22 +0000)]
Refactor certain ARM bus space methods: instead of having multiple copies of
the same code introduce sys/arm/arm/bus_space_generic.c for a shared set of
routines.

Reviewed by: sam
Approved by: cognet (mentor)

16 years agoFix AVILA build.
raj [Thu, 3 Apr 2008 18:20:39 +0000 (18:20 +0000)]
Fix AVILA build.

Reviewed by: sam
Approved by: cognet(mentor)

16 years agoAlign functions to 16-byte boundaries due to profiling granularity.
marcel [Thu, 3 Apr 2008 17:40:20 +0000 (17:40 +0000)]
Align functions to 16-byte boundaries due to profiling granularity.

16 years agoSet sc_psim so that the openpic core can correct the off-by-one
marcel [Thu, 3 Apr 2008 17:38:27 +0000 (17:38 +0000)]
Set sc_psim so that the openpic core can correct the off-by-one
error in the number of IRQs that PSIM gives us.

16 years agoTake the first baby step towards unifying and cleaning up arminit():
imp [Thu, 3 Apr 2008 16:44:50 +0000 (16:44 +0000)]
Take the first baby step towards unifying and cleaning up arminit():
- Pull all the code to deal with the trampoline stuff into one
  centeralized place and use it from everywhere.
- Some minor style tidiness

Reviewed by: tinguely

16 years agoFix descriptions of "struct msqid_ds and "struct ipc_perm" to match
ru [Thu, 3 Apr 2008 16:21:43 +0000 (16:21 +0000)]
Fix descriptions of "struct msqid_ds and "struct ipc_perm" to match
harsh reality.

16 years agoDon't force a reset at driver attach time. It doesn't work on some
scottl [Thu, 3 Apr 2008 14:39:48 +0000 (14:39 +0000)]
Don't force a reset at driver attach time.  It doesn't work on some
adapters, apparently.

16 years agolet umtxq_busy() only spin on mp machine. make function name
davidxu [Thu, 3 Apr 2008 11:49:20 +0000 (11:49 +0000)]
let umtxq_busy() only spin on mp machine. make function name
do_rwlock_unlock to be consistent with others.

16 years agoPut back the quote from Chinggis Khan removed in rev. 1.259.
yar [Thu, 3 Apr 2008 10:22:56 +0000 (10:22 +0000)]
Put back the quote from Chinggis Khan removed in rev. 1.259.
The quote predated rev. 1.232, which rev. 1.259 was to correct;
therefore it was protected by the "Don't remove fortunes" rule.

Noticed by: ceri
Pointy hat to: yar

16 years agoAnother build fix
jfv [Thu, 3 Apr 2008 06:45:38 +0000 (06:45 +0000)]
Another build fix

16 years agoFix a lint issue in the build.
jfv [Thu, 3 Apr 2008 06:17:16 +0000 (06:17 +0000)]
Fix a lint issue in the build.

16 years agoAdd some tests for fma(), fmaf(), and fmal().
das [Thu, 3 Apr 2008 06:15:58 +0000 (06:15 +0000)]
Add some tests for fma(), fmaf(), and fmal().

16 years agoFix some corner cases:
das [Thu, 3 Apr 2008 06:14:51 +0000 (06:14 +0000)]
Fix some corner cases:
- fma(x, y, z) returns z, not NaN, if z is infinite, x and y are finite,
  x*y overflows, and x*y and z have opposite signs.
- fma(x, y, z) doesn't generate an overflow, underflow, or inexact exception
  if z is NaN or infinite, as per IEEE 754R.
- If the rounding mode is set to FE_DOWNWARD, fma(1.0, 0.0, -0.0) is -0.0,
  not +0.0.

16 years agoKERNBASE + 0x00200000 is the same thing as KERNVIRTADDR on this
imp [Thu, 3 Apr 2008 06:14:23 +0000 (06:14 +0000)]
KERNBASE + 0x00200000 is the same thing as KERNVIRTADDR on this
platform, so use the latter in preference to the former.  This makes
the fake_preload setup be the same between kb920x_machdep.c and
avila_machdep.c....

16 years agoRemove unnecessary #define.
imp [Thu, 3 Apr 2008 06:07:45 +0000 (06:07 +0000)]
Remove unnecessary #define.

16 years agoAdd a manual page and a Makefile.
gnn [Thu, 3 Apr 2008 05:26:54 +0000 (05:26 +0000)]
Add a manual page and a Makefile.

Add code to reflect packets back from the sink so that we can measure
round trip at the source.

16 years agoput THR_CRITICAL_LEAVE into do .. while statement.
davidxu [Thu, 3 Apr 2008 02:47:35 +0000 (02:47 +0000)]
put THR_CRITICAL_LEAVE into do .. while statement.

16 years agostyle(9) cleanup
kevlo [Thu, 3 Apr 2008 02:41:54 +0000 (02:41 +0000)]
style(9) cleanup

16 years agoadd __hidden suffix to _umtx_op_err, this eliminates PLT.
davidxu [Thu, 3 Apr 2008 02:13:51 +0000 (02:13 +0000)]
add __hidden suffix to _umtx_op_err, this eliminates PLT.

16 years agoFix minor bug in last checkin, NO_STRICT_ALIGNMENT code.
jfv [Thu, 3 Apr 2008 00:25:09 +0000 (00:25 +0000)]
Fix minor bug in last checkin, NO_STRICT_ALIGNMENT code.

16 years agoThis update primarily addresses the ability to have both the em
jfv [Wed, 2 Apr 2008 22:00:36 +0000 (22:00 +0000)]
This update primarily addresses the ability to have both the em
and the igb driver static in the kernel. But it also reflects
some other bug fixes in my development stream at Intel.
PR 122373 is also fixed in this code.

16 years agoBack out revision 1.6, the addition of "BEFORE: mountcritremote".
dougb [Wed, 2 Apr 2008 19:29:16 +0000 (19:29 +0000)]
Back out revision 1.6, the addition of "BEFORE: mountcritremote".

mountcritremote REQUIREs FILESYSTEMS, and that script REQUIREs zfs,
so this change is a noop. By removing it we make life a little easier
both for rcorder(8) and for debugging down the road.

Approved by: 2 weeks of silence from pjd

16 years agoPR ports/121363 (& ports/73797) has been committed, so we can now go back
obrien [Wed, 2 Apr 2008 17:24:22 +0000 (17:24 +0000)]
PR ports/121363 (& ports/73797) has been committed, so we can now go back
to JB's revision 1.96 change to remove -fno-strict-aliasing from CFLAGS.

This makes the default CFLAGS to match the simple defaults that the
tinderboxes use.  By using -fno-strict-aliasing by default we are
choosing to ignore problems in code which had the potential to
shoot ourselves in the foot.

16 years agoAdd zyd, ural, and rum. They were missing.
imp [Wed, 2 Apr 2008 16:17:19 +0000 (16:17 +0000)]
Add zyd, ural, and rum.  They were missing.

16 years agoInitialize if_baudrate using IF_Gbps() macro.
gallatin [Wed, 2 Apr 2008 13:59:43 +0000 (13:59 +0000)]
Initialize if_baudrate using IF_Gbps() macro.

Note that if_baudrate is a long, and 32-bits isn't enough to properly
represent 10Gb/s.

Pointed out by: dwhite

16 years agoNon-portable functions are in pthread_np.h, fix compiling problem.
davidxu [Wed, 2 Apr 2008 11:41:12 +0000 (11:41 +0000)]
Non-portable functions are in pthread_np.h, fix compiling problem.

16 years ago - Convert two timeout users to the new callout_reset_curcpu() api.
jeff [Wed, 2 Apr 2008 11:21:42 +0000 (11:21 +0000)]
 - Convert two timeout users to the new callout_reset_curcpu() api.

Sponsored by: Nokia

16 years agoImplement per-cpu callout threads, wheels, and locks.
jeff [Wed, 2 Apr 2008 11:20:30 +0000 (11:20 +0000)]
Implement per-cpu callout threads, wheels, and locks.

 - Move callout thread creation from kern_intr.c to kern_timeout.c
 - Call callout_tick() on every processor via hardclock_cpu() rather than
   inspecting callout internal details in kern_clock.c.
 - Remove callout implementation details from callout.h
 - Package up all of the global variables into a per-cpu callout structure.
 - Start one thread per-cpu.  Threads are not strictly bound.  They prefer
   to execute on the native cpu but may migrate temporarily if interrupts
   are starving callout processing.
 - Run all callouts by default in the thread for cpu0 to maintain current
   ordering and concurrency guarantees.  Many consumers may not properly
   handle concurrent execution.
 - The new callout_reset_on() api allows specifying a particular cpu to
   execute the callout on.  This may migrate a callout to a new cpu.
   callout_reset() schedules on the last assigned cpu while
   callout_reset_curcpu() schedules on the current cpu.

Reviewed by: phk
Sponsored by: Nokia

16 years agoAdd two missed chunks from the rev. 1.210, for the giant_read() and
kib [Wed, 2 Apr 2008 11:11:58 +0000 (11:11 +0000)]
Add two missed chunks from the rev. 1.210, for the giant_read() and
giant_ioctl().

PR: kern/122287
MFC after: 3 days

16 years ago - Destroy the bo mtx when the vnode is destroyed.
jeff [Wed, 2 Apr 2008 10:40:03 +0000 (10:40 +0000)]
 - Destroy the bo mtx when the vnode is destroyed.

16 years agoSpell -t option's argument by name.
ru [Wed, 2 Apr 2008 09:41:29 +0000 (09:41 +0000)]
Spell -t option's argument by name.

16 years agoAdd pthread_setaffinity_np and pthread_getaffinity_np to libc namespace.
davidxu [Wed, 2 Apr 2008 08:53:18 +0000 (08:53 +0000)]
Add pthread_setaffinity_np and pthread_getaffinity_np to libc namespace.

16 years agoRemove unused functions.
davidxu [Wed, 2 Apr 2008 08:33:42 +0000 (08:33 +0000)]
Remove unused functions.

16 years agoReplace function _umtx_op with _umtx_op_err, the later function directly
davidxu [Wed, 2 Apr 2008 07:41:25 +0000 (07:41 +0000)]
Replace function _umtx_op with _umtx_op_err, the later function directly
returns errno, because errno can be mucked by user's signal handler and
most of pthread api heavily depends on errno to be correct, this change
should improve stability of the thread library.

16 years agoFix compiling problem for amd64.
davidxu [Wed, 2 Apr 2008 05:54:41 +0000 (05:54 +0000)]
Fix compiling problem for amd64.

16 years agoOptimize pmap_pml4e() and pmap_pdpe() based upon two observations: The
alc [Wed, 2 Apr 2008 04:39:47 +0000 (04:39 +0000)]
Optimize pmap_pml4e() and pmap_pdpe() based upon two observations: The
given pmap is never NULL, and therefore pmap_pml4e() can never return
NULL.  The pervasive use of these inline functions throughout the pmap
makes these simple changes worthwhile.

16 years agoReplace userland rwlock with a pure kernel based rwlock, the new
davidxu [Wed, 2 Apr 2008 04:32:31 +0000 (04:32 +0000)]
Replace userland rwlock with a pure kernel based rwlock, the new
implementation does not switch pointers when it resumes waiters.

Asked by: jeff

16 years agoEr, don't restart a timeout version.
davidxu [Wed, 2 Apr 2008 04:26:59 +0000 (04:26 +0000)]
Er, don't restart a timeout version.

16 years agoIntroduce kernel based userland rwlock. Each umtx chain now has two lists,
davidxu [Wed, 2 Apr 2008 04:08:37 +0000 (04:08 +0000)]
Introduce kernel based userland rwlock. Each umtx chain now has two lists,
one for readers and one for writers, other types of synchronization
object just use first list.

Asked by: jeff

16 years agoAdd manpages for rw_try_rlock() and rw_try_wlock() functions.
attilio [Tue, 1 Apr 2008 20:56:45 +0000 (20:56 +0000)]
Add manpages for rw_try_rlock() and rw_try_wlock() functions.

16 years agoCalling RequestSupplementAdapterInfo before RequestAdapterInfo appears
emaste [Tue, 1 Apr 2008 20:53:32 +0000 (20:53 +0000)]
Calling RequestSupplementAdapterInfo before RequestAdapterInfo appears
to trip a bug causing the latter to return a zeroed struct
aac_adapter_info.  This causes two issues.  One is cosmetic only --
a verbose boot prints information about the controller, and shows all
zero:

aac0: Unknown processor 0MHz, 0MB memory (0MB cache, 0MB execution),
  unknown battery platform

The second problem is that the firmware version information is stored
away for aac_rev_check, for userland tools (like aaccli) to query via
the FSACTL_MINIPORT_REV_CHECK and FSACTL_LNX_MINIPORT_REV_CHECK ioctls.
When aaccli encounters this issue it prints

Command Error: <The current AFAAPI.DLL is too old to work with the
  current controller software.>

Move the RequestSupplementAdapterInfo call after RequestAdapterInfo,
which seems to fix both problems.

16 years agoBump __FreeBSD_version in order to reflect rw_try_rlock() and
attilio [Tue, 1 Apr 2008 20:33:06 +0000 (20:33 +0000)]
Bump __FreeBSD_version in order to reflect rw_try_rlock() and
rw_try_wlock() functions introduction.

16 years agoAdd rw_try_rlock() and rw_try_wlock() to rwlocks.
attilio [Tue, 1 Apr 2008 20:31:55 +0000 (20:31 +0000)]
Add rw_try_rlock() and rw_try_wlock() to rwlocks.
These functions try the specified operation (rlocking and wlocking) and
true is returned if the operation completes, false otherwise.

The KPI is enriched by this commit, so __FreeBSD_version bumping and
manpage updating will happen soon.

Requested by: jeff, kris

16 years agoDon't try to use an SX lock while holding the vnode interlock.
dfr [Tue, 1 Apr 2008 16:07:01 +0000 (16:07 +0000)]
Don't try to use an SX lock while holding the vnode interlock.

Sponsored by: Isilon Systems

16 years agoAdd an -O option to disable TCP options, for protocol testing purposes.
bms [Tue, 1 Apr 2008 13:54:24 +0000 (13:54 +0000)]
Add an -O option to disable TCP options, for protocol testing purposes.
Do this for active and passive (-l switch) TCP sessions.

MFC after: 1 week

16 years agoAdd pkg_check and pkg_sign to ObsoleteFiles.inc
flz [Tue, 1 Apr 2008 11:05:26 +0000 (11:05 +0000)]
Add pkg_check and pkg_sign to ObsoleteFiles.inc

Reminded by: Pawel Worach
MFC after: 1 week

16 years agoCorrect the prototype for the faccessat().
kib [Tue, 1 Apr 2008 10:49:06 +0000 (10:49 +0000)]
Correct the prototype for the faccessat().

Reported by: ru

16 years agoConnect malo.4 to the build.
weongyo [Tue, 1 Apr 2008 07:20:04 +0000 (07:20 +0000)]
Connect malo.4 to the build.

Approved by: thompsa (mentor)

16 years agoNormally, we are often reading local time rather than setting time zone,
davidxu [Tue, 1 Apr 2008 06:56:11 +0000 (06:56 +0000)]
Normally, we are often reading local time rather than setting time zone,
replace mutex with rwlock, this should eliminate lock contention in
most cases.

16 years agoRestore normal pthread_cond_signal path to avoid some obscure races.
davidxu [Tue, 1 Apr 2008 06:23:08 +0000 (06:23 +0000)]
Restore normal pthread_cond_signal path to avoid some obscure races.

16 years agoAdd malo driver to the build
weongyo [Tue, 1 Apr 2008 01:55:19 +0000 (01:55 +0000)]
Add malo driver to the build

Approved by: thompsa (mentor)

16 years agoremove warnings for 64bit aware platforms.
weongyo [Tue, 1 Apr 2008 01:48:08 +0000 (01:48 +0000)]
remove warnings for 64bit aware platforms.

Approved by: thompsa (mentor)

16 years agoreturn EAGAIN early rather than running bunch of code later, micro optimize
davidxu [Tue, 1 Apr 2008 00:21:49 +0000 (00:21 +0000)]
return EAGAIN early rather than running bunch of code later, micro optimize
static branch prediction.

16 years agoThe MPT driver treats the "core" module with the same importance and
scottl [Mon, 31 Mar 2008 21:54:05 +0000 (21:54 +0000)]
The MPT driver treats the "core" module with the same importance and
abstraction as the RAID and CAM modules, making it nearly impossible
for enough initialization to be done in time for the RAID module to
know whether to attach.  On top of this, no reset was being done on
the controller on attach, in violation of the spec.  Additionally,
the port enable step was being deferred to the end of the attach
process, long after it should have been done to ensure reliable
operation from the controller.  Fix all of these with a few hacks
to force the "attach" and "enable" steps of the core module early
on, and ensure that a reset and port enable also happens early on.
In the future, the driver needs to be refactored to eliminate the
core module abstraction, clean up withe reset/enable steps, and
defer event messages until all of the modules are available to
recieve them.

16 years agoreduce the size of the jumbo ring on i386 and disable pcpu cluster caching
kmacy [Mon, 31 Mar 2008 21:02:27 +0000 (21:02 +0000)]
reduce the size of the jumbo ring on i386 and disable pcpu cluster caching

16 years agoadd include path required to find ah_osdep.h
sam [Mon, 31 Mar 2008 18:49:09 +0000 (18:49 +0000)]
add include path required to find ah_osdep.h

PR: kern/122145
MFC after: 3 days

16 years agoFix handling of create operation together with setting other parameters:
sam [Mon, 31 Mar 2008 15:38:07 +0000 (15:38 +0000)]
Fix handling of create operation together with setting other parameters:
o mark cmds/parameters to indicate they are potential arguments to a clone
  operation (e.g. vlantag)
o when handling a create/clone operation do the callback on seeing the first
  non-clone cmd line argument so the new device is created and can be used;
  and re-setup operating state to reflect the newly created device

Reviewed by: Eugene Grosbein
MFC after: 2 weeks

16 years agoFix punctiation.
skv [Mon, 31 Mar 2008 14:11:37 +0000 (14:11 +0000)]
Fix punctiation.

Approved by: ru

16 years agoAccept empty -T arguments.
phk [Mon, 31 Mar 2008 13:56:15 +0000 (13:56 +0000)]
Accept empty -T arguments.

Proposed by: clemens fischer <ino-qc@spotteswoode.de.eu.org>

16 years agoDouble up the necessary size of /usr/obj to 800MB
pav [Mon, 31 Mar 2008 13:32:55 +0000 (13:32 +0000)]
Double up the necessary size of /usr/obj to 800MB

PR: misc/99735
Reported by: Philip M. Gollucci <pgollucci@p6m7g8.com>,
Maxim Konovalov <maxim@macomnet.ru>

16 years agoRemove a (bogus) remnant of debugging this on sparc64.
das [Mon, 31 Mar 2008 13:11:45 +0000 (13:11 +0000)]
Remove a (bogus) remnant of debugging this on sparc64.

16 years agoRetire pkg_sign. It was used to embed signatures in gzip'ed packages.
flz [Mon, 31 Mar 2008 12:45:17 +0000 (12:45 +0000)]
Retire pkg_sign. It was used to embed signatures in gzip'ed packages.
It's not relevant since we've changed to bzip2 compression.

MFC after: 1 week

16 years agoAdd the libc glue and headers definitions for the *at() syscalls.
kib [Mon, 31 Mar 2008 12:14:04 +0000 (12:14 +0000)]
Add the libc glue and headers definitions for the *at() syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoRegen
kib [Mon, 31 Mar 2008 12:12:27 +0000 (12:12 +0000)]
Regen

16 years agoAdd the freebsd32 compatibility shims for the *at() syscalls.
kib [Mon, 31 Mar 2008 12:08:30 +0000 (12:08 +0000)]
Add the freebsd32 compatibility shims for the *at() syscalls.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the openat(), fexecve() and other *at() syscalls to the table.
kib [Mon, 31 Mar 2008 12:06:55 +0000 (12:06 +0000)]
Add the openat(), fexecve() and other *at() syscalls to the table.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImplement the fexecve(2) syscall.
kib [Mon, 31 Mar 2008 12:05:52 +0000 (12:05 +0000)]
Implement the fexecve(2) syscall.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImplement the
kib [Mon, 31 Mar 2008 12:04:20 +0000 (12:04 +0000)]
Implement the
openat(2), faccessat(2), fchmodat(2), fchownat(2), fstatat(2),
futimesat(2), linkat(2), mkdirat(2), mkfifoat(2), mknodat(2),
readlinkat(2), renameat(2), symlinkat(2)
syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the support for the AT_FDCWD and fd-relative name lookups to the
kib [Mon, 31 Mar 2008 12:01:21 +0000 (12:01 +0000)]
Add the support for the AT_FDCWD and fd-relative name lookups to the
namei(9).

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the support for the O_EXEC open(2) mode, as specified by the
kib [Mon, 31 Mar 2008 11:57:18 +0000 (11:57 +0000)]
Add the support for the O_EXEC open(2) mode, as specified by the
POSIX Extended API Set Part 2 extension specification.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the constant definition needed by the implementation of the
kib [Mon, 31 Mar 2008 11:55:10 +0000 (11:55 +0000)]
Add the constant definition needed by the implementation of the
openat() and the related syscalls.

Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoAdd the utility function vn_commname() to retrieve the command name
kib [Mon, 31 Mar 2008 11:53:03 +0000 (11:53 +0000)]
Add the utility function vn_commname() to retrieve the command name
from the vfs namecache, when available.

Reviewed by: rwatson, rdivacky
Tested by: pho

16 years agoImprove some quotes of Chinggis Khan.
ganbold [Mon, 31 Mar 2008 10:28:09 +0000 (10:28 +0000)]
Improve some quotes of Chinggis Khan.
Remove militant and moralized quotes of Chinggis Khan.
Add one more quote of Chinggis Khan.

Reviewed by: yar
Approved by: keramida(mentor)