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 @@
/* Linux freestanding hello world with inline assembly..*/
/* x86_64 freestanding C inline assemby Linux hello world
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
#define _XOPEN_SOURCE 700
#include <inttypes.h>

View File

@@ -1,5 +1,5 @@
/* Same as hello.c, but with explicit register variables, see:
* https://stackoverflow.com/questions/9506353/how-to-invoke-a-system-call-via-sysenter-in-inline-assembly/54956854#54956854
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
#define _XOPEN_SOURCE 700

View File

@@ -1,3 +1,7 @@
/* x86_64 freestanding Linux hello world
* https://github.com/cirosantilli/linux-kernel-module-cheat#linux-system-calls
*/
.text
.global _start
_start: