diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-03 04:47:34 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-12-03 04:47:34 +0000 |
commit | 259a903e5aaeb033d056aaaa90730dfa9ef5504a (patch) | |
tree | 929c29880985609766c420956bc857914c6eef24 | |
parent | 6c7ace95cefae663bfff3514ca246f8ea109183e (diff) |
Fix FIQ code for SSC TF emulation
git-svn-id: https://svn.openpcd.org:2342/trunk@364 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r-- | openpicc/os/boot/boot.s | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/openpicc/os/boot/boot.s b/openpicc/os/boot/boot.s index 43c4885..e709b94 100644 --- a/openpicc/os/boot/boot.s +++ b/openpicc/os/boot/boot.s @@ -234,15 +234,14 @@ my_fiq_handler: ldrne r8, [r11] tstne r8, #0x01 /* Check whether a TX is pending */ - beq .no_ssc - mov r8, #0x00 - str r8, [r11] /* Set ssc_tx_pending to 0 */ + movne r8, #0x00 + strne r8, [r11] /* Set ssc_tx_pending to 0 */ - ldr r11, =AT91C_BASE_SSC - mov r8, #SSC_CR_TXEN - str r8, [r11, #SSC_CR] /* Write TXEN to SSC_CR, enables tx */ - -.no_ssc: + ldrne r11, =AT91C_BASE_SSC + movne r8, #SSC_CR_TXEN + strne r8, [r11, #SSC_CR] /* Write TXEN to SSC_CR, enables tx */ + +.no_ssc: /* Trigger PIO_SECONDARY_IRQ */ mov r11, #PIO_SECONDARY_IRQ_BIT ldr r8, =AT91C_BASE_AIC |