zx128: switch to level 0, get building ok
authorAlan Cox <alan@linux.intel.com>
Sat, 12 Aug 2017 18:47:20 +0000 (19:47 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 12 Aug 2017 18:47:20 +0000 (19:47 +0100)
Kernel/platform-zx128/config.h
Kernel/platform-zx128/main.c

index 5e65c1f..90470d8 100644 (file)
@@ -1,3 +1,5 @@
+#define CONFIG_LEVEL_0
+
 #define CONFIG_IDE
 //#define CONFIG_BETADISK
 
index 0e9899f..41d6f39 100644 (file)
@@ -45,6 +45,15 @@ void map_init(void)
 {
 }
 
+size_t strlcpy(char *dst, const char *src, size_t dstsize)
+{
+  size_t len = strlen(src);
+  size_t cp = len >= dstsize ? dstsize - 1 : len;
+  memcpy(dst, src, cp);
+  dst[cp] = 0;
+  return len;
+}
+
 #ifndef SWAPDEV
 /* Adding dummy swapper since it is referenced by tricks.s */
 void swapper(ptptr p)