zoukankan      html  css  js  c++  java
  • mini2440系统引导(二)中断寄存器

    中断寄存器涉及多个寄存器,我们目前需要屏蔽中断,所以先关心INTMSK寄存器即可。

    INTERRUPT MASK (INTMSK) REGISTER

    注意,每一位置1时屏蔽中断功能,全部屏蔽填0xffffffff.

    我们也了解一下每一个bit的含义:

    初始化:

    参照mini2440光盘中的uboot代码,u-boot-1.1.6cpuarm920tstart.S

    #elif defined(CONFIG_S3C2410)
    # define pWTCON 0x53000000
    # define INTMOD 0X4A000004
    # define INTMSK 0x4A000008 /* Interupt-Controller base addresses */
    # define INTSUBMSK 0x4A00001C
    # define CLKDIVN 0x4C000014 /* clock divisor register */
    #endif

    #if defined(CONFIG_S3C2400) || defined(CONFIG_S3C2410)
    ldr r0, =pWTCON
    mov r1, #0x0
    str r1, [r0]

    /*
    * mask all IRQs by setting all bits in the INTMR - default
    */
    mov r1, #0xffffffff
    ldr r0, =INTMSK
    str r1, [r0]
    # if defined(CONFIG_S3C2410)
    ldr r1, =0x3ff  //这里并没有全部关闭,全关填0xffffffff好了
    ldr r0, =INTSUBMSK
    str r1, [r0]
    # endif

  • 相关阅读:
    随机数
    ASP .NET下的301重定向如何做
    网站外部链接建设方案
    解析ASP.NET WebForm和Mvc开发的区别
    委托、匿名委托和lambda表达式
    图片垂直居中
    jquery函数写法
    [转]函数方法常用的动词
    CSS Hack
    富文本编辑器
  • 原文地址:https://www.cnblogs.com/souroot/p/11124186.html
Copyright © 2011-2022 走看看