/*
 * Simple test for power estimation:  one cpu missing in L1 and hitting
 * in DA space as fast as possible
 */

/*
 *              Copyright (C) 2005, BroadOn Communications Corp.
 *
 * These coded instructions, statements, and computer programs contain
 * unpublished  proprietary information of BroadOn Communications Corp.,
 * and  are protected by Federal copyright law. They may not be disclosed
 * to  third  parties or copied or duplicated in any form, in whole or in
 * part, without the prior written consent of BroadOn Communications Corp.
 *
 */

#include <types.h>
#include <sc/sc.h>
#include <sc/dv_boot.h>

u32 databuf[2048];	/* 8K worth of data (2 x L1 DCACHE) */

int 
cpu0main(void)
{
    volatile exit_comm_area *ecap = EXIT_COMM_AREA;
    volatile u32 *dp;
    u32 junk;
    int count;

    ecap->arg++;	/* tell framework to turn on dump */
    while (1) {
        dp = databuf;
        for (count = sizeof(databuf)/sizeof(databuf[0]) - 1; count >= 0; count -= 4) {
            junk = *dp;
            dp += 4;
        }
    }
    ecap->arg++;	/* turn off dump */
    return 0;
}

int 
cpu1main(void)
{
    return 0;
}
