/*
 * Copyright 2014, General Dynamics C4 Systems
 *
 * This software may be distributed and modified according to the terms of
 * the GNU General Public License version 2. Note that NO WARRANTY is provided.
 * See "LICENSE_GPLv2.txt" for details.
 *
 * @TAG(GD_GPL)
 */

#include <arch/machine/hardware.h>

/** DONT_TRANSLATE */
void
clean_D_PoU(void)
{
    /* V6 has a single op to clean D-Cache */
    asm volatile("mcr p15, 0, %0, c7, c10, 0" : : "r"(0));
}

/** DONT_TRANSLATE */
void
cleanInvalidate_D_PoC(void)
{
    /* V6 has a single op to clean+invalidate D-Cache */
    asm volatile("mcr p15, 0, %0, c7, c14, 0" : : "r"(0));
}
