All of lore.kernel.org
 help / color / mirror / Atom feed
* why we need to convert "mfn_to_page(smfn)" in page_alloc.c?
@ 2012-12-10 14:02 asad raza
  2012-12-10 15:06 ` Ian Campbell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: asad raza @ 2012-12-10 14:02 UTC (permalink / raw)
  To: xen-devel

void init_domheap_pages(paddr_t ps, paddr_t pe)
{
    unsigned long smfn, emfn;

    ASSERT(!in_irq());

    smfn = round_pgup(ps) >> PAGE_SHIFT;
    emfn = round_pgdown(pe) >> PAGE_SHIFT;

    init_heap_pages(mfn_to_page(smfn), emfn - smfn);
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-10 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-10 14:02 why we need to convert "mfn_to_page(smfn)" in page_alloc.c? asad raza
2012-12-10 15:06 ` Ian Campbell
2012-12-10 15:08 ` Stefano Stabellini
2012-12-10 15:15 ` Mats Petersson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.