Implementing syscall invocation sequence for ARMv7 architecture.

Removing dependencies to third-party libc routine implementations.
Introducing __TARGET_HOST define for host (non-MCU) builds.
This commit is contained in:
Ruben Ayrapetyan
2014-10-16 18:36:55 +04:00
parent 90789453ba
commit 9c3c835a7e
11 changed files with 156 additions and 213 deletions
+7 -5
View File
@@ -13,8 +13,8 @@
* limitations under the License.
*/
#ifndef LINUX_X64_ASM_H
#define LINUX_X64_ASM_H
#ifndef ASM_X64_H
#define ASM_X64_H
/*
* mov syscall_no -> %rax
@@ -45,7 +45,7 @@
* mov syscall_no -> %rax
* mov arg1 -> %rdi
* mov arg2 -> %rsi
* mov arg2 -> %rdx
* mov arg3 -> %rdx
* syscall
* mov %rax -> ret
*/
@@ -62,6 +62,8 @@
callq main; \
\
mov %rax, %rdi; \
callq __exit;
callq __exit; \
1: \
jmp 1b
#endif /* !LINUX_X64_ASM_H */
#endif /* !ASM_X64_H */