mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
baremetal: build userland/ programs using baremetal path property instead of symlinks
Otherwise I'll go crazy with symlink action.
This commit is contained in:
9
lkmc.c
9
lkmc.c
@@ -23,7 +23,7 @@ LKMC_ASSERT_EQ_DEFINE(64)
|
||||
|
||||
void lkmc_assert_fail(uint32_t line) {
|
||||
printf("error: assertion failed at line: %" PRIu32 "\n", line);
|
||||
exit(1);
|
||||
abort();
|
||||
}
|
||||
|
||||
void lkmc_assert_memcmp(
|
||||
@@ -56,13 +56,6 @@ void lkmc_assert_memcmp(
|
||||
}
|
||||
}
|
||||
|
||||
void lkmc_baremetal_on_exit_callback(int status, void *arg) {
|
||||
(void)arg;
|
||||
if (status != 0) {
|
||||
printf("lkmc_exit_status_%d\n", status);
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__aarch64__)
|
||||
#define LKMC_SYSREG_READ_WRITE(type, name) \
|
||||
type LKMC_CONCAT(LKMC_CONCAT(LKMC_SYSREG_SYMBOL_PREFIX, name), _read(void)) { \
|
||||
|
||||
Reference in New Issue
Block a user