diff options
author | asami <asami@FreeBSD.org> | 1996-11-08 02:38:44 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-11-08 02:38:44 +0000 |
commit | e068ad8a7ce81feb0b983362f0639b8912d8b541 (patch) | |
tree | 2aea3c0833b53b613d8719596be9f8ca4b083b3f /sys | |
parent | 81bba450d55e3806a87ae828093ee8d8328ccb96 (diff) | |
download | FreeBSD-src-e068ad8a7ce81feb0b983362f0639b8912d8b541.zip FreeBSD-src-e068ad8a7ce81feb0b983362f0639b8912d8b541.tar.gz |
Remove option I586_FAST_BCOPY. The code will be included by default
if I586_CPU is defined. Note there is a runtime check so the code
won't be run for non-Pentium CPUs anyway.
2.2 candidate, this code has been tested for almost half year in -current.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/support.S | 18 | ||||
-rw-r--r-- | sys/amd64/amd64/support.s | 18 | ||||
-rw-r--r-- | sys/conf/NOTES | 10 | ||||
-rw-r--r-- | sys/conf/options.i386 | 3 | ||||
-rw-r--r-- | sys/i386/conf/LINT | 10 | ||||
-rw-r--r-- | sys/i386/conf/NOTES | 10 | ||||
-rw-r--r-- | sys/i386/conf/options.i386 | 3 | ||||
-rw-r--r-- | sys/i386/i386/support.s | 18 |
8 files changed, 38 insertions, 52 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index b624623..5ea1334 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.40 1996/10/09 18:16:17 bde Exp $ + * $Id: support.s,v 1.41 1996/10/09 19:47:20 bde Exp $ */ #include "opt_cpu.h" @@ -691,7 +691,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ /* bcopy(%esi, %edi, %ebx) */ 3: movl %ebx,%ecx -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyout @@ -707,7 +707,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ ALIGN_TEXT slow_copyout: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ shrl $2,%ecx cld rep @@ -755,7 +755,7 @@ ENTRY(copyin) cmpl $VM_MAXUSER_ADDRESS,%edx ja copyin_fault -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyin @@ -771,7 +771,7 @@ ENTRY(copyin) ALIGN_TEXT slow_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ movb %cl,%al shrl $2,%ecx /* copy longword-wise */ cld @@ -782,10 +782,10 @@ slow_copyin: rep movsb -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) ALIGN_TEXT done_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ popl %edi popl %esi xorl %eax,%eax @@ -802,7 +802,7 @@ copyin_fault: movl $EFAULT,%eax ret -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) /* fastmove(src, dst, len) src in %esi dst in %edi @@ -956,7 +956,7 @@ fastmove_tail: movsb ret -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ /* * fu{byte,sword,word} : fetch a byte (sword, word) from user memory diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s index b624623..5ea1334 100644 --- a/sys/amd64/amd64/support.s +++ b/sys/amd64/amd64/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.40 1996/10/09 18:16:17 bde Exp $ + * $Id: support.s,v 1.41 1996/10/09 19:47:20 bde Exp $ */ #include "opt_cpu.h" @@ -691,7 +691,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ /* bcopy(%esi, %edi, %ebx) */ 3: movl %ebx,%ecx -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyout @@ -707,7 +707,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ ALIGN_TEXT slow_copyout: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ shrl $2,%ecx cld rep @@ -755,7 +755,7 @@ ENTRY(copyin) cmpl $VM_MAXUSER_ADDRESS,%edx ja copyin_fault -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyin @@ -771,7 +771,7 @@ ENTRY(copyin) ALIGN_TEXT slow_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ movb %cl,%al shrl $2,%ecx /* copy longword-wise */ cld @@ -782,10 +782,10 @@ slow_copyin: rep movsb -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) ALIGN_TEXT done_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ popl %edi popl %esi xorl %eax,%eax @@ -802,7 +802,7 @@ copyin_fault: movl $EFAULT,%eax ret -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) /* fastmove(src, dst, len) src in %esi dst in %edi @@ -956,7 +956,7 @@ fastmove_tail: movsb ret -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ /* * fu{byte,sword,word} : fetch a byte (sword, word) from user memory diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 34bd40b..c660e55 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -2,7 +2,7 @@ # LINT -- config file for checking all the sources, tries to pull in # as much of the source tree as it can. # -# $Id: LINT,v 1.286 1996/10/23 07:29:34 pst Exp $ +# $Id: LINT,v 1.287 1996/11/06 14:52:20 bde Exp $ # # NB: You probably don't want to try running a kernel built from this # file. Instead, you should start from GENERIC, and add options from @@ -73,18 +73,14 @@ options GPL_MATH_EMULATE #Support for x87 emulation via options FAILSAFE -# When this is set, copyin/copyout will use an unrolled loop using -# floating point registers. It makes copyin/copyout run 30-100% +# When this is set, bcopy() will use an unrolled loop using +# floating point registers. It makes bcopy() run 30-100% # faster on Pentiums and makes no difference or slower on non-Pentium # (including P6) systems. # # However, even when this is set, there is a run-time check for CPU # type so the routine will never be invoked for a wrong architecture. # It will become the default after some testing period. -options "I586_FAST_BCOPY" - -# This is like I586_FAST_BCOPY except it actually controls bcopy(). -# It is a separate option because the code for it is newer. options "I586_OPTIMIZED_BCOPY" # This is like I586_OPTIMIZED_BCOPY except it controls bzero(). diff --git a/sys/conf/options.i386 b/sys/conf/options.i386 index 872e019..ae73052 100644 --- a/sys/conf/options.i386 +++ b/sys/conf/options.i386 @@ -1,4 +1,4 @@ -# $Id: options.i386,v 1.26 1996/10/28 06:05:58 gibbs Exp $ +# $Id: options.i386,v 1.27 1996/11/02 02:25:22 pst Exp $ BOUNCEPAGES opt_bounce.h USER_LDT MATH_EMULATE opt_math_emulate.h @@ -42,7 +42,6 @@ I486_CPU opt_cpu.h I586_CPU opt_cpu.h I686_CPU opt_cpu.h -I586_FAST_BCOPY opt_temporary.h I586_OPTIMIZED_BCOPY opt_temporary.h I586_OPTIMIZED_BZERO opt_temporary.h diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT index 34bd40b..c660e55 100644 --- a/sys/i386/conf/LINT +++ b/sys/i386/conf/LINT @@ -2,7 +2,7 @@ # LINT -- config file for checking all the sources, tries to pull in # as much of the source tree as it can. # -# $Id: LINT,v 1.286 1996/10/23 07:29:34 pst Exp $ +# $Id: LINT,v 1.287 1996/11/06 14:52:20 bde Exp $ # # NB: You probably don't want to try running a kernel built from this # file. Instead, you should start from GENERIC, and add options from @@ -73,18 +73,14 @@ options GPL_MATH_EMULATE #Support for x87 emulation via options FAILSAFE -# When this is set, copyin/copyout will use an unrolled loop using -# floating point registers. It makes copyin/copyout run 30-100% +# When this is set, bcopy() will use an unrolled loop using +# floating point registers. It makes bcopy() run 30-100% # faster on Pentiums and makes no difference or slower on non-Pentium # (including P6) systems. # # However, even when this is set, there is a run-time check for CPU # type so the routine will never be invoked for a wrong architecture. # It will become the default after some testing period. -options "I586_FAST_BCOPY" - -# This is like I586_FAST_BCOPY except it actually controls bcopy(). -# It is a separate option because the code for it is newer. options "I586_OPTIMIZED_BCOPY" # This is like I586_OPTIMIZED_BCOPY except it controls bzero(). diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 34bd40b..c660e55 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -2,7 +2,7 @@ # LINT -- config file for checking all the sources, tries to pull in # as much of the source tree as it can. # -# $Id: LINT,v 1.286 1996/10/23 07:29:34 pst Exp $ +# $Id: LINT,v 1.287 1996/11/06 14:52:20 bde Exp $ # # NB: You probably don't want to try running a kernel built from this # file. Instead, you should start from GENERIC, and add options from @@ -73,18 +73,14 @@ options GPL_MATH_EMULATE #Support for x87 emulation via options FAILSAFE -# When this is set, copyin/copyout will use an unrolled loop using -# floating point registers. It makes copyin/copyout run 30-100% +# When this is set, bcopy() will use an unrolled loop using +# floating point registers. It makes bcopy() run 30-100% # faster on Pentiums and makes no difference or slower on non-Pentium # (including P6) systems. # # However, even when this is set, there is a run-time check for CPU # type so the routine will never be invoked for a wrong architecture. # It will become the default after some testing period. -options "I586_FAST_BCOPY" - -# This is like I586_FAST_BCOPY except it actually controls bcopy(). -# It is a separate option because the code for it is newer. options "I586_OPTIMIZED_BCOPY" # This is like I586_OPTIMIZED_BCOPY except it controls bzero(). diff --git a/sys/i386/conf/options.i386 b/sys/i386/conf/options.i386 index 872e019..ae73052 100644 --- a/sys/i386/conf/options.i386 +++ b/sys/i386/conf/options.i386 @@ -1,4 +1,4 @@ -# $Id: options.i386,v 1.26 1996/10/28 06:05:58 gibbs Exp $ +# $Id: options.i386,v 1.27 1996/11/02 02:25:22 pst Exp $ BOUNCEPAGES opt_bounce.h USER_LDT MATH_EMULATE opt_math_emulate.h @@ -42,7 +42,6 @@ I486_CPU opt_cpu.h I586_CPU opt_cpu.h I686_CPU opt_cpu.h -I586_FAST_BCOPY opt_temporary.h I586_OPTIMIZED_BCOPY opt_temporary.h I586_OPTIMIZED_BZERO opt_temporary.h diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index b624623..5ea1334 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.40 1996/10/09 18:16:17 bde Exp $ + * $Id: support.s,v 1.41 1996/10/09 19:47:20 bde Exp $ */ #include "opt_cpu.h" @@ -691,7 +691,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ /* bcopy(%esi, %edi, %ebx) */ 3: movl %ebx,%ecx -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyout @@ -707,7 +707,7 @@ ENTRY(copyout) /* copyout(from_kernel, to_user, len) */ ALIGN_TEXT slow_copyout: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ shrl $2,%ecx cld rep @@ -755,7 +755,7 @@ ENTRY(copyin) cmpl $VM_MAXUSER_ADDRESS,%edx ja copyin_fault -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) cmpl $1024,%ecx jb slow_copyin @@ -771,7 +771,7 @@ ENTRY(copyin) ALIGN_TEXT slow_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ movb %cl,%al shrl $2,%ecx /* copy longword-wise */ cld @@ -782,10 +782,10 @@ slow_copyin: rep movsb -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) ALIGN_TEXT done_copyin: -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ popl %edi popl %esi xorl %eax,%eax @@ -802,7 +802,7 @@ copyin_fault: movl $EFAULT,%eax ret -#if defined(I586_CPU) && defined(I586_FAST_BCOPY) +#if defined(I586_CPU) /* fastmove(src, dst, len) src in %esi dst in %edi @@ -956,7 +956,7 @@ fastmove_tail: movsb ret -#endif /* I586_CPU && I586_FAST_BCOPY */ +#endif /* I586_CPU */ /* * fu{byte,sword,word} : fetch a byte (sword, word) from user memory |