diff options
author | dzwdz | 2022-04-14 12:24:13 +0200 |
---|---|---|
committer | dzwdz | 2022-04-14 12:24:13 +0200 |
commit | 18d757e1b4939b24031935a6db59aefee4669e68 (patch) | |
tree | 40d06987d1a599132ed681325c07a234a010edd2 /src/kernel/vfs/root.c | |
parent | 2eead2f6eab2aa1fbc727ce28d9fa9a8e90a1eec (diff) |
kernel/root: don't panic on writes to `/ps2`
Diffstat (limited to 'src/kernel/vfs/root.c')
-rw-r--r-- | src/kernel/vfs/root.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c index 14f9a01..4e49c3c 100644 --- a/src/kernel/vfs/root.c +++ b/src/kernel/vfs/root.c @@ -147,7 +147,6 @@ static int handle(struct vfs_request *req, bool *ready) { case VFSOP_WRITE: switch (req->id) { - case HANDLE_ROOT: return -1; case HANDLE_VGA: { void *vga = (void*)0xB8000; req_preprocess(req, 80*25*2); @@ -163,9 +162,7 @@ static int handle(struct vfs_request *req, bool *ready) { serial_write(iter.frag, iter.frag_len); return iter.prior; } - case HANDLE_ATA_ROOT: return -1; - // TODO don't panic on ps2 reads - default: panic_invalid_state(); + default: return -1; } default: panic_invalid_state(); |