The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b2d2a5903518668aa22fb906b021f99d2952c08c

commit b2d2a5903518668aa22fb906b021f99d2952c08c
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2021-07-19 13:46:03 +0000
Commit:     Mateusz Guzik <[email protected]>
CommitDate: 2021-08-23 13:23:42 +0000

    arm: flip memclr to use memset
    
    Reviewed by:    andrew
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D31217
---
 sys/libkern/arm/memclr.S | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys/libkern/arm/memclr.S b/sys/libkern/arm/memclr.S
index 2883d3f23104..0f01b0b6ad5e 100644
--- a/sys/libkern/arm/memclr.S
+++ b/sys/libkern/arm/memclr.S
@@ -32,11 +32,13 @@ __FBSDID("$FreeBSD$");
  * This implements
  *  void __aeabi_memclr4(void *dest, size_t len)
  * by calling:
- *  void bzero(dest, len)
+ *  void *memset(dest, 0, len)
  */
 ENTRY_NP(__aeabi_memclr4)
 EENTRY_NP(__aeabi_memclr8)
-       b       bzero
+       mov     r2, r1
+       mov     r1, #0
+       b       memset
 EEND(__aeabi_memclr8)
 END(__aeabi_memclr4)
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to