aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/isa/npx.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2003-04-04 17:29:55 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2003-04-04 17:29:55 +0000
commit9f45b2da8fa08638581fa4a54d6fbd91b8a55362 (patch)
tree78ef428aa1a0daeb9af91f6945cf0b45f53f3207 /sys/i386/isa/npx.c
parenta12b1b124a66a06305dae7f6ba09ae38c3608c38 (diff)
downloadsrc-9f45b2da8fa08638581fa4a54d6fbd91b8a55362.tar.gz
src-9f45b2da8fa08638581fa4a54d6fbd91b8a55362.zip
Define ovbcopy() as a macro which expands to the equivalent bcopy() call,
to take care of the KAME IPv6 code which needs ovbcopy() because NetBSD's bcopy() doesn't handle overlap like ours. Remove all implementations of ovbcopy(). Previously, bzero was a function pointer on i386, to save a jmp to bzero_vector. Get rid of this microoptimization as it only confuses things, adds machine-dependent code to an MD header, and doesn't really save all that much. This commit does not add my pagezero() / pagecopy() code.
Notes
Notes: svn path=/head/; revision=113090
Diffstat (limited to 'sys/i386/isa/npx.c')
-rw-r--r--sys/i386/isa/npx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c
index 9d11e9e6d1e6..8dadb6bcc9c3 100644
--- a/sys/i386/isa/npx.c
+++ b/sys/i386/isa/npx.c
@@ -507,12 +507,10 @@ npx_attach(dev)
if (cpu_class == CPUCLASS_586 && npx_ex16 && npx_exists &&
timezero("i586_bzero()", i586_bzero) <
timezero("bzero()", bzero) * 4 / 5) {
- if (!(flags & NPX_DISABLE_I586_OPTIMIZED_BCOPY)) {
+ if (!(flags & NPX_DISABLE_I586_OPTIMIZED_BCOPY))
bcopy_vector = i586_bcopy;
- ovbcopy_vector = i586_bcopy;
- }
if (!(flags & NPX_DISABLE_I586_OPTIMIZED_BZERO))
- bzero = i586_bzero;
+ bzero_vector = i586_bzero;
if (!(flags & NPX_DISABLE_I586_OPTIMIZED_COPYIO)) {
copyin_vector = i586_copyin;
copyout_vector = i586_copyout;