Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
56 user(s) are online (33 user(s) are browsing Forums)

Members: 0
Guests: 56

more...

Support us!

Headlines






Implementing mmap () and munmap ()
Just popping in
Joined:
2011/7/20 20:01
Posts: 68
Hi

As part of the work on porting the latest libgit2, see this topic for more info, I need to implement mmap() and munmap() methods. Has anyone got any experience of this or have some pointers? I can see that the IMMU interface of has some methods that might be useful at the IExec autodoc, is this suitable?

Any info gratefully received!

cheers

billy


Edited by billyfish on 2020/5/21 22:21:46
Edited by billyfish on 2020/5/21 22:46:06
   Report Go to top

Re: Implementing mmap () and umap ()
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6451
There were something done by ChrisY:
https://github.com/chris-y/libgit2/blob/development/src/amiga/map.c

EDIT: oh sorry, i see you already tried this and it didn't works as miss some bits. Probably you need to move your explain of why ChrisY version didn't work in that topic as well, so maybe someone with clue will give a hint.

_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Implementing mmap () and munmap ()
Just popping in
Joined:
2011/7/20 20:01
Posts: 68
@kas1e

Sure, I've added a bit of explanation to the topic. The issue is that this mmap emulation doesn't cover the situation when the memory that is being used as the cache has been labelled as shared and the memory is to be written to. From my initial investigations, I think that libgit2 isn't using threads but I need to look further. If it is running in a single thread then maybe a simple memory buffer approach might even be enough for libgit2 to work. However if someone has developed proper amiga versions of mmap and unmap, I'd much rather use those.

billy


Edited by billyfish on 2020/5/21 22:47:09
   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project