document userland asm syscall interfaces

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-05 00:00:00 +00:00
parent 0263c21557
commit d4f698306a
10 changed files with 87 additions and 14 deletions

View File

@@ -1,4 +1,6 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#freestanding-linux-inline-assembly-system-calls */
/* aarch64 freestanding C inline assemby Linux hello world
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
#include <inttypes.h>

View File

@@ -1,6 +1,8 @@
/* Like hello.c trying to do it without named register variables.
* The code is more complicated, and I was not able to get as efficient,
* so better just stick to named register variables.
*
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
#include <inttypes.h>

View File

@@ -1,4 +1,6 @@
/* https://github.com/cirosantilli/arm-assembly-cheat#linux-system-calls */
/* aarch64 freestanding Linux hello world
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
.text
.global _start

View File

@@ -1,3 +1,4 @@
/* MInimal sanity check of the C driver. */
.text
.global asm_main
asm_main: