static void scp_boot_message_send(size_t payload_size) { /* Ensure that any write to the BOM payload area is seen by SCP before * we write to the MHU register. If these 2 writes were reordered by * the CPU then SCP would read stale payload data */ dmbst(); /* Send command to SCP */ mhu_secure_message_send(BOM_MHU_SLOT_ID); }
static void scp_boot_message_send(size_t payload_size) { /* Make sure payload can be seen by SCP */ if (MHU_PAYLOAD_CACHED) flush_dcache_range(BOM_SHARED_MEM, sizeof(bom_cmd_t) + payload_size); /* Send command to SCP */ mhu_secure_message_send(BOM_MHU_SLOT_ID); }