在ARM系统调用 [英] System Call in ARM

查看:264
本文介绍了在ARM系统调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了一下系统在Linux中调用,到处都给出关于x86架构(ox80中断和SYSENTER)的描述。但我无法追查的文件和程序在ARM achitecture系统调用。任何人都可以请帮助。

I have read about system calls in Linux, and everywhere description is given regarding x86 architecture (ox80 interrupt and SYSENTER). But i am not able to track down the files and process for a system call in ARM achitecture. Can anyone please help.

我认识了一些相关的文件

Few relevant files which i got to know are

\\弓\\ ARM \\核心\\ calls.S

的\\弓\\ ARM \\核心\\入门common.S(解释需要)

\arch\arm\kernel\entry-common.S (explanation needed)

推荐答案

在ARM的世界里,您可以通过<$ C做了软件中断(机制通知内核) $ C>超级用户调用/ SVC (previously称为SWI)。

In ARM world, you do a software interrupt (mechanism to signal the kernel) by supervisor call / svc (previously called SWI).

ARM汇编(UAL)的语法如下:

ARM assembly (UAL) syntax looks like this:

SVC{<c>}{<q>} {#}<imm>

(在Linux中,你需要通过#0)

(In Linux you need to pass #0)

您应该像<一个其他项目骗href=\"https://github.com/android/platform_bionic/blob/master/libc/arch-arm/syscalls/write.S\">bionic/write或 uClibc的样板

这篇关于在ARM系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆