testapp.c 876 Bytes
#include <PR/bcp.h>
#include <PR/bbsim.h>
#include <PR/bbskapi.h>

#include "../message.h"

boot()
{
    u32 val;
    char outstr[32];

#if 0
    /* reset IDE */
    val = IO_READ(PI_IDE_CONFIG_REG);
    val &= ~PI_IDE_CONFIG_RESET;
    IO_WRITE(PI_IDE_CONFIG_REG,val);
#endif
#if 0
    message("sk_entry1,1\n");
    val = skTest1(14,4);
    message("   return value = ");
    output_int32_hex((u32)val);
    message("\n");

#endif

#if 0
    message("calling sk_entry2\n");
    val = skTest2(3,3);
    message("   return value = ");
    output_int32_hex((u32)val);
    message("\n");
#endif
#if 0
    message("sk_entry1,2\n");
    val = skTest1(20,4);
    message("   return value = ");
    output_int32_hex((u32)val);
    message("\n");

    asm("j __timer_test");
#endif

#ifdef BIG_APP
    asm(".set noreorder; .rept (1024*1024*4)/4; nop; .endr; .set reorder");
#endif

}