|
@@ -42,7 +42,7 @@ extern int init_atu;
|
|
|
IOP3XX_PERIPHERAL_SIZE - 1)
|
|
|
#define IOP3XX_PERIPHERAL_UPPER_VA (IOP3XX_PERIPHERAL_VIRT_BASE +\
|
|
|
IOP3XX_PERIPHERAL_SIZE - 1)
|
|
|
-#define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) addr -\
|
|
|
+#define IOP3XX_PMMR_PHYS_TO_VIRT(addr) (u32) ((u32) (addr) -\
|
|
|
(IOP3XX_PERIPHERAL_PHYS_BASE\
|
|
|
- IOP3XX_PERIPHERAL_VIRT_BASE))
|
|
|
#define IOP3XX_REG_ADDR(reg) (IOP3XX_PERIPHERAL_VIRT_BASE + (reg))
|