mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
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:
@@ -1,6 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
puts("hello");
|
||||
return 0;
|
||||
}
|
||||
1
baremetal/hello.c
Symbolic link
1
baremetal/hello.c
Symbolic link
@@ -0,0 +1 @@
|
||||
../lkmc/hello.c
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user