mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
Kernel: Print out PCI devices during boot
This will make boot logs much more useful on real hardware, by showing exactly what Serenity is trying to boot on.
This commit is contained in:
parent
3026c37d5d
commit
d1a7316799
Notes:
sideshowbarker
2024-07-19 12:45:54 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/d1a7316799d Pull-request: https://github.com/SerenityOS/serenity/pull/436
@ -32,6 +32,7 @@
|
||||
#include <Kernel/Multiboot.h>
|
||||
#include <Kernel/Net/E1000NetworkAdapter.h>
|
||||
#include <Kernel/Net/NetworkTask.h>
|
||||
#include <Kernel/PCI.h>
|
||||
#include <Kernel/TTY/PTYMultiplexer.h>
|
||||
#include <Kernel/TTY/VirtualConsole.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
@ -215,6 +216,16 @@ extern "C" [[noreturn]] void init()
|
||||
MemoryManager::initialize();
|
||||
PIT::initialize();
|
||||
|
||||
PCI::enumerate_all([](const PCI::Address& address, PCI::ID id) {
|
||||
kprintf("PCI device: bus=%d slot=%d function=%d id=%w:%w\n",
|
||||
address.bus(),
|
||||
address.slot(),
|
||||
address.function(),
|
||||
id.vendor_id,
|
||||
id.device_id
|
||||
);
|
||||
});
|
||||
|
||||
new BXVGADevice;
|
||||
|
||||
auto e1000 = E1000NetworkAdapter::autodetect();
|
||||
|
Loading…
Reference in New Issue
Block a user