summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-28 06:03:27 +0000
committerkan <kan@FreeBSD.org>2004-07-28 06:03:27 +0000
commit908c4ab7094e1882ec22a2f3e41699e24c4a4057 (patch)
treed3435fefbef90f7bf3bee3498cb584feddc80685 /sys/boot
parent75991fc0edfa37dbd62560c4336c08c1cec76d04 (diff)
downloadFreeBSD-src-908c4ab7094e1882ec22a2f3e41699e24c4a4057.zip
FreeBSD-src-908c4ab7094e1882ec22a2f3e41699e24c4a4057.tar.gz
Define our own memcpy here instead of relying on GCC to provide one.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/boot2/boot2.c4
-rw-r--r--sys/boot/i386/gptboot/gptboot.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c
index 9c81d92..a1c4620 100644
--- a/sys/boot/i386/boot2/boot2.c
+++ b/sys/boot/i386/boot2/boot2.c
@@ -139,9 +139,6 @@ static int xputc(int);
static int xgetc(int);
static int getc(int);
-#if defined(__GNUC__) || defined(__INTEL_COMPILER)
-#define memcpy __builtin_memcpy
-#else
static void memcpy(char *, const char *, int);
static void
memcpy(char *dst, const char *src, int len)
@@ -149,7 +146,6 @@ memcpy(char *dst, const char *src, int len)
while (len--)
*dst++ = *src++;
}
-#endif
static inline int
strcmp(const char *s1, const char *s2)
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index 9c81d92..a1c4620 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -139,9 +139,6 @@ static int xputc(int);
static int xgetc(int);
static int getc(int);
-#if defined(__GNUC__) || defined(__INTEL_COMPILER)
-#define memcpy __builtin_memcpy
-#else
static void memcpy(char *, const char *, int);
static void
memcpy(char *dst, const char *src, int len)
@@ -149,7 +146,6 @@ memcpy(char *dst, const char *src, int len)
while (len--)
*dst++ = *src++;
}
-#endif
static inline int
strcmp(const char *s1, const char *s2)
OpenPOWER on IntegriCloud