[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v4 0/4] lib/ukmmap: Remove mmap from newlib glue code and create a new internal library (libukmmap) for mmap



Introducing a new internal library which implements mmap related
operations. For the time being mmap is not fully implemented. It is just
a trick that works for Go, but it needs to be revisited in the future.
This implementation does not create any new mapping, it just allocates
memory and keeps track of any memory that has already been allocated
in a previous call. If the parameters do not match the ones that Go
uses then 0 is returned (unimplemented).

Differences with v3:
- Remove newlib depedency

Differences with v2:
- The v2 of the series did not apply cleanly on the staging branch

Differences with v1:
- Add PATCH in subject line

Charalampos Mainas (4):
  sys/mman.h: Import from musl
  sys/mman.h: Adapt to unikraft
  Introduce mmap and related functions library skeleton
  mmap trick for Go

 lib/Makefile.uk                             |   1 +
 lib/nolibc/musl-imported/include/sys/mman.h | 149 ++++++++++++++++++
 lib/ukmmap/Config.uk                        |   5 +
 lib/ukmmap/Makefile.uk                      |   3 +
 lib/ukmmap/exportsyms.uk                    |   2 +
 lib/ukmmap/mmap.c                           | 166 ++++++++++++++++++++
 6 files changed, 326 insertions(+)
 create mode 100644 lib/nolibc/musl-imported/include/sys/mman.h
 create mode 100644 lib/ukmmap/Config.uk
 create mode 100644 lib/ukmmap/Makefile.uk
 create mode 100644 lib/ukmmap/exportsyms.uk
 create mode 100644 lib/ukmmap/mmap.c

-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.