Skip to content

Commit

Permalink
上个commit写错了(悲
Browse files Browse the repository at this point in the history
  • Loading branch information
Minsecrus committed Oct 27, 2024
1 parent a769958 commit 6a242d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a242d8

Please sign in to comment.