imx: bootaux: fix stack and pc assignment on 64-bit platforms
[oweals/u-boot.git] / arch / arm / mach-imx / imx_bootaux.c
index a1ea5c13f124df51f336886d00d7a4653b5d5e6a..3103001b7cc1ea76afca8328a9209e8b2689bd16 100644 (file)
@@ -17,8 +17,8 @@ int arch_auxiliary_core_up(u32 core_id, ulong boot_private_data)
        if (!boot_private_data)
                return -EINVAL;
 
-       stack = *(ulong *)boot_private_data;
-       pc = *(ulong *)(boot_private_data + 4);
+       stack = *(u32 *)boot_private_data;
+       pc = *(u32 *)(boot_private_data + 4);
 
        /* Set the stack and pc to M4 bootROM */
        writel(stack, M4_BOOTROM_BASE_ADDR);