mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
18 lines
305 B
C
18 lines
305 B
C
/* This is the main entrypoint for all .S examples. */
|
|
|
|
#include "stdio.h"
|
|
#include "stdint.h"
|
|
|
|
#include "lkmc.h"
|
|
|
|
int asm_main(uint32_t *line);
|
|
|
|
int main(void) {
|
|
uint32_t ret, line;
|
|
ret = asm_main(&line);
|
|
if (ret) {
|
|
printf("error %d at line %d\n", ret, line);
|
|
}
|
|
return ret;
|
|
}
|