mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
UserspaceEmulator: Enable splitting regions at arbitrary points
This is not yet useful in and of itself, but enables the feature in the next commit.
This commit is contained in:
parent
7cc8f20a30
commit
45443f24ec
7 changed files with 66 additions and 2 deletions
|
@ -56,6 +56,12 @@ public:
|
|||
bool is_malloc_block() const { return m_malloc; }
|
||||
void set_malloc(bool b) { m_malloc = b; }
|
||||
|
||||
NonnullOwnPtr<MmapRegion> split_at(VirtualAddress);
|
||||
|
||||
int prot() const
|
||||
{
|
||||
return (is_readable() ? PROT_READ : 0) | (is_writable() ? PROT_WRITE : 0) | (is_executable() ? PROT_EXEC : 0);
|
||||
}
|
||||
void set_prot(int prot);
|
||||
|
||||
MallocRegionMetadata* malloc_metadata() { return m_malloc_metadata; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue