From 6a242d80227e1a12942cc8bafab3f99f0024710d Mon Sep 17 00:00:00 2001 From: Minsecrus <2972853299@qq.com> Date: Sun, 27 Oct 2024 12:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=B8=AAcommit=E5=86=99=E9=94=99?= =?UTF-8?q?=E4=BA=86=EF=BC=88=E6=82=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/driver/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/pci/pci.c b/src/driver/pci/pci.c index 17a3f7c..34f6a68 100644 --- a/src/driver/pci/pci.c +++ b/src/driver/pci/pci.c @@ -196,7 +196,7 @@ uint32_t read_pci(uint8_t bus, uint8_t device, uint8_t function, uint8_t registe } base_address_register get_base_address_register(uint8_t bus, uint8_t device, uint8_t function, uint8_t bar) { - base_address_register result = {0, nullptr_t, 0, 0}; + base_address_register result = {0, nullptr, 0, 0}; uint32_t headertype = read_pci(bus, device, function, 0x0e) & 0x7e; int max_bars = 6 - 4 * headertype;