Make kbd+mouse appear as character devices
This commit is contained in:
parent
e5aa49beda
commit
93ec0cf0d0
@ -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 */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user