commit d01500acafae1b78f57e7b9af67c60098ffab5cd
parent 7ee064595a66f8f7e231ee9cf8fac8f399200205
Author: Matsuda Kenji <info@mtkn.jp>
Date: Thu, 18 Apr 2024 16:47:00 +0900
read local apic id
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/sys/src/kernel/main.c b/sys/src/kernel/main.c
@@ -56,6 +56,7 @@ kernel_main(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop)
pci_dev[i].base_class, pci_dev[i].sub_class,
pci_dev[i].prog);
}
+ cons_printf(&con0, "local apic id: %x\n", *(uint32 *) (0xfee00020) >> 24);
cons_printf(&con0, "xhci devices:\n");
for (int i = 0; i < num_pci_dev; i++) {
if (pci_dev[i].base_class == 0xc && pci_dev[i].sub_class == 0x3 &&