mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
userland: support arch specific examples
This commit is contained in:
1
userland/arch/aarch64/Makefile
Symbolic link
1
userland/arch/aarch64/Makefile
Symbolic link
@@ -0,0 +1 @@
|
||||
../../Makefile
|
||||
8
userland/arch/aarch64/asm_hello.c
Normal file
8
userland/arch/aarch64/asm_hello.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
int main(void) {
|
||||
register uint32_t x0 __asm__ ("x0");
|
||||
__asm__ ("mov x0, #1;" : : : "%x0");
|
||||
assert(x0 == 1);
|
||||
}
|
||||
1
userland/arch/aarch64/params.mk
Normal file
1
userland/arch/aarch64/params.mk
Normal file
@@ -0,0 +1 @@
|
||||
COMMON_DIR = ../../..
|
||||
Reference in New Issue
Block a user