diff options
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: |