From 259a903e5aaeb033d056aaaa90730dfa9ef5504a Mon Sep 17 00:00:00 2001 From: henryk Date: Mon, 3 Dec 2007 04:47:34 +0000 Subject: Fix FIQ code for SSC TF emulation git-svn-id: https://svn.openpcd.org:2342/trunk@364 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/os/boot/boot.s | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'openpicc/os') 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 -- cgit v1.2.3