> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 12:27:04 up 51 min,  1 user,  load average: 1.48, 1.22, 0.63
This commit is contained in:
tracer-ics2023
2024-09-05 12:27:05 +08:00
committed by zzy
parent ba674289e9
commit 9e183078ea

View File

@ -58,7 +58,12 @@ void *memset(void *s, int c, size_t n) {
}
void *memmove(void *dst, const void *src, size_t n) {
panic("Not immpliment");
unsigned char* _dst = (unsigned char*)dst;
const unsigned char* _src = (const unsigned char*)src;
const unsigned char* _dst_end = _dst + n;
const unsigned char* _src_end = _src + n;
if (_src < _dst_end && _src + n > _dst) {
})
}
void *memcpy(void *out, const void *in, size_t n) {