summaryrefslogtreecommitdiff
path: root/openpicc/os/boot
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-03 04:47:34 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-12-03 04:47:34 +0000
commit259a903e5aaeb033d056aaaa90730dfa9ef5504a (patch)
tree929c29880985609766c420956bc857914c6eef24 /openpicc/os/boot
parent6c7ace95cefae663bfff3514ca246f8ea109183e (diff)
Fix FIQ code for SSC TF emulation
git-svn-id: https://svn.openpcd.org:2342/trunk@364 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/os/boot')
-rw-r--r--openpicc/os/boot/boot.s15
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
personal git repositories of Harald Welte. Your mileage may vary