diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 01:54:39 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 02:11:32 +0100 |
commit | 6d263c7d4e0f4b1d34694b5d3d159ccb20b3db02 (patch) | |
tree | 41578268cf68b2d9ea1737687a0f98af979948d8 /stage3/pci.c | |
parent | 5881b4d5c1040c762599f90e091e4cc4c3abe6b1 (diff) | |
download | cuddles-6d263c7d4e0f4b1d34694b5d3d159ccb20b3db02.tar.xz |
keyboard driver and threads
* PS/2 keyboard driver
* interactive shell
* move away from \0 terminated strings to sized slices
* coroutine threads and IRQ queues
Diffstat (limited to 'stage3/pci.c')
-rw-r--r-- | stage3/pci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stage3/pci.c b/stage3/pci.c index 164071d..d764171 100644 --- a/stage3/pci.c +++ b/stage3/pci.c @@ -30,11 +30,11 @@ void pci_enumerate() outl(PCI_CONFIG_ADDRESS, BITCAST(addr, pci_config_addr, u32)); u32 x = inl(PCI_CONFIG_DATA); if (x != 0xFFFFFFFF) { - print("bus: "); print_num(bus, 16, 2); - print(" dev: "); print_num(dev, 16, 1); - print(" vendor: "); print_num(x & 0xFFFF, 16, 4); - print(" id: "); print_num((x >> 16) & 0xFFFF, 16, 4); - print("\n"); + print(S("bus: ")); print_num_pad(bus, 16, 2, ' '); + print(S(" dev: ")); print_num_pad(dev, 16, 1, ' '); + print(S(" vendor: ")); print_num_pad(x & 0xFFFF, 16, 4, ' '); + print(S(" id: ")); print_num_pad((x >> 16) & 0xFFFF, 16, 4, ' '); + print(S("\n")); } } } |