de-tabify

modified:   stub/src/arch/i386/bxx.S
This commit is contained in:
John Reiser 2019-03-02 15:48:44 -08:00
parent 3de0008543
commit 2653a0749a

View File

@ -31,16 +31,16 @@ i386bxx: # (*f_unf)(xo->buf, out_len, h.b_cto8, h.b_ftid);
#ifndef NO_METHOD_CHECK #ifndef NO_METHOD_CHECK
cmpl $0x49,4*NBPW(%esp); jne ckend0 # filter: JMP, CALL, 6-byte Jxx cmpl $0x49,4*NBPW(%esp); jne ckend0 # filter: JMP, CALL, 6-byte Jxx
#endif #endif
push %ebp; movl %esp,%ebp push %ebp; movl %esp,%ebp
push %ebx # C-language saved regs push %ebx # C-language saved regs
push %esi push %esi
push %edi push %edi
movl 2*NBPW(%ebp),%esi // src movl 2*NBPW(%ebp),%esi // src
movl 3*NBPW(%ebp),%ecx // len movl 3*NBPW(%ebp),%ecx // len
movl 4*NBPW(%ebp),%edx // b_cto8 (%dl) movl 4*NBPW(%ebp),%edx // b_cto8 (%dl)
lea (1- 4)(%esi,%ecx),%ecx # beyond last possible displacement lea (1- 4)(%esi,%ecx),%ecx # beyond last possible displacement
movl %esi,%ebx // start of buffer movl %esi,%ebx // start of buffer
jmp ckstart jmp ckstart
ckloop4: ckloop4:
cmpl %ecx,%esi; jae ckend cmpl %ecx,%esi; jae ckend
@ -66,10 +66,10 @@ ckstart:
cmpl %ecx,%esi; jae ckend cmpl %ecx,%esi; jae ckend
lodsb; jmp ckloop2 # 0x0F prefix would overlap previous displacement lodsb; jmp ckloop2 # 0x0F prefix would overlap previous displacement
ckend: ckend:
pop %edi pop %edi
pop %esi pop %esi
pop %ebx pop %ebx
pop %ebp pop %ebp
ckend0: ckend0:
#ifndef NO_METHOD_CHECK #ifndef NO_METHOD_CHECK
ret ret