> 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 22:09:55 up 6 days, 17:15, 1 user, load average: 1.11, 1.04, 1.05
This commit is contained in:
@ -8,8 +8,7 @@ size_t _write(int fd, const void *buf, size_t count) {
|
||||
for (size_t i = 0; i < count; i++) {
|
||||
putch(((const char*)buf)[i]);
|
||||
}
|
||||
printf("%d", count);
|
||||
return count;
|
||||
return 0;
|
||||
}
|
||||
|
||||
void _sbrk(intptr_t increment) {
|
||||
@ -30,5 +29,4 @@ void do_syscall(Context *c) {
|
||||
case SYS_exit: halt(0); break;
|
||||
default: panic("Unhandled syscall ID = %d", a[0]);
|
||||
}
|
||||
printf("syscall %d done, ret = 0x%x\n", a[0], c->GPRx);
|
||||
}
|
||||
|
Reference in New Issue
Block a user