Undefined instruction handling/ipc revised, tests added, cleaned up.

This commit is contained in:
Bahadir Balban
2009-12-04 15:22:56 +02:00
parent 93dc1ed49e
commit 2908c40816
7 changed files with 43 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* undeftest.c:
* Tests to see if kernel gracefully handles the undef exception
*/
@@ -13,17 +13,16 @@
#include <errno.h>
#include INC_GLUE(memory.h)
int undeftest(void)
{
test_printf("UNDEF: Start\n");
/* need a way to report FAIL case */
__asm__ __volatile__(".word 0xf1f0feed\n\t"); /* Some pattern for easy recongition */
/* If code reaches here its passed */
printf("UNDEF TEST -- PASSED --\n");
test_printf("UNDEF: Passed\n");
if (getpid() == parent_of_all)
printf("UNDEF TEST -- PASSED --\n");
return 0;
}
}