Page MenuHomeFreeBSD

amd64: reimplement libc memset and bzero with kernel memset
ClosedPublic

Authored by mjg on Sep 28 2018, 11:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:39 AM
Unknown Object (File)
Aug 30 2023, 6:17 PM
Unknown Object (File)
Aug 30 2023, 6:15 PM
Unknown Object (File)
Aug 30 2023, 6:13 PM
Unknown Object (File)
Aug 30 2023, 6:06 PM
Unknown Object (File)
Jul 10 2023, 7:02 AM
Unknown Object (File)
Jun 19 2023, 6:32 PM
Unknown Object (File)
Apr 13 2023, 3:36 PM
Subscribers

Details

Summary

This is a depessimization, see r334537 for an explanation.

bzero was removed from the kernel but remains in libc. Macroify to accommodate differences to memset (no return value, always setting to 0).

The bzero.S file is left in place due to libc build magic which pulls in a C variant if a matching .S file is missing.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable