Fw: when to mark reserved low memory pages

John Rose johnrose at austin.ibm.com
Thu Sep 30 04:31:29 EST 2004


Hi Dave, thanks for the suggestion.  One nit:

> start_pfn = rtas_rmo_buf >> PAGE_SHIFT;
> end_pfn = (rtas_rmo_buf + RTAS_RMOBUF_MAX) >> PAGE_SHIFT;
> for (pfn = start_pfn; pfn < end_pfn; pfn++)
>         SetPageReserved(page_to_pfn(pfn));

Shouldn't the last line use pfn_to_page()?

Thanks-
John




More information about the Linuxppc64-dev mailing list