Hello guys,
Is the .s file exports some fuctions that called by ISR.
For example ,if the following code exports the fuctions?
how to call the functions in .c files?
thanks,
Peter
;* @date 2002/04/08
;*
;* Log:
;* 2002/04/08 Start
;*
;******************************************************************************
INCLUDE kxarm.h
PHY_RAM_START EQU 0x30000000
VIR_RAM_START EQU 0x8c000000
TEXTAREA
LEAF_ENTRY Launch
ldr r2, = PhysicalStart
ldr r3, = (VIR_RAM_START - PHY_RAM_START)
sub r2, r2, r3
mov r1, #0x0070 ; Disable MMU
mcr p15, 0, r1, c1, c0, 0
nop
mov pc, r2 ; Jump to PStart
nop
; MMU & caches now disabled.
PhysicalStart
mov r2, #0
mcr p15, 0, r2, c8, c7, 0 ; Flush the TLB
mov pc, r0 ; Jump to program we are launching.
;++
; Routine:
;
; ShowLights
;
; Description:
;
; Set the Hexadecimal LED array to the values specified
;
; Arguments:
;
; r0 = word containing 8 nibble values to write to the Hexadecimal
LED
;
;
;--
LEAF_ENTRY ShowLights
mov pc, lr
END