mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
userland: add assembly support
Move arm assembly cheat here, and start some work on x86 cheat as well.
This commit is contained in:
17
userland/arch/main.c
Normal file
17
userland/arch/main.c
Normal file
@@ -0,0 +1,17 @@
|
||||
/* 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;
|
||||
}
|
||||
Reference in New Issue
Block a user