On Mon, Jul 15, 2013 at 7:56 PM, Parag Warudkar <parag.lkml@xxxxxxxxx> wrote: > On Mon, Jul 15, 2013 at 7:04 PM, Josh Triplett <josh@xxxxxxxxxxxxxxxx> wrote: > >> We do need to handle the case of a valid pointer into memory that e820 >> calls system RAM, as well as the case of a valid pointer into memory >> reserved for the BIOS or similar, but not the case of an invalid >> pointer. > > Would that be as simple as > > page_is_ram( Damn shortcuts - virt_addr = phys_to_virt(image->base_address); if(page_is_ram(virt_to_page(virt_addr))) { //direct read from virt addr } Would that suffice for the System RAM case or some other MM trickery is involved? Thanks, Parag -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html