All of lore.kernel.org
 help / color / mirror / Atom feed
* pte_offset_map for ppc assumes HIGHPTE
@ 2007-07-25 22:16 ` Satya
  0 siblings, 0 replies; 17+ 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] 17+ messages in thread

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

Thread overview: 17+ 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 22:16 ` Satya
2007-07-25 23:10 ` Benjamin Herrenschmidt
2007-07-25 23:10   ` Benjamin Herrenschmidt
2007-07-25 23:10   ` Benjamin Herrenschmidt
2007-07-25 23:18 ` Andreas Schwab
2007-07-25 23:18   ` Andreas Schwab
2007-07-25 23:18   ` Andreas Schwab
2007-07-25 23:22   ` Benjamin Herrenschmidt
2007-07-25 23:22     ` Benjamin Herrenschmidt
2007-07-25 23:22     ` Benjamin Herrenschmidt
2007-07-25 23:30     ` Dave McCracken
2007-07-25 23:30       ` Dave McCracken
2007-07-25 23:30       ` Dave McCracken
2007-07-26  0:18       ` Benjamin Herrenschmidt
2007-07-26  0:18         ` Benjamin Herrenschmidt
2007-07-26  0:18         ` Benjamin Herrenschmidt

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.