Kernel: Make PageTable non-copyable and non-movable

Also PageTable destructor now verifies that is has allocated something
instead of assuming paddr of 0.
This commit is contained in:
2024-11-26 00:58:35 +02:00
parent 6f118c1be1
commit 48e030bca3
3 changed files with 9 additions and 0 deletions

View File

@@ -22,6 +22,9 @@ namespace Kernel
class PageTable
{
BAN_NON_COPYABLE(PageTable);
BAN_NON_MOVABLE(PageTable);
public:
using flags_t = uint16_t;
enum Flags : flags_t