Skip to contentSkip to conversation

Probing for (non-existing) memory?

DISCUSSION Wolfgang Denk 2 participants 2 messages Oct 21, 1999

lore
Share & tools
lore
#0 lore raw

Hi,

please excuse the silly question: is there a standard way to probe an address if it is readable/writable memory? Ideally something that is portable across all architectures?

[For those familiar with LynxOS: what I'm looking for is something like recoset() / noreco().]

Thanks in advance,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [email protected]
"Never give in.  Never give in.  Never. Never. Never."
- Winston Churchill

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
#1 lore raw
Quoted 3 lines · Wolfgang Denk

please excuse the silly question: is there a standard way to probe an address if it is readable/writable memory? Ideally something that is portable across all architectures?

Look at what copy_to_user or copy_from_user does to set up a temporary page fault handler, so to speak. m68k has hwreg_present() so I'd start by translating that to ppc assembly.

Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/