aboutsummaryrefslogtreecommitdiff
path: root/src/arm/PL1/kernel/ramfs.c
diff options
context:
space:
mode:
authorvetch <vetch97@gmail.com>2020-01-18 19:13:17 +0100
committervetch <vetch97@gmail.com>2020-01-18 19:13:17 +0100
commitf540834c09905f848139371005d077577eabdd57 (patch)
tree7420a43e63be72a0c860f325ea65aed603aee65f /src/arm/PL1/kernel/ramfs.c
parentdfd6177fea6769a0e7dcd2d2205e5a795bba3553 (diff)
parentf5c83b679ced1d1900613e049c31ad56cf903c1e (diff)
downloadrpi-MMU-example-f540834c09905f848139371005d077577eabdd57.tar.gz
rpi-MMU-example-f540834c09905f848139371005d077577eabdd57.zip
Merge branch 'bob' of https://repo.or.cz/RPi-MMU-example into alice
Diffstat (limited to 'src/arm/PL1/kernel/ramfs.c')
-rw-r--r--src/arm/PL1/kernel/ramfs.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/arm/PL1/kernel/ramfs.c b/src/arm/PL1/kernel/ramfs.c
index cc66b4c..ed3ff73 100644
--- a/src/arm/PL1/kernel/ramfs.c
+++ b/src/arm/PL1/kernel/ramfs.c
@@ -3,32 +3,7 @@
#include <stdint.h>
#include "ramfs.h"
-
-static int strcmp(char const *str1, char const *str2)
-{
- while (1)
- {
- int c1 = (unsigned char) *str1, c2 = (unsigned char) *str2;
-
- if (!c1 && !c2)
- return 0;
-
- if (c1 != c2)
- return c1 - c2;
-
- str1++; str2++;
- }
-}
-
-static uint32_t strlen(char const *str1)
-{
- uint32_t len = 0;
-
- while (str1[len])
- len++;
-
- return len;
-}
+#include "strings.h"
static inline char *align4(char *addr)
{