1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

Add simplified mmap() and munmap() syscalls.

This commit is contained in:
Andreas Kling 2018-10-24 09:48:24 +02:00
parent a5caf7ca99
commit 9a296d63f3
Notes: sideshowbarker 2024-07-19 18:39:34 +09:00
13 changed files with 116 additions and 2 deletions

View file

@ -99,6 +99,8 @@ public:
void sys$exit(int status);
int sys$spawn(const char* path);
pid_t sys$waitpid(pid_t);
void* sys$mmap(void*, size_t size);
int sys$munmap(void*, size_t size);
struct
{
@ -160,6 +162,9 @@ private:
String name;
};
Region* allocateRegion(size_t, String&& name);
bool deallocateRegion(Region& region);
Region* regionFromRange(LinearAddress, size_t);
Vector<OwnPtr<Region>> m_regions;