Probing for (non-existing) memory?

Michael Schmitz schmitz at amber.biophys.uni-duesseldorf.de
Fri Oct 22 06:36:11 EST 1999




On Thu, 21 Oct 1999, Wolfgang Denk wrote:

> 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/





More information about the Linuxppc-dev mailing list