setos

拙OS
Log | Files | Refs | LICENSE

commit edc41424546eacd625603cf9338b26cb3cbc987c
parent 85208a549346593962617a7a739c28f3cb084aeb
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sun,  7 Apr 2024 09:54:55 +0900

read vendor id

Diffstat:
Msys/src/kernel/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/src/kernel/main.c b/sys/src/kernel/main.c @@ -47,7 +47,7 @@ kernel_main(EFI_GRAPHICS_OUTPUT_PROTOCOL *gop) draw_mouse(&root_window, &m); cons_printf(&con0, "hello world!\n"); cons_printf(&con0, "pixel at {%d, %d}: %x\n", p.x, p.y, get_pixel(&root_window, p)); -// cons_printf(&con0, "bus 0 vendor id: %d\n", read_pci_vendor_id(0, 0, 0)); + cons_printf(&con0, "bus 0 vendor id: %x\n", read_pci_vendor_id(0, 0, 0)); halt: for(;;) { __asm__("hlt"); }