Deleted Added
full compact
fbt_powerpc.c (256281) fbt_powerpc.c (260670)
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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright 2006-2008 John Birrell jb@freebsd.org
22 * Portions Copyright 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 (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

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

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 *
21 * Portions Copyright 2006-2008 John Birrell jb@freebsd.org
22 * Portions Copyright 2013 Justin Hibbits jhibbits@freebsd.org
23 *
24 * $FreeBSD: stable/10/sys/cddl/dev/fbt/fbt_powerpc.c 255099 2013-08-31 16:30:20Z jhibbits $
24 * $FreeBSD: stable/10/sys/cddl/dev/fbt/fbt_powerpc.c 260670 2014-01-15 05:19:37Z jhibbits $
25 *
26 */
27
28/*
29 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32

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

214 */
215 return (0);
216 }
217
218 if (name[0] == '_' && name[1] == '_')
219 return (0);
220
221 instr = (u_int32_t *) symval->value;
25 *
26 */
27
28/*
29 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
31 */
32

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

214 */
215 return (0);
216 }
217
218 if (name[0] == '_' && name[1] == '_')
219 return (0);
220
221 instr = (u_int32_t *) symval->value;
222 limit = (u_int32_t *) symval->value + symval->size;
222 limit = (u_int32_t *) (symval->value + symval->size);
223
224 for (; instr < limit; instr++)
225 if (*instr == FBT_MFLR_R0)
226 break;
227
228 if (*instr != FBT_MFLR_R0)
229 return (0);
230

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

273 if (*instr != FBT_MTLR_R0) {
274 instr++;
275 goto again;
276 }
277
278 instr++;
279
280 for (j = 0; j < 12 && instr < limit; j++, instr++) {
223
224 for (; instr < limit; instr++)
225 if (*instr == FBT_MFLR_R0)
226 break;
227
228 if (*instr != FBT_MFLR_R0)
229 return (0);
230

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

273 if (*instr != FBT_MTLR_R0) {
274 instr++;
275 goto again;
276 }
277
278 instr++;
279
280 for (j = 0; j < 12 && instr < limit; j++, instr++) {
281 if ((*instr == FBT_BCTR) || (*instr == FBT_BLR) |
281 if ((*instr == FBT_BCTR) || (*instr == FBT_BLR) ||
282 FBT_IS_JUMP(*instr))
283 break;
284 }
285
286 if (!(*instr == FBT_BCTR || *instr == FBT_BLR || FBT_IS_JUMP(*instr)))
287 goto again;
288
289 /*

--- 1062 unchanged lines hidden ---
282 FBT_IS_JUMP(*instr))
283 break;
284 }
285
286 if (!(*instr == FBT_BCTR || *instr == FBT_BLR || FBT_IS_JUMP(*instr)))
287 goto again;
288
289 /*

--- 1062 unchanged lines hidden ---