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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user