diff options
Diffstat (limited to 'src/kernel/arch/amd64/32/util.c')
-rw-r--r-- | src/kernel/arch/amd64/32/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/arch/amd64/32/util.c b/src/kernel/arch/amd64/32/util.c new file mode 100644 index 0000000..7915168 --- /dev/null +++ b/src/kernel/arch/amd64/32/util.c @@ -0,0 +1,8 @@ +#include <kernel/arch/amd64/32/util.h> + +void *memset32(void *s, int c, size_t n) { + unsigned char *s2 = s; + for (size_t i = 0; i < n; i++) + s2[i] = c; + return s; +} |