svn commit: r254634 - head/sys/cddl/dev/dtrace/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Thu Aug 22 02:54:21 UTC 2013
Author: jhibbits
Date: Thu Aug 22 02:54:20 2013
New Revision: 254634
URL: http://svnweb.freebsd.org/changeset/base/254634
Log:
Make dtrace_copy() actually work on PowerPC. Although unused currently,
it may be used in the future by dtrace.
Modified:
head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S
Modified: head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S
==============================================================================
--- head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S Thu Aug 22 01:54:52 2013 (r254633)
+++ head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S Thu Aug 22 02:54:20 2013 (r254634)
@@ -125,13 +125,13 @@ void
dtrace_copy(uintptr_t src, uintptr_t dest, size_t size)
*/
ASENTRY_NOPROF(dtrace_copy)
- addme %r7,%r3
- addme %r8,%r4
+ subi %r7,%r3,1
+ subi %r8,%r4,1
+ mtctr %r5
1:
lbzu %r3,1(%r7)
stbu %r3,1(%r8)
- addme %r5,%r5
- beq 2f
+ bdnz 1b
2:
blr
END(dtrace_copy)
More information about the svn-src-all
mailing list