> 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 13:17:25 up 8 days, 16:02, 1 user, load average: 0.11, 0.12, 0.09
This commit is contained in:
@ -35,9 +35,9 @@ static Finfo file_table[] __attribute__((used)) = {
|
|||||||
[FD_STDERR] = {"stderr", 0, 0, invalid_read, serial_write},
|
[FD_STDERR] = {"stderr", 0, 0, invalid_read, serial_write},
|
||||||
[FD_DEV_EVENTS] = {"/dev/events", 0, 0, events_read, invalid_write},
|
[FD_DEV_EVENTS] = {"/dev/events", 0, 0, events_read, invalid_write},
|
||||||
[FD_DEV_FB] = {"/dev/fb", 0, 0, invalid_read, fb_write},
|
[FD_DEV_FB] = {"/dev/fb", 0, 0, invalid_read, fb_write},
|
||||||
[FD_PROC_DISPINFO] = {"/proc/dispinfo", 0, 0, dispinfo_read, invalid_write},
|
|
||||||
[FD_DEV_SB] = {"/dev/sb", 0, 0, invalid_read, sb_write},
|
[FD_DEV_SB] = {"/dev/sb", 0, 0, invalid_read, sb_write},
|
||||||
[FD_DEV_SBCTL] = {"/dev/sbctl", 0, 0, sbctl_read, sbctl_write},
|
[FD_DEV_SBCTL] = {"/dev/sbctl", 0, 0, sbctl_read, sbctl_write},
|
||||||
|
[FD_PROC_DISPINFO] = {"/proc/dispinfo", 0, 0, dispinfo_read, invalid_write},
|
||||||
#include "files.h"
|
#include "files.h"
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ int fs_open(const char *pathname, int flags, int mode) {
|
|||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// panic_all_on(0, "No such file or directory");
|
panic_all_on(0, "No such file or directory");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user