Commit 77f03ce8 authored by Kevin Bracey's avatar Kevin Bracey
Browse files

Disabled interrupts around peek of timer 0.

Version 5.28. Tagged as 'TCPIPLibs-5_28'
parent 65244784
/* (5.27)
/* (5.28)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 5.27
#define Module_MajorVersion_CMHG 5.28
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 19 Jul 1999
#define Module_Date_CMHG 21 Jul 1999
#define Module_MajorVersion "5.27"
#define Module_Version 527
#define Module_MajorVersion "5.28"
#define Module_Version 528
#define Module_MinorVersion ""
#define Module_Date "19 Jul 1999"
#define Module_Date "21 Jul 1999"
#define Module_FullVersion "5.27"
#define Module_FullVersion "5.28"
......@@ -21,12 +21,15 @@
AREA |Asm$$Code|, CODE, READONLY
_get_t0_count
MOV r12,lr
SWI XOS_EnterOS
SWI XOS_EnterOS ; Must be in SVC mode to peek IOC/IOMD
MOV r3,#IOC
; Shut off interrupts (briefly) to ensure an atomic read of these
; silly hardware registers.
TEQP pc,#I_bit :OR: SVC_mode
STRB r3,[r3,#Timer0LR]
LDRB r1,[r3,#Timer0CL]
LDRB r0,[r3,#Timer0CH]
ORR r0,r1,r0,LSL #8
MOVS pc,r12
MOVS pc,r12 ; Will restore mode and interrupt status
END
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment