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:
parent
a5caf7ca99
commit
9a296d63f3
Notes:
sideshowbarker
2024-07-19 18:39:34 +09:00
Author: https://github.com/awesomekling
Commit: 9a296d63f3
13 changed files with 116 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue