summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-04-04 17:29:55 +0000
committerdes <des@FreeBSD.org>2003-04-04 17:29:55 +0000
commit5468286a89667ccea8bf58047707fe6b3b58f8a5 (patch)
tree78ef428aa1a0daeb9af91f6945cf0b45f53f3207 /sys/amd64/include
parent01bed5d97bf4b3317c245d345ff0713026246566 (diff)
downloadFreeBSD-src-5468286a89667ccea8bf58047707fe6b3b58f8a5.zip
FreeBSD-src-5468286a89667ccea8bf58047707fe6b3b58f8a5.tar.gz
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.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/md_var.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h
index 6bcecff..bf3eca4 100644
--- a/sys/amd64/include/md_var.h
+++ b/sys/amd64/include/md_var.h
@@ -36,12 +36,14 @@
* Miscellaneous machine-dependent declarations.
*/
-extern long Maxmem;
-extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
extern void (*bcopy_vector)(const void *from, void *to, size_t len);
-extern int busdma_swi_pending;
+extern void (*bzero_vector)(void *buf, size_t len);
extern int (*copyin_vector)(const void *udaddr, void *kaddr, size_t len);
extern int (*copyout_vector)(const void *kaddr, void *udaddr, size_t len);
+
+extern long Maxmem;
+extern u_int atdevbase; /* offset in virtual memory of ISA io mem */
+extern int busdma_swi_pending;
extern u_int cpu_exthigh;
extern u_int cpu_feature;
extern u_int cpu_fxsr;
@@ -56,7 +58,6 @@ extern char kstack[];
extern int need_pre_dma_flush;
extern int need_post_dma_flush;
#endif
-extern void (*ovbcopy_vector)(const void *from, void *to, size_t len);
extern char sigcode[];
extern int szsigcode;
#ifdef COMPAT_FREEBSD4
OpenPOWER on IntegriCloud