This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Sat May 11 16:13:07 2024 Received: from spaans.ds9a.nl (adsl-xs4all.ds9a.nl [213.84.159.51]) by kylie.puddingonline.com (8.11.6/8.11.6) with SMTP id g8IIIZX22272 for ; Wed, 18 Sep 2002 20:18:35 +0200 From: devnull@spaans.ds9a.nl Received: (qmail 28710 invoked from network); 18 Sep 2002 06:32:15 -0000 Received: from unknown (HELO spaans.ds9a.nl) (3ffe:8280:10:360:202:44ff:fe2a:a1dd) by mayo.ipv6.ds9a.nl with SMTP; 18 Sep 2002 06:32:15 -0000 Received: (qmail 27238 invoked by uid 1000); 17 Sep 2002 19:59:33 -0000 Received: (maildatabase); juh Received: (qmail 5912 invoked by alias); 24 Jan 2001 06:26:30 -0000 Received: (qmail 5909 invoked from network); 24 Jan 2001 06:26:30 -0000 Received: from server.ds9a.tudelft.nl (HELO home.ds9a.nl) (10.0.0.1) by spaans.ds9a.nl with SMTP; 24 Jan 2001 06:26:30 -0000 Received: (qmail 26355 invoked by uid 0); 24 Jan 2001 06:18:58 -0000 Received: from vger.kernel.org (199.183.24.194) by home.ds9a.nl with SMTP; 24 Jan 2001 06:18:58 -0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jan 2001 00:25:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jan 2001 00:25:49 -0500 Received: from casablanca.magic.fr ([195.154.101.81]:64724 "EHLO casablanca.magic.fr") by vger.kernel.org with ESMTP id ; Wed, 24 Jan 2001 00:25:30 -0500 Received: from magic.fr ([195.154.17.113]) by casablanca.magic.fr (8.9.3/8.9.3) with ESMTP id GAA18004; Wed, 24 Jan 2001 06:25:25 +0100 (CET) Message-Id: <3A6E6803.943E7033@magic.fr> Date: Wed, 24 Jan 2001 06:28:35 +0100 Reply-To: l_indien@magic.fr, jma@netgem.com Organization: Les grandes plaines X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.1-pre10 i586) X-Accept-Language: fr-FR, fr, en, en-GB, en-US, ro Mime-Version: 1.0 To: tigran@sco.com Cc: "linux-kernel@vger.kernel.org" Subject: A little patch for i386/kernel/microcode.c Content-Type: text/plain; charset=iso-8859-1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by kylie.puddingonline.com id g8IIIZX22272 With a 2.4.1-pre10 kernel, I noticed that /dev/cpu/microcode was created as a file, and note as a node in the devfs. So, I made this very little patch to correct this: --- microcode.c Thu Dec 28 06:28:29 2000 +++ microcode.c Wed Jan 24 04:47:08 2001 @@ -120,7 +120,7 @@ MICROCODE_MINOR); devfs_handle = devfs_register(NULL, "cpu/microcode", - DEVFS_FL_DEFAULT, 0, 0, S_IFREG | S_IRUSR | S_IWUSR, + DEVFS_FL_DEFAULT, MISC_MAJOR, MICROCODE_MINOR, S_IFCHR | S_IRUSR | S_IWUSR, µcode_fops, NULL); if (devfs_handle == NULL && error) { printk(KERN_ERR "microcode: failed to devfs_register()\n"); This should be OK... I cannot test this feature as I don't have a PIII, but a K6-II... I'll try... Just to know... I was wondering why /dev/cpu/mtrr was created as a file, not a node, when I found this... For mtrr, it seems to be normal, as I didn't find any informations relative of Major/Minor for this device... Regards. Jocelyn Mayer :.˛mkabzwmb˛mbz_^nrzh&zzޗ+^jǫym@Aa0n+d