From 7cbccd7f797a7c2838b8c09f4c5435d78011d0c5 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 5 Jun 2002 11:56:12 +0000 Subject: [PATCH] Avoid entering IOCCC with a memcpy turned bcopy. --- sys/boot/sparc64/boot1/boot1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/boot/sparc64/boot1/boot1.c b/sys/boot/sparc64/boot1/boot1.c index 2760e3c47975..872af75c3370 100644 --- a/sys/boot/sparc64/boot1/boot1.c +++ b/sys/boot/sparc64/boot1/boot1.c @@ -296,13 +296,13 @@ ofw_exit(void) } static void -bcopy(const void *dst, void *src, size_t len) +bcopy(const void *src, void *dst, size_t len) { - const char *d = dst; - char *s = src; + const char *s = src; + char *d = dst; while (len-- != 0) - *s++ = *d++; + *d++ = *s++; } static void