RE: Reading BIOS information from a kernel driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>-----Original Message-----
>From: [email protected] 
>[mailto:[email protected]] On Behalf Of 
>Steven Schveighoffer
>Sent: Wednesday, November 09, 2005 12:36 PM
>To: [email protected]
>Subject: Reading BIOS information from a kernel driver
>
>I am trying to read a string that the BIOS has placed into memory.
>
>The BIOS placed the string into memory at real-mode address F000:FA00
>(i.e. physical address FFA00h).
>
>1. Is there a linear address which always contains this address
>location?  i.e. if there is a spot where I can do:
>
>char * mystring = (char *)0xMagicAddress;
>
>2. If not, how do I map a linear address to this physical address so I
>can read it?
>
>I'm pretty sure that the string can be read, but I would prefer to know
>exactly where the string is located before looking.  For example, the
>following command finds the string:
>
>dd if=/proc/kcore bs=1024 count=3000 | grep mystring
>
>-Steve

I think you are looking for phys_to_virt(0xffa00)

Aleks.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux