是ARM instructuons SWI和SVC完全一样的东西? [英] Are ARM instructuons SWI and SVC exactly same thing?

查看:590
本文介绍了是ARM instructuons SWI和SVC完全一样的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ARM汇编有进入超级状态SWI和SVC指令。

ARM assembly has SWI and SVC instructions for entering into 'supervisor mode'.

什么混淆我是,为什么有他们两个? 这里的据说SVC是以前的SWI。这是否意味着基本上他们改变了记忆?他们是同样的事情?我可以使用它们互换?难道他们中的一个架构,以及其他前后存在?

What confuses me is, why there are two of them? Here it is said that SVC was formerly SWI. Does it mean that basically they changed the mnemonic? Are they the same thing? Can I use them interchangeably? Does one of them exist before an architecture, and other after?

推荐答案

是的,SWI和SVC是一样的东西,它只是一个名称的改变。 previously,SVC指令被称为SWI软件中断。

Yes, SWI and SVC are same thing, it is just a name change. Previously, the SVC instruction was called SWI, Software Interrupt.

运算code为SVC(和SWI)是部分用户定义的(0-23位是用户定义,犹如参数SVC处理程序)。位24-27是b1111这些4位CPU,使认识到运code是SVC(或SWI)。
看到 ARM信息中心了解更多详情。

The opcode for SVC (and SWI) is partially user defined (bit 0-23 is user defined and is like a parameter to SVC handler). Bits 24-27 are b1111 and these 4 bits makes CPU to realize that the opcode is SVC (or SWI). see ARM Information Center for more details.

这篇关于是ARM instructuons SWI和SVC完全一样的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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