Linux IA32 microcode driver

From: Chris Rankin (rankincj@yahoo.com)
Date: Sat Dec 22 2001 - 07:58:18 EST


Hi,

Am I missing something rather obvious, or is the /dev/cpu/microcode
device being mis-created under devfs with Linux 2.4.x? I have enclosed
a patch to ensure that the character device really *is* a character
device.

Cheers,
Chris

--- linux-2.4.17/arch/i386/kernel/microcode.c.orig Sat Dec 22 12:37:07 2001
+++ linux-2.4.17/arch/i386/kernel/microcode.c Sat Dec 22 12:43:10 2001
@@ -125,7 +125,7 @@
                         MICROCODE_MINOR);
 
         devfs_handle = devfs_register(NULL, "cpu/microcode",
- DEVFS_FL_DEFAULT, 0, 0, S_IFREG | S_IRUSR | S_IWUSR,
+ DEVFS_FL_DEFAULT, 0, 0, S_IFCHR | S_IRUSR | S_IWUSR,
                         &microcode_fops, NULL);
         if (devfs_handle == NULL && error) {
                 printk(KERN_ERR "microcode: failed to devfs_register()\n");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Dec 23 2001 - 21:00:27 EST