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

View File

@@ -1,6 +0,0 @@
#include <stdio.h>
int main(void) {
puts("hello");
return 0;
}

1
baremetal/hello.c Symbolic link
View File

@@ -0,0 +1 @@
../lkmc/hello.c

View File

@@ -63,10 +63,6 @@ int _write(int file, char *ptr, int len) {
}
void _exit(int status) {
if (status != 0) {
/* https://github.com/cirosantilli/linux-kernel-module-cheat#magic-failure-string */
printf("lkmc_exit_status_%d\n", status);
}
#if defined(GEM5)
LKMC_M5OPS_EXIT;
#else