Hi Darwin,
could you please turn off the HTML crap in your e-mail, it is almost
unreadable in my mail client.
Your get_irqnr_and_base macro is probably not working. Try the following
code instead:
Regards,
Erwin
.macro disable_fiq
.endm
.macro get_irqnr_and_base, irqnr, irqstat, base, tmp
ldr \base, =AIC_ISR
ldr \irqstat, [\base]
mov \irqnr, #1
1001:
tst \irqstat, #2
bne 1002f
add \irqnr, \irqnr, #1
mov \irqstat, \irqstat, lsr #1
cmp \irqnr, #19
bcc 1001b
1002: /* EQ will be set if we reach 19 */
.endm
.macro irq_prio_table
.endm
Am Donnerstag, den 02.08.2007, 01:36 +0800 schrieb Darwin Chen:
> Dear all,
>
>
>
> I have a big problem about porting Linux-2.6.22.-uc0 to Winbond
> W90N740. When get_irqnr_and_base is implemented as following, the
> listed error will occurred. Is this get_irqnr_and_base mistake? The
> error prompts “Flags: nZCv IRQs off FIQs on Mode SVC_32 Segment
> kernel”, but the error is occurred in __irq_svc, why does the Flag
> prompt “IRQs off”?
>
>
>
> /*
>
> * include/asm/arch-w90n740/entry-macro.S
>
> *
>
> * defines machine dependent entry macros.
>
> * included in the arch/arm/kernel/entry-armv.S
>
> */
>
> #include <asm/mach-types.h>
>
> #include <asm/arch/hardware.h>
>
> #ifndef CONFIG_ARCH_W90N740
>
> #error "Did not defined WINBOND W90N740"
>
> #endif
>
> .macro get_irqnr_preamble base, tmp
>
> /* FIXME */
>
> .endm
>
>
>
> ..macro disable_fiq
>
> /* FIXME */
>
> ..endm
>
>
>
> .macro arch_ret_to_user base, tmp
>
> /* FIXME */
>
> .endm
>
>
>
> .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
>
> mov \irqnr, #0
>
> ldr r10, =AIC_IPER
>
> ldr r10,[r10]
>
> ldr \tmp, =AIC_ISNR
>
> ldr \tmp,[\tmp]
>
> mov r9,#0
>
> add r9,r9, r10, LSR#2
>
> cmp r10, \tmp
>
> bne 99f
>
> mov \irqnr, \tmp
>
> 99:
>
> .endm
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev