pcireg: Enable command and status printing on UEFI as that works again

This commit is contained in:
RichardG867
2023-02-14 13:40:06 -03:00
parent 7042e2dae6
commit 18fdf97ed1

View File

@@ -856,17 +856,12 @@ dump_info(uint8_t bus, uint8_t dev, uint8_t func)
/* Read command and status. */
reg_val.u32 = pci_readl(bus, dev, func, 0x04);
/* Print command and status flags... except on UEFI target,
as something somewhere in the POSIX-UEFI pipeline mangles
the pointers to all strings in our lookup arrays after
command_flags[0]. Ugh. */
#ifndef __POSIX_UEFI__
/* Print command and status flags. */
printf("\n\nCommand:");
info_flags_helper(reg_val.u16[0], command_flags);
printf("\n Status:");
info_flags_helper(reg_val.u16[1], status_flags);
printf(" DEVSEL[%s]", devsel[(reg_val.u16[1] >> 9) & 3]);
#endif
/* Read revision and class ID. */
reg_val.u32 = pci_readl(bus, dev, func, 0x08);