Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

L68K: mk_pte_phys()

1 view
Skip to first unread message

Richard Hirst

unread,
Sep 28, 1998, 3:00:00 AM9/28/98
to
(Forwarded from the linux-m68k mailing list)

Hi,
asm/pgtable.h has mk_pte() and mk_pte_phys() defined to both call
VTOP() on the address. I think mk_pte_phys() should be passed a
physical address anyway, and therefore shouldn't call VTOP().
It gets used in remap_page_range(), and causes me problems if a
user process does an mmap() on a chunk on /dev/memnc to access
some range of VME address space. There are no kernel mmu tables
for the vme address space so mm_vtop() fails.

Does anyone see any reason why this should not be changed?

Richard.


Jes Sorensen

unread,
Sep 29, 1998, 3:00:00 AM9/29/98
to
(Forwarded from the linux-m68k mailing list)

>>>>> "Richard" == Richard Hirst <richar...@net-tel.co.uk> writes:

Richard> Hi, asm/pgtable.h has mk_pte() and mk_pte_phys() defined to
Richard> both call VTOP() on the address. I think mk_pte_phys()
Richard> should be passed a physical address anyway, and therefore
Richard> shouldn't call VTOP(). It gets used in remap_page_range(),
Richard> and causes me problems if a user process does an mmap() on a
Richard> chunk on /dev/memnc to access some range of VME address
Richard> space. There are no kernel mmu tables for the vme address
Richard> space so mm_vtop() fails.

A side note, Linus and others didn't like the /dev/memnc approach - we
probably need to change it to implement the feature via some ioctl.

Jes


0 new messages