|
@@ -28,7 +28,7 @@ static unsigned long free_mem_ptr;
|
|
static unsigned long free_mem_end_ptr;
|
|
static unsigned long free_mem_end_ptr;
|
|
|
|
|
|
#ifdef CONFIG_KERNEL_BZIP2
|
|
#ifdef CONFIG_KERNEL_BZIP2
|
|
-static void *memset(void *s, int c, size_t n)
|
|
|
|
|
|
+void *memset(void *s, int c, size_t n)
|
|
{
|
|
{
|
|
char *ss = s;
|
|
char *ss = s;
|
|
|
|
|
|
@@ -39,6 +39,16 @@ static void *memset(void *s, int c, size_t n)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_KERNEL_GZIP
|
|
#ifdef CONFIG_KERNEL_GZIP
|
|
|
|
+void *memcpy(void *dest, const void *src, size_t n)
|
|
|
|
+{
|
|
|
|
+ char *d = dest;
|
|
|
|
+ const char *s = src;
|
|
|
|
+ while (n--)
|
|
|
|
+ *d++ = *s++;
|
|
|
|
+
|
|
|
|
+ return dest;
|
|
|
|
+}
|
|
|
|
+
|
|
#define BOOT_HEAP_SIZE 0x10000
|
|
#define BOOT_HEAP_SIZE 0x10000
|
|
#include "../../../../lib/decompress_inflate.c"
|
|
#include "../../../../lib/decompress_inflate.c"
|
|
#endif
|
|
#endif
|