summaryrefslogtreecommitdiff
path: root/Kernel/Memory
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-10-28 23:33:41 +0300
committerIdan Horowitz <idan.horowitz@gmail.com>2021-12-01 21:44:11 +0200
commitf415218afe008ba2de123040781c550f3cf48352 (patch)
treeccdee156f0544278eb4ae3e3f506b698ab686820 /Kernel/Memory
parentd5d0eb45bf91d43f9cf9e6724300fc0f07808422 (diff)
downloadserenity-f415218afe008ba2de123040781c550f3cf48352.zip
Kernel+LibC: Implement sigaltstack()
This is required for compiling wine for serenity
Diffstat (limited to 'Kernel/Memory')
-rw-r--r--Kernel/Memory/Region.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Memory/Region.h b/Kernel/Memory/Region.h
index 8a86317b40..403e9b743b 100644
--- a/Kernel/Memory/Region.h
+++ b/Kernel/Memory/Region.h
@@ -172,6 +172,8 @@ public:
void set_writable(bool b) { set_access_bit(Access::Write, b); }
void set_executable(bool b) { set_access_bit(Access::Execute, b); }
+ void unsafe_clear_access() { m_access = Region::None; }
+
void set_page_directory(PageDirectory&);
ErrorOr<void> map(PageDirectory&, ShouldFlushTLB = ShouldFlushTLB::Yes);
enum class ShouldDeallocateVirtualRange {