distributor之Interrupt Set-Enable Registers, GICD_ISENABLERn

相对于distributor基地址偏移区间在0x100-0x17C,此寄存器就是把对应的中断使能,使之可以被触发上报处理器;此寄存器是写0无效的,所以在写此寄存器时可以直接写,不用再先读再或再写了;对应bit写1即代表使能;如何计算某一个中断对应哪个寄存器的哪个bit位呢?方法如下:

比如中断号是 m, when DIV and MOD are the integer division and modulo operations:

page91image29000

the corresponding GICD_ISENABLER number,n, is given byn=m DIV 32

the offset of the required GICD_ISENABLER is (0x100+ (4*n))
the bit number of the required Set-enable bit in this register is
mMOD 32. 


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值