diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-01-18 21:54:02 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-01-18 21:54:02 +0000 |
commit | 9301dd7f8180891aaee40f7f5f3dab29a4749701 (patch) | |
tree | 27edb49ac4772d05e0e458635e289ce03f661e36 /sys/boot/alpha | |
parent | 07f0b1750cec764a2781c860fde5fde39e93eade (diff) | |
download | FreeBSD-src-9301dd7f8180891aaee40f7f5f3dab29a4749701.zip FreeBSD-src-9301dd7f8180891aaee40f7f5f3dab29a4749701.tar.gz |
Cut more than 500 bytes off the size of the alpha boot1 by adding
a simple version of bcopy() so we avoid picking up the overly-complex
implementation in libc (via libstand). This is not necessary on
-current, but RELENG_4 has apparently just exceeded the 15-sector
limit for boot1.
Reviewed by: wilko
Diffstat (limited to 'sys/boot/alpha')
-rw-r--r-- | sys/boot/alpha/boot1/sys.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/boot/alpha/boot1/sys.c b/sys/boot/alpha/boot1/sys.c index ad05523..6181604 100644 --- a/sys/boot/alpha/boot1/sys.c +++ b/sys/boot/alpha/boot1/sys.c @@ -244,3 +244,13 @@ openrd(char *name) poff = 0; return 0; } + +void +bcopy(const void *src, void *dst, size_t len) +{ + const char *s; + char *d; + + for (d = dst, s = src; len; len--) + *d++ = *s++; +} |