mirror of
https://github.com/drasko/codezero.git
synced 2026-03-17 01:31:49 +01:00
Undefined instruction handling/ipc revised, tests added, cleaned up.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user