1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

Kernel/aarch64: Remove specific aarch64 code in BootFramebufferConsole

The MemoryManager now works, so we can use the same code as on x86 to
map the framebuffer. Since it uses the MemoryManager, the initialization
of the BootFramebufferConsole has to happen after the MemoryManager is
working.
This commit is contained in:
Timon Kruiper 2022-09-21 17:04:09 +02:00 committed by Andreas Kling
parent 57b1369475
commit 15b818cd57
3 changed files with 7 additions and 31 deletions

View file

@ -23,12 +23,7 @@ public:
virtual void flush(size_t, size_t, size_t, size_t) override { }
virtual void set_resolution(size_t, size_t, size_t) override { }
// FIXME: Port MemoryManager to aarch64
#if ARCH(AARCH64)
BootFramebufferConsole(u8* framebuffer_addr, size_t width, size_t height, size_t pitch);
#else
BootFramebufferConsole(PhysicalAddress framebuffer_addr, size_t width, size_t height, size_t pitch);
#endif
private:
virtual void set_cursor(size_t x, size_t y) override;
@ -40,12 +35,7 @@ protected:
virtual u8* framebuffer_data() override;
// FIXME: Port MemoryManager to aarch64
#if ARCH(AARCH64)
u8* m_framebuffer;
#else
OwnPtr<Memory::Region> m_framebuffer;
#endif
u8* m_framebuffer_data {};
mutable Spinlock m_lock { LockRank::None };
};