mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
asm: prefix every linux specific with linux/
This commit is contained in:
27
README.adoc
27
README.adoc
@@ -11556,16 +11556,16 @@ Not documented as of GCC 8.2, but possible: https://stackoverflow.com/questions/
|
||||
The following <<userland-setup>> programs illustrate how to make system calls:
|
||||
|
||||
* x86_64
|
||||
** link:userland/arch/x86_64/freestanding/hello.S[]
|
||||
** link:userland/arch/x86_64/c/freestanding/hello.c[]
|
||||
** link:userland/arch/x86_64/c/freestanding/hello_regvar.c[]
|
||||
** link:userland/arch/x86_64/freestanding/linux/hello.S[]
|
||||
** link:userland/arch/x86_64/c/freestanding/linux/hello.c[]
|
||||
** link:userland/arch/x86_64/c/freestanding/linux/hello_regvar.c[]
|
||||
* arm
|
||||
** link:userland/arch/arm/freestanding/hello.S[]
|
||||
** link:userland/arch/arm/c/freestanding/hello.c[]
|
||||
** link:userland/arch/arm/freestanding/linux/hello.S[]
|
||||
** link:userland/arch/arm/c/freestanding/linux/hello.c[]
|
||||
* aarch64
|
||||
** link:userland/arch/aarch64/freestanding/hello.S[]
|
||||
** link:userland/arch/aarch64/c/freestanding/hello.c[]
|
||||
** link:userland/arch/aarch64/c/freestanding/hello_clobbers.c[]
|
||||
** link:userland/arch/aarch64/freestanding/linux/hello.S[]
|
||||
** link:userland/arch/aarch64/c/freestanding/linux/hello.c[]
|
||||
** link:userland/arch/aarch64/c/freestanding/linux/hello_clobbers.c[]
|
||||
|
||||
Determining the ARM syscall numbers:
|
||||
|
||||
@@ -11585,8 +11585,11 @@ Questions about the C inline assembly examples:
|
||||
|
||||
=== Calling conventions
|
||||
|
||||
* x86_64
|
||||
** link:userland/arch/x86_64/common_arch.h[] `ENTRY` and `EXIT`
|
||||
==== x86_64 calling convention
|
||||
|
||||
Examples:
|
||||
|
||||
* link:userland/arch/x86_64/common_arch.h[] `ENTRY` and `EXIT`
|
||||
|
||||
==== ARM calling convention
|
||||
|
||||
@@ -11594,10 +11597,10 @@ Call C standard library functions from assembly and vice versa.
|
||||
|
||||
* arm
|
||||
** link:userland/arch/arm/common_arch.h[] `ENTRY` and `EXIT`
|
||||
** link:userland/arch/arm/c_from_asm.S[]
|
||||
** link:userland/arch/arm/linux/c_from_asm.S[]
|
||||
* aarch64
|
||||
** link:userland/arch/aarch64/common_arch.h[] `ENTRY` and `EXIT`
|
||||
** link:userland/arch/aarch64/c/asm_from_c.c[]
|
||||
** link:userland/arch/aarch64/c/linux/asm_from_c.c[]
|
||||
|
||||
ARM Architecture Procedure Call Standard (AAPCS) is the name that ARM Holdings gives to the calling convention.
|
||||
|
||||
|
||||
1
userland/arch/aarch64/c/freestanding/linux/build
Symbolic link
1
userland/arch/aarch64/c/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/aarch64/c/linux/build
Symbolic link
1
userland/arch/aarch64/c/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/aarch64/freestanding/linux/build
Symbolic link
1
userland/arch/aarch64/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/arm/c/freestanding/linux/build
Symbolic link
1
userland/arch/arm/c/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/arm/freestanding/linux/build
Symbolic link
1
userland/arch/arm/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/arm/linux/build
Symbolic link
1
userland/arch/arm/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/x86_64/c/freestanding/linux/build
Symbolic link
1
userland/arch/x86_64/c/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
1
userland/arch/x86_64/freestanding/linux/build
Symbolic link
1
userland/arch/x86_64/freestanding/linux/build
Symbolic link
@@ -0,0 +1 @@
|
||||
../build
|
||||
Reference in New Issue
Block a user