mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Linux IA32 microcode driver
@ 2001-12-22 12:58 Chris Rankin
  2001-12-22 18:53 ` Ben Clifford
  2001-12-23  9:34 ` Tigran Aivazian
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Rankin @ 2001-12-22 12:58 UTC (permalink / raw)
  To: tigran; +Cc: linux-kernel

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");

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-12-23  9:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-22 12:58 Linux IA32 microcode driver Chris Rankin
2001-12-22 18:53 ` Ben Clifford
2001-12-23  1:38   ` Chris Rankin
2001-12-23  9:34 ` Tigran Aivazian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®