Kernel: Reorder boot initialization

We now create the TTY as soon as possible so we can show console
output without serial port.
This commit is contained in:
Bananymous
2023-04-14 23:55:05 +03:00
parent bf0c7b9ae8
commit c5347e6707
5 changed files with 44 additions and 37 deletions

View File

@@ -17,9 +17,11 @@ namespace Kernel
BAN_NON_MOVABLE(DeviceManager);
public:
static void initialize();
static DeviceManager& get();
void initialize_pci_devices();
void initialize_updater();
ino_t get_next_ino() const;
dev_t get_next_rdev() const;
uint8_t get_next_input_dev() const;

View File

@@ -28,6 +28,8 @@ namespace Kernel
static bool is_initialized();
static TTY* current();
void initialize_device();
virtual BAN::ErrorOr<size_t> read(size_t, void*, size_t) override;
virtual BAN::ErrorOr<size_t> write(size_t, const void*, size_t) override;
@@ -110,8 +112,8 @@ namespace Kernel
virtual BAN::StringView name() const { return m_name; }
private:
const dev_t m_rdev;
const BAN::String m_name;
dev_t m_rdev;
BAN::String m_name;
};
}