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>
44 lines
817 B
ArmAsm
44 lines
817 B
ArmAsm
/*
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
* Public domain.
|
|
* Adapted for NetBSD/x86_64 by Frank van der Linden <fvdl@wasabisystems.com>
|
|
*/
|
|
|
|
#include "DEFS.h"
|
|
|
|
ENTRY(_bzero)
|
|
RETGUARD_SETUP(_bzero, r11)
|
|
movq %rsi,%rdx
|
|
|
|
cld /* set fill direction forward */
|
|
xorq %rax,%rax /* set fill data to 0 */
|
|
|
|
/*
|
|
* if the string is too short, it's really not worth the overhead
|
|
* of aligning to word boundaries, etc. So we jump to a plain
|
|
* unaligned set.
|
|
*/
|
|
cmpq $16,%rdx
|
|
jb L1
|
|
|
|
movq %rdi,%rcx /* compute misalignment */
|
|
negq %rcx
|
|
andq $7,%rcx
|
|
subq %rcx,%rdx
|
|
rep /* zero until word aligned */
|
|
stosb
|
|
|
|
movq %rdx,%rcx /* zero by words */
|
|
shrq $3,%rcx
|
|
andq $7,%rdx
|
|
rep
|
|
stosq
|
|
|
|
L1: movq %rdx,%rcx /* zero remainder by bytes */
|
|
rep
|
|
stosb
|
|
|
|
RETGUARD_CHECK(_bzero, r11)
|
|
ret
|
|
END_WEAK(_bzero)
|