mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +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:
parent
0a5416a87a
commit
37ed1b28fa
2 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue