mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
hvmloader: properly parenthesize pci_write* macros
Signed-off-by: Don Slutz <dslutz@verizon.com>
This commit is contained in:
1 parent
dc6f500bc6
commit
5cd431f343
1 file changed
+3
-3
@@ -82,9 +82,9 @@ uint32_t pci_read(uint32_t devfn, uint32_t reg, uint32_t len);
|
||||
#define pci_readw(devfn, reg) ((uint16_t)pci_read(devfn, reg, 2))
|
||||
#define pci_readl(devfn, reg) ((uint32_t)pci_read(devfn, reg, 4))
|
||||
void pci_write(uint32_t devfn, uint32_t reg, uint32_t len, uint32_t val);
|
||||
#define pci_writeb(devfn, reg, val) (pci_write(devfn, reg, 1, (uint8_t) val))
|
||||
#define pci_writew(devfn, reg, val) (pci_write(devfn, reg, 2, (uint16_t)val))
|
||||
#define pci_writel(devfn, reg, val) (pci_write(devfn, reg, 4, (uint32_t)val))
|
||||
#define pci_writeb(devfn, reg, val) pci_write(devfn, reg, 1, (uint8_t) (val))
|
||||
#define pci_writew(devfn, reg, val) pci_write(devfn, reg, 2, (uint16_t)(val))
|
||||
#define pci_writel(devfn, reg, val) pci_write(devfn, reg, 4, (uint32_t)(val))
|
||||
|
||||
/* Get a pointer to the shared-info page */
|
||||
struct shared_info *get_shared_info(void) __attribute__ ((const));
|
||||
|
||||