ArmPkg/CompilerIntrinsicsLib: Reverse the order of the 'ldrb' instructions in __aeabi_uread4
Change __aeabi_uread4 from: ldrb r2, [r0, #1] ldrb r1, [r0] (...) to: ldrb r1, [r0] ldrb r2, [r0, #1] (...) This change is a workaround to handle correctly __aeabi_uread4 on ARM Versatile Express RTSM. It should not have any major consequence on the other ARM platforms. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12481 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
; );
|
; );
|
||||||
;
|
;
|
||||||
__aeabi_uread4
|
__aeabi_uread4
|
||||||
ldrb r2, [r0, #1]
|
|
||||||
ldrb r1, [r0]
|
ldrb r1, [r0]
|
||||||
|
ldrb r2, [r0, #1]
|
||||||
ldrb r3, [r0, #2]
|
ldrb r3, [r0, #2]
|
||||||
ldrb r0, [r0, #3]
|
ldrb r0, [r0, #3]
|
||||||
orr r1, r1, r2, lsl #8
|
orr r1, r1, r2, lsl #8
|
||||||
|
Reference in New Issue
Block a user