From 443d4c79db92655835da08be5d6e654b5189145b Mon Sep 17 00:00:00 2001 From: tracer-ics2023 Date: Fri, 27 Sep 2024 13:17:25 +0800 Subject: [PATCH] =?UTF-8?q?>=20=20compile=20NEMU=20221220000=20=E5=BC=A0?= =?UTF-8?q?=E4=B8=89=20Linux=20zzy=205.15.146.1-microsoft-standard-WSL2=20?= =?UTF-8?q?#1=20SMP=20Thu=20Jan=2011=2004:09:03=20UTC=202024=20x86=5F64=20?= =?UTF-8?q?x86=5F64=20x86=5F64=20GNU/Linux=20=2013:17:25=20up=208=20days,?= =?UTF-8?q?=2016:02,=20=201=20user,=20=20load=20average:=200.11,=200.12,?= =?UTF-8?q?=200.09?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nanos-lite/src/fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nanos-lite/src/fs.c b/nanos-lite/src/fs.c index 9c2bfaa..f4cd2a9 100644 --- a/nanos-lite/src/fs.c +++ b/nanos-lite/src/fs.c @@ -35,9 +35,9 @@ static Finfo file_table[] __attribute__((used)) = { [FD_STDERR] = {"stderr", 0, 0, invalid_read, serial_write}, [FD_DEV_EVENTS] = {"/dev/events", 0, 0, events_read, invalid_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_SBCTL] = {"/dev/sbctl", 0, 0, sbctl_read, sbctl_write}, + [FD_PROC_DISPINFO] = {"/proc/dispinfo", 0, 0, dispinfo_read, invalid_write}, #include "files.h" }; @@ -49,7 +49,7 @@ int fs_open(const char *pathname, int flags, int mode) { return fd; } } - // panic_all_on(0, "No such file or directory"); + panic_all_on(0, "No such file or directory"); return -1; }