baremetal: ah, actually nope, it didn't work :-(

Workaround for now. Works on asserts, but not on exit 1.

Some other day, maybe.

https://github.com/cirosantilli/linux-kernel-module-cheat/issues/59
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-07 00:00:00 +00:00
parent 26cab92bfc
commit 3d83206461
11 changed files with 127 additions and 87 deletions

3
lkmc.c
View File

@@ -12,7 +12,8 @@ void lkmc_assert(bool condition) {
}
void lkmc_assert_fail(void) {
puts("lkmc_test_fail");
printf("%s\n", __func__);
puts("lkmc_exit_status_1");
exit(1);
}