예제 #1
0
파일: leon_ram.c 프로젝트: Galland/LEON2
leon_test()
{
	
	report(SYS_TEST);

	report(RAM_INIT);
	ramfill();
	ramtest();
	report(REG_TEST);
	if (regtest() != 1) fail(1);
	dsu_ram_test(); 
	report(TEST_END);
}
예제 #2
0
파일: leon3_test.c 프로젝트: EliasLuiz/TCC
leon3_test(int domp, volatile int *irqmp, int mtest)
{
	int tmp, i;

	if (!get_pid()) report_device(0x01003000);
	if (domp) mptest_start(irqmp);	
	report_subtest(REGFILE+(get_pid()<<4));
	if (regtest()) fail(1);
	multest();
	divtest();
	fputest();
	if (mtest) cramtest();
	if ((*mpfunc[get_pid()])) mpfunc[get_pid()](get_pid());
	if (domp) mptest_end(irqmp);	
	grfpu_test();
	cachetest();
	mmu_test();
	rextest();
        awptest();
}