Deleted Added
full compact
trap_subr32.S (227386) trap_subr32.S (242723)
1/* $FreeBSD: head/sys/powerpc/aim/trap_subr32.S 227386 2011-11-09 13:48:23Z nwhitehorn $ */
1/* $FreeBSD: head/sys/powerpc/aim/trap_subr32.S 242723 2012-11-07 23:45:09Z jhibbits $ */
2/* $NetBSD: trap_subr.S,v 1.20 2002/04/22 23:20:08 kleink Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1996 TooLs GmbH.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

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

235 /* Make sure HV bit of MSR propagated to SRR1 */ \
236 mfmsr %r2; \
237 or %r3,%r2,%r3; \
238 \
239 mtsrr1 %r3; \
240 mfsprg2 %r2; /* restore r2 & r3 */ \
241 mfsprg3 %r3
242
2/* $NetBSD: trap_subr.S,v 1.20 2002/04/22 23:20:08 kleink Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
6 * Copyright (C) 1995, 1996 TooLs GmbH.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

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

235 /* Make sure HV bit of MSR propagated to SRR1 */ \
236 mfmsr %r2; \
237 or %r3,%r2,%r3; \
238 \
239 mtsrr1 %r3; \
240 mfsprg2 %r2; /* restore r2 & r3 */ \
241 mfsprg3 %r3
242
243#ifdef KDTRACE_HOOKS
244 .data
245 .globl dtrace_invop_jump_addr
246 .align 4
247 .type dtrace_invop_jump_addr, @object
248 .size dtrace_invop_jump_addr, 4
249dtrace_invop_jump_addr:
250 .word 0
251 .word 0
252 .globl dtrace_invop_calltrap_addr
253 .align 4
254 .type dtrace_invop_calltrap_addr, @object
255 .size dtrace_invop_calltrap_addr, 4
256dtrace_invop_calltrap_addr:
257 .word 0
258 .word 0
259
260 .text
261#endif
262
243/*
244 * The next two routines are 64-bit glue code. The first is used to test if
245 * we are on a 64-bit system. By copying it to the illegal instruction
246 * handler, we can test for 64-bit mode by trying to execute a 64-bit
247 * instruction and seeing what happens. The second gets copied in front
248 * of all the other handlers to restore 32-bit bridge mode when traps
249 * are taken.
250 */

--- 643 unchanged lines hidden ---
263/*
264 * The next two routines are 64-bit glue code. The first is used to test if
265 * we are on a 64-bit system. By copying it to the illegal instruction
266 * handler, we can test for 64-bit mode by trying to execute a 64-bit
267 * instruction and seeing what happens. The second gets copied in front
268 * of all the other handlers to restore 32-bit bridge mode when traps
269 * are taken.
270 */

--- 643 unchanged lines hidden ---