Make kbd+mouse appear as character devices

This commit is contained in:
Kevin Lange 2014-03-16 21:50:04 -07:00
parent e5aa49beda
commit 93ec0cf0d0
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,8 @@ static int keyboard_install(void) {
keyboard_pipe = make_pipe(128);
current_process->fds->entries[0] = keyboard_pipe;
keyboard_pipe->flags = FS_CHARDEVICE;
vfs_mount("/dev/kbd", keyboard_pipe);
/* Install the interrupt handler */

View File

@ -137,6 +137,8 @@ static int mouse_install(void) {
outportb(0x61, tmp & 0x7F);
inportb(MOUSE_PORT);
mouse_pipe->flags = FS_CHARDEVICE;
vfs_mount("/dev/mouse", mouse_pipe);
return 0;
}