Browse Source

portio: /dev/port is a block device, not a character device (it support seek)

K. Lange 1 year ago
parent
commit
c75d31d7ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/portio.c

+ 1 - 1
modules/portio.c

@@ -61,7 +61,7 @@ static fs_node_t * port_device_create(void) {
 	fnode->uid = 0;
 	fnode->gid = 0;
 	fnode->mask = 0660;
-	fnode->flags   = FS_CHARDEVICE;
+	fnode->flags   = FS_BLOCKDEVICE;
 	fnode->read    = read_port;
 	fnode->write   = write_port;
 	fnode->open    = NULL;