Re: flush_page_to_ram() question in kernel/ptrace.c

2001-03-08 Thread David S. Miller
Manfred Spraul writes: > > memcpy(buf, maddr + (addr & ~PAGE_MASK), len); > > flush_page_to_ram(page); > ^^ > Is this flush required? > > The memcpy read from the mapping, it didn't write. You have to kick it out of the

flush_page_to_ram() question in kernel/ptrace.c

2001-03-08 Thread Manfred Spraul
>From linux/kernel/ptrace.c, access_one_page(): >flush_cache_page(vma, addr); > > if (write) { > maddr = kmap(page); > memcpy(maddr + (addr & ~PAGE_MASK), buf, len); > flush_page_to_ram(page); > flush_icache_page(vma