mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
73b8b57aea
Added more logs in PSW components for identifying issues. Upgraded OpenSSL and SgxSSL to latest version 1.1.1i in DCAP components. Added data base migration support in PCCS. Fixed bugs. Signed-off-by: Li, Xun <xun.li@intel.com>
24 lines
374 B
ArmAsm
24 lines
374 B
ArmAsm
#include "DEFS.h"
|
|
|
|
ENTRY(_bcmp)
|
|
RETGUARD_SETUP(_bcmp, r11)
|
|
xorl %eax,%eax /* clear return value */
|
|
cld /* set compare direction forward */
|
|
|
|
movq %rdx,%rcx /* compare by words */
|
|
shrq $3,%rcx
|
|
repe
|
|
cmpsq
|
|
jne L1
|
|
|
|
movq %rdx,%rcx /* compare remainder by bytes */
|
|
andq $7,%rcx
|
|
repe
|
|
cmpsb
|
|
je L2
|
|
|
|
L1: incl %eax
|
|
L2: RETGUARD_CHECK(_bcmp, r11)
|
|
ret
|
|
END_WEAK(_bcmp)
|