mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Make kernel build with clang.
It's a bit faster than g++ and seems to generate perfectly fine code. The kernel is also roughly 10% smaller(!)
This commit is contained in:
parent
7b3b5f745f
commit
ebf308d413
Notes:
sideshowbarker
2024-07-19 18:31:12 +09:00
Author: https://github.com/awesomekling
Commit: ebf308d413
10 changed files with 40 additions and 27 deletions
|
@ -52,7 +52,8 @@ private:
|
|||
PhysicalAddress m_paddr;
|
||||
};
|
||||
|
||||
struct PageDirectory {
|
||||
class PageDirectory {
|
||||
public:
|
||||
dword entries[1024];
|
||||
RetainPtr<PhysicalPage> physical_pages[1024];
|
||||
|
||||
|
@ -91,7 +92,8 @@ private:
|
|||
Vector<RetainPtr<PhysicalPage>> m_physical_pages;
|
||||
};
|
||||
|
||||
struct Region : public Retainable<Region> {
|
||||
class Region : public Retainable<Region> {
|
||||
public:
|
||||
Region(LinearAddress, size_t, String&&, bool r, bool w, bool cow = false);
|
||||
Region(LinearAddress, size_t, RetainPtr<VMObject>&&, size_t offset_in_vmo, String&&, bool r, bool w, bool cow = false);
|
||||
Region(LinearAddress, size_t, RetainPtr<VirtualFileSystem::Node>&&, String&&, bool r, bool w);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue