mini2440 system boot (ii) interrupt register

Interrupt Register involves multiple registers, we currently need to shield break, so the first concern INTMSK to register.

INTERRUPT MASK (INTMSK) REGISTER

Note that each bit is shielded interrupt function, all shielded fill 0xffffffff.

We also look at every bit of meaning:

 

initialization:

Referring uboot mini2440 codes CD, uboot-1.1.6 \ cpu \ arm920t \ start.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

Guess you like

Origin www.cnblogs.com/souroot/p/11124186.html