Deleted Added
full compact
dtrace_asm.S (254509) dtrace_asm.S (254634)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 7 unchanged lines hidden (view full) ---

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S 254509 2013-08-19 05:10:46Z jhibbits $
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_asm.S 254634 2013-08-22 02:54:20Z jhibbits $
25 */
26/*
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31#include "assym.s"
32

--- 87 unchanged lines hidden (view full) ---

120
121
122/*
123XXX: unoptimized
124void
125dtrace_copy(uintptr_t src, uintptr_t dest, size_t size)
126*/
127ASENTRY_NOPROF(dtrace_copy)
25 */
26/*
27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31#include "assym.s"
32

--- 87 unchanged lines hidden (view full) ---

120
121
122/*
123XXX: unoptimized
124void
125dtrace_copy(uintptr_t src, uintptr_t dest, size_t size)
126*/
127ASENTRY_NOPROF(dtrace_copy)
128 addme %r7,%r3
129 addme %r8,%r4
128 subi %r7,%r3,1
129 subi %r8,%r4,1
130 mtctr %r5
1301:
131 lbzu %r3,1(%r7)
132 stbu %r3,1(%r8)
1311:
132 lbzu %r3,1(%r7)
133 stbu %r3,1(%r8)
133 addme %r5,%r5
134 beq 2f
134 bdnz 1b
1352:
136 blr
137END(dtrace_copy)
138
139/*
140void
141dtrace_copystr(uintptr_t uaddr, uintptr_t kaddr, size_t size,
142 volatile uint16_t *flags)

--- 68 unchanged lines hidden ---
1352:
136 blr
137END(dtrace_copy)
138
139/*
140void
141dtrace_copystr(uintptr_t uaddr, uintptr_t kaddr, size_t size,
142 volatile uint16_t *flags)

--- 68 unchanged lines hidden ---