ldr r6, =xlli_OSTREGS_PHYSICAL_BASE ; Load OS timer base address
ldr r7, [r6, #xlli_OSCR0_offset] ; Fetch starting value of OSCR0
ldr r5, =0x384000
add r7, r7, r5 ; about 200ms, 0x384000 about 1000ms
delay2 ldr r5, [r6, #xlli_OSCR0_offset] ; Fetch current OSCR0 value
cmp r5, r7 ; Is the timer past the time out value?
bmi delay2
ldr r6, =xlli_OSTREGS_PHYSICAL_BASE ; Load OS timer base address
ldr r7, [r6, #xlli_OSCR0_offset] ; Fetch starting value of OSCR0
ldr r5, =0x384000
add r7, r7, r5 ; about 200ms, 0x384000 about 1000ms
delay3 ldr r5, [r6, #xlli_OSCR0_offset] ; Fetch current OSCR0 value
cmp r5, r7 ; Is the timer past the time out value?
bmi delay3