linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* pte_offset_map for ppc assumes HIGHPTE
@ 2007-07-25 22:16 Satya
  2007-07-25 23:10 ` Benjamin Herrenschmidt
  2007-07-25 23:18 ` Andreas Schwab
  0 siblings, 2 replies; 6+ messages in thread
From: Satya @ 2007-07-25 22:16 UTC (permalink / raw)
  To: linuxppc-dev, linux-mm, linux-kernel

hello,
The implementation of pte_offset_map() for ppc assumes that PTEs are
kept in highmem (CONFIG_HIGHPTE). There is only one implmentation of
pte_offset_map() as follows (include/asm-ppc/pgtable.h):

#define pte_offset_map(dir, addr)               \
         ((pte_t *) kmap_atomic(pmd_page(*(dir)), KM_PTE0) + pte_index(addr))

Shouldn't this be made conditional according to CONFIG_HIGHPTE is
defined or not (as implemented in include/asm-i386/pgtable.h) ?

the same goes for pte_offset_map_nested and the corresponding unmap functions.

thanks,
Satya Popuri

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

end of thread, other threads:[~2007-07-26  0:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25 22:16 pte_offset_map for ppc assumes HIGHPTE Satya
2007-07-25 23:10 ` Benjamin Herrenschmidt
2007-07-25 23:18 ` Andreas Schwab
2007-07-25 23:22   ` Benjamin Herrenschmidt
2007-07-25 23:30     ` Dave McCracken
2007-07-26  0:18       ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).