mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Kernel/Graphics: Untie Text mode console from VGACompatibleAdapter class
Instead, we can construct this type of object without having to instantiate a VGACompatibleAdapter object first. This can help instantiate such console very early on boot to aid debug issues on bare metal hardware.
This commit is contained in:
parent
c6acf64558
commit
90a194377c
5 changed files with 10 additions and 12 deletions
|
@ -14,7 +14,7 @@
|
|||
namespace Kernel::Graphics {
|
||||
class TextModeConsole final : public VGAConsole {
|
||||
public:
|
||||
static NonnullRefPtr<TextModeConsole> initialize(const VGACompatibleAdapter& adapter);
|
||||
static NonnullRefPtr<TextModeConsole> initialize();
|
||||
virtual size_t chars_per_line() const override { return width(); };
|
||||
|
||||
virtual bool has_hardware_cursor() const override { return true; }
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
private:
|
||||
void clear_vga_row(u16 row);
|
||||
|
||||
explicit TextModeConsole(const VGACompatibleAdapter&);
|
||||
TextModeConsole();
|
||||
|
||||
mutable Spinlock m_vga_lock;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue