From 5d34fa2a489940f19ee6c4728e4b11b6d8ffad01 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Fri, 31 May 2019 11:45:42 -0400 Subject: -initrd fs.img, ramdisk.c, file system --- ulib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ulib.c') diff --git a/ulib.c b/ulib.c index 8e1e1a2..532fe42 100644 --- a/ulib.c +++ b/ulib.c @@ -2,7 +2,6 @@ #include "stat.h" #include "fcntl.h" #include "user.h" -#include "x86.h" char* strcpy(char *s, const char *t) @@ -36,7 +35,11 @@ strlen(const char *s) void* memset(void *dst, int c, uint n) { - stosb(dst, c, n); + char *cdst = (char *) dst; + int i; + for(i = 0; i < n; i++){ + cdst[i] = c; + } return dst; } -- cgit v1.2.3