linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mmap hw behavior
@ 2009-07-08 17:03 Michal Simek
  2009-07-08 17:03 ` Michal Simek
  2009-07-08 17:35 ` David Miller
  0 siblings, 2 replies; 10+ messages in thread
From: Michal Simek @ 2009-07-08 17:03 UTC (permalink / raw)
  To: Linux Kernel list, lkml, Ingo Molnar, Arnd Bergmann, Paul Mundt,
	LTP

Hi All,

I wrote one email about my problem with mmap on Microblaze. (Especially
mmap01 ltp test)
I need to know how mmap should work with MMU or what the correct steps are.

When I open temp file in application is the kernel create file descriptor table and kernel take
care about setup tlb which are needed. Application get back just file descriptor.

When I call calloc it is called brk kernel syscall and is created one tlb for this place. 
Brk allocate more memory than is requested by calloc. Application got pointer to that memory place.


When I call mmap for that open file with pointer to calloc place (first parameter, + length zero)
it should be one tlb invalidation for calloc and new tlb which connect open file. 
We check it and we don't have any tlb invalidation that's why I think that kernel do different thigs.
Or is it there any copying? Or anything different?

Thanks for clarification,
Michal

-- 
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663

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

end of thread, other threads:[~2009-07-09  8:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 17:03 mmap hw behavior Michal Simek
2009-07-08 17:03 ` Michal Simek
2009-07-08 17:35 ` David Miller
2009-07-08 18:03   ` Michal Simek
     [not found]     ` <4A54DF6F.1010405-g5w7nrANp4BDPfheJLI6IQ@public.gmane.org>
2009-07-08 18:06       ` David Miller
2009-07-08 18:06         ` David Miller
2009-07-08 20:22         ` Michal Simek
2009-07-09  1:15           ` David Miller
2009-07-09  5:40             ` Michal Simek
2009-07-09  8:57             ` Michal Simek

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).