On 15/08/07 18:28 +0200, Stefan Reinauer wrote:
Ingmar Schraub wrote:
Peter Stuge wrote:
enable_flash_geodelx() yes.
Please send a patch! Check out http://linuxbios.org/Development_Guidelines
Please have a look at the attached patch.
I've tested it first with a bunch of printf lines in between the read/write steps and it looked good. The 'production' version comes without the printfs, but with some sanity testing which works fine here.
Hm I wonder whether it might make sense to use asm("rdmsr") instead of /dev/... so that it will work on non-linux systems as well?
the rdmsr instruction won't work in ring 3, unfortunately. There is a way to access the MSRs through a VSA virtual register, but I'm loath to mention it, because it makes me feel all icky.
Jordan