lkml.org 
[lkml]   [1999]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: physical memory access
root wrote:
>
> I wrote some information on the bios flash unused space using an eprom
> programmer.
> I know it's very dangerous but I can not do otherwise, and the bios
> seems not to complain
> about that.
> Actually my system is still working after replacing the flash but I
> can't read the things I wrote.
> I can reference only vitrual memory because I can't bypass memory paging
>
> (even using a kernel module).
> Is it possible to disable paging? Has anyone ever heard of a C function
>
> that stops paging or able to
> access actual physical addresses? Or is there a different way to do
> things?
>
> Thanks in advance.

Physical memory is 1:1 mapped at PAGE_OFFSET (normally 0xc000000 on the
x86). Just add PAGE_OFFSET to the address you really want to read.

--

Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.023 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site