/* These simple memset/memcpy alternatives are necessary as the optimized ones depend on the MMU to be active (see commit c5b898743a20).  */
void z_early_memset(void *dst, int c, size_t n)
/* These simple memset/memcpy alternatives are necessary as the optimized ones depend on the MMU to be active (see commit c5b898743a20).  */
void z_early_memset(void *dst, int c, size_t n)
{
	uint8_t *d = dst;
	while (n--) {
		*d++ = c;
	}
}