Move generic start code and memset into arch/generic.h

This commit is contained in:
2025-05-02 11:36:05 -04:00
parent ab5dd8d9fb
commit d47709b03c
7 changed files with 40 additions and 25 deletions

9
sys.h
View File

@@ -142,11 +142,6 @@ int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, stru
uint32_t fork();
// Provide memset for clang
// TODO: move this (and start code?) to separate .c file
void *memset(void* s, int c, unsigned long n) {
int8_t* mem = s;
for(long int i = 0; i < n; ++i) mem[i] = c;
return s;
}
void *memset(void* s, int c, unsigned long n);
#endif // !MINIMALSYS_H