1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:47:36 +00:00

Kernel: Ensure proper locking when mutating boot console cursor

The BootFramebufferConsole highly depends on using the m_lock spinlock,
therefore setting and changing the cursor state should be done under
that spinlock too to avoid crashing.
This commit is contained in:
Liav A 2022-09-20 21:41:52 +03:00 committed by Linus Groh
parent 0a5416a87a
commit 37ed1b28fa
2 changed files with 30 additions and 0 deletions

View file

@ -30,6 +30,11 @@ public:
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;
virtual void hide_cursor() override;
virtual void show_cursor() override;
protected:
virtual void clear_glyph(size_t x, size_t y) override;