mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:38:10 +00:00
Kernel+Userland: Remove supervisor pages concept
There's no real value in separating physical pages to supervisor and user types, so let's remove the concept and just let everyone to use "user" physical pages which can be allocated from any PhysicalRegion we want to use. Later on, we will remove the "user" prefix as this prefix is not needed anymore.
This commit is contained in:
parent
ed9b2a85ed
commit
1c499e75bd
8 changed files with 8 additions and 96 deletions
|
@ -175,8 +175,6 @@ public:
|
|||
|
||||
NonnullRefPtr<PhysicalPage> allocate_committed_user_physical_page(Badge<CommittedPhysicalPageSet>, ShouldZeroFill = ShouldZeroFill::Yes);
|
||||
ErrorOr<NonnullRefPtr<PhysicalPage>> allocate_user_physical_page(ShouldZeroFill = ShouldZeroFill::Yes, bool* did_purge = nullptr);
|
||||
ErrorOr<NonnullRefPtr<PhysicalPage>> allocate_supervisor_physical_page();
|
||||
ErrorOr<NonnullRefPtrVector<PhysicalPage>> allocate_contiguous_supervisor_physical_pages(size_t size);
|
||||
ErrorOr<NonnullRefPtrVector<PhysicalPage>> allocate_contiguous_user_physical_pages(size_t size);
|
||||
void deallocate_physical_page(PhysicalAddress);
|
||||
|
||||
|
@ -196,8 +194,6 @@ public:
|
|||
PhysicalSize user_physical_pages_used { 0 };
|
||||
PhysicalSize user_physical_pages_committed { 0 };
|
||||
PhysicalSize user_physical_pages_uncommitted { 0 };
|
||||
PhysicalSize super_physical_pages { 0 };
|
||||
PhysicalSize super_physical_pages_used { 0 };
|
||||
};
|
||||
|
||||
SystemMemoryInfo get_system_memory_info()
|
||||
|
@ -301,7 +297,6 @@ private:
|
|||
SystemMemoryInfo m_system_memory_info;
|
||||
|
||||
NonnullOwnPtrVector<PhysicalRegion> m_user_physical_regions;
|
||||
OwnPtr<PhysicalRegion> m_super_physical_region;
|
||||
OwnPtr<PhysicalRegion> m_physical_pages_region;
|
||||
PhysicalPageEntry* m_physical_page_entries { nullptr };
|
||||
size_t m_physical_page_entries_count { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue