2226ce021a
the -fpcc-struct-return calling convention properly instead of returning garbage. This may break backwards compatibility with some old binaries that were compiled when -fno-pcc-struct-return was the default.
20 lines
274 B
ArmAsm
20 lines
274 B
ArmAsm
/*
|
|
* Written by J.T. Conklin <jtc@netbsd.org>.
|
|
* Public domain.
|
|
*/
|
|
|
|
#include <machine/asm.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
ENTRY(div)
|
|
pushl %ebx
|
|
movl 8(%esp),%ebx
|
|
movl 12(%esp),%eax
|
|
movl 16(%esp),%ecx
|
|
cdq
|
|
idiv %ecx
|
|
movl %eax,(%ebx)
|
|
movl %edx,4(%ebx)
|
|
popl %ebx
|
|
ret $4
|