All: Cleanup all files
Add newline to end of files and remove whitespace from end of lines
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace Kernel
|
||||
{
|
||||
|
||||
|
||||
class DMARegion
|
||||
{
|
||||
public:
|
||||
@@ -27,4 +27,4 @@ namespace Kernel
|
||||
const paddr_t m_paddr;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,4 +46,4 @@ namespace Kernel
|
||||
BAN::RefPtr<SharedFileData> m_shared_data;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Kernel
|
||||
{
|
||||
BAN_NON_COPYABLE(MemoryBackedRegion);
|
||||
BAN_NON_MOVABLE(MemoryBackedRegion);
|
||||
|
||||
|
||||
public:
|
||||
static BAN::ErrorOr<BAN::UniqPtr<MemoryBackedRegion>> create(PageTable&, size_t size, AddressRange, Type, PageTable::flags_t);
|
||||
~MemoryBackedRegion();
|
||||
@@ -29,4 +29,4 @@ namespace Kernel
|
||||
MemoryBackedRegion(PageTable&, size_t size, Type, PageTable::flags_t);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Kernel
|
||||
BAN::ErrorOr<bool> allocate_page_containing(vaddr_t address);
|
||||
|
||||
virtual BAN::ErrorOr<BAN::UniqPtr<MemoryRegion>> clone(PageTable& new_page_table) = 0;
|
||||
|
||||
|
||||
protected:
|
||||
MemoryRegion(PageTable&, size_t size, Type type, PageTable::flags_t flags);
|
||||
BAN::ErrorOr<void> initialize(AddressRange);
|
||||
@@ -64,4 +64,4 @@ namespace Kernel
|
||||
size_t m_physical_page_count { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Kernel
|
||||
{
|
||||
public:
|
||||
using flags_t = uint16_t;
|
||||
enum Flags : flags_t
|
||||
enum Flags : flags_t
|
||||
{
|
||||
Present = (1 << 0),
|
||||
ReadWrite = (1 << 1),
|
||||
@@ -107,7 +107,7 @@ namespace Kernel
|
||||
uint64_t get_page_data(vaddr_t) const;
|
||||
void initialize_kernel();
|
||||
void map_kernel_memory();
|
||||
void prepare_fast_page();
|
||||
void prepare_fast_page();
|
||||
static void invalidate(vaddr_t);
|
||||
|
||||
private:
|
||||
|
||||
@@ -30,4 +30,4 @@ namespace Kernel
|
||||
PageTable& m_temp;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Kernel
|
||||
private:
|
||||
unsigned long long* ull_bitmap_ptr() { return (unsigned long long*)m_vaddr; }
|
||||
const unsigned long long* ull_bitmap_ptr() const { return (const unsigned long long*)m_vaddr; }
|
||||
|
||||
|
||||
paddr_t paddr_for_bit(unsigned long long) const;
|
||||
unsigned long long bit_for_paddr(paddr_t paddr) const;
|
||||
|
||||
@@ -47,4 +47,4 @@ namespace Kernel
|
||||
size_t m_free_pages { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ namespace Kernel
|
||||
using vaddr_t = uintptr_t;
|
||||
using paddr_t = uintptr_t;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,4 +48,4 @@ namespace Kernel
|
||||
PageTable::flags_t m_flags { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user