diff --git a/lib/arm/io.c b/lib/arm/io.c index 19f93490..c15e57c4 100644 --- a/lib/arm/io.c +++ b/lib/arm/io.c @@ -149,6 +149,13 @@ extern void halt(int code); void exit(int code) { + /* + * Print the test return code in the following format which is + * consistent with powerpc and s390x. The runner can pick it + * up when chr-testdev is not present. + */ + printf("\nEXIT: STATUS=%d\n", ((code) << 1) | 1); + chr_testdev_exit(code); psci_system_off(); halt(code);