summaryrefslogtreecommitdiff
path: root/Kernel/VM
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/VM')
-rw-r--r--Kernel/VM/Region.cpp3
-rw-r--r--Kernel/VM/Region.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp
index 822d419532..3148be84b7 100644
--- a/Kernel/VM/Region.cpp
+++ b/Kernel/VM/Region.cpp
@@ -54,9 +54,6 @@ NonnullOwnPtr<Region> Region::clone()
{
ASSERT(current);
- // NOTE: Kernel-only regions should never be cloned.
- ASSERT(is_user_accessible());
-
// FIXME: What should we do for privately mapped InodeVMObjects?
if (m_shared || vmobject().is_inode()) {
ASSERT(!m_stack);
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h
index 9092867bc1..eb76b3accb 100644
--- a/Kernel/VM/Region.h
+++ b/Kernel/VM/Region.h
@@ -57,6 +57,7 @@ public:
void set_mmap(bool mmap) { m_mmap = mmap; }
bool is_user_accessible() const { return m_user_accessible; }
+ void set_user_accessible(bool b) { m_user_accessible = b; }
PageFaultResponse handle_fault(const PageFault&);