/*
 * Simple test for power estimation:  one cpu looping in L1
 */

/*
 *              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>

int loop_count;

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

    loop_count = ecap->arg;
    ecap->arg++;	/* tell framework to turn on dump */

    for (count = 0; count < loop_count; count++) ;
    
    ecap->arg++;	/* turn off dump */
    return 0;
}

int 
cpu1main(void)
{
    return 0;
}
