lib/libc/mips/string/bzero.S -- problem in 64-bit mode.

Artem Belevich fbsdlist at src.cx
Tue Feb 22 05:39:11 UTC 2011


> I just tested this with a simple program - and there is certainly an
> issue here.  If you can send me a patch, I can check that in after
> testing.

Try attached diff.

> The kernel version of bzero() does not seem to have the SZREG==8 case,
> and this bug.

True. It still uses 32-bit sw to zero stuff out. There are number of
routines in the kernel that could take advantage of 64-bit
instructions.

--Artem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzero.diff
Type: application/octet-stream
Size: 1178 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20110222/9480b885/bzero.obj


More information about the freebsd-mips mailing list