diff options
author | dzwdz | 2023-09-09 16:54:13 +0200 |
---|---|---|
committer | dzwdz | 2023-09-09 16:54:13 +0200 |
commit | 4516acc2814de7e1420109a9469600a5607eb984 (patch) | |
tree | f528afa2d2158c1d06ee203926e8c06251642868 /src/kernel/arch/amd64/driver/ps2.c | |
parent | b7e5252ab4955039ca548d7f8216bfc432a3bd62 (diff) |
kernel: build /kdev/ on the fly
Diffstat (limited to 'src/kernel/arch/amd64/driver/ps2.c')
-rw-r--r-- | src/kernel/arch/amd64/driver/ps2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/arch/amd64/driver/ps2.c b/src/kernel/arch/amd64/driver/ps2.c index e314477..f2a98a2 100644 --- a/src/kernel/arch/amd64/driver/ps2.c +++ b/src/kernel/arch/amd64/driver/ps2.c @@ -58,7 +58,7 @@ void ps2_init(void) { irq_fn[IRQ_PS2KB] = ps2_irq; irq_fn[IRQ_PS2MOUSE] = ps2_irq; - vfs_root_register("/kdev/ps2", accept); + vfs_root_register("/kdev/ps2/", accept); } static void ps2_irq(void) { @@ -86,10 +86,10 @@ static void accept(VfsReq *req) { int ret; switch (req->type) { case VFSOP_OPEN: - if (reqpathcmp(req, "/")) ret = H_ROOT; - else if (reqpathcmp(req, "/kb")) ret = H_KB; - else if (reqpathcmp(req, "/mouse")) ret = H_MOUSE; - else ret = -ENOENT; + if (reqpathcmp(req, "")) ret = H_ROOT; + else if (reqpathcmp(req, "kb")) ret = H_KB; + else if (reqpathcmp(req, "mouse")) ret = H_MOUSE; + else ret = -ENOENT; vfsreq_finish_short(req, ret); break; case VFSOP_READ: |