summaryrefslogtreecommitdiffstats
path: root/hw/xscom.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xscom.c')
-rw-r--r--hw/xscom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xscom.c b/hw/xscom.c
index 05b2c14f..5638f4d4 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -543,8 +543,8 @@ static int xscom_indirect_write_form1(uint32_t gcid, uint64_t pcb_addr,
return OPAL_PARAMETER;
/* Mangle address and data for form1 */
- addr = (pcb_addr & 0x000ffffffff);
- data = (pcb_addr & 0xfff00000000) << 20;
+ addr = (pcb_addr & 0x000ffffffffUL);
+ data = (pcb_addr & 0xfff00000000UL) << 20;
data |= val;
return __xscom_write(gcid, addr, data);
}
OpenPOWER on IntegriCloud