Deleted Added
full compact
trap_subr64.S (260670) trap_subr64.S (262675)
1/* $FreeBSD: stable/10/sys/powerpc/aim/trap_subr64.S 260670 2014-01-15 05:19:37Z jhibbits $ */
1/* $FreeBSD: stable/10/sys/powerpc/aim/trap_subr64.S 262675 2014-03-02 02:35:46Z 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

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

282 .size dtrace_invop_calltrap_addr, 8
283dtrace_invop_calltrap_addr:
284 .word 0
285 .word 0
286
287 .text
288#endif
289
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

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

282 .size dtrace_invop_calltrap_addr, 8
283dtrace_invop_calltrap_addr:
284 .word 0
285 .word 0
286
287 .text
288#endif
289
290#ifdef SMP
291/*
292 * Processor reset exception handler. These are typically
293 * the first instructions the processor executes after a
294 * software reset. We do this in two bits so that we are
295 * not still hanging around in the trap handling region
296 * once the MMU is turned on.
297 */
298 .globl CNAME(rstcode), CNAME(rstsize)

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

317 bl CNAME(cpudep_ap_early_bootstrap) /* Set PCPU */
318 nop
319 lis %r3,1@l
320 bl CNAME(pmap_cpu_bootstrap) /* Turn on virtual memory */
321 nop
322 bl CNAME(cpudep_ap_bootstrap) /* Set up PCPU and stack */
323 nop
324 mr %r1,%r3 /* Use new stack */
290/*
291 * Processor reset exception handler. These are typically
292 * the first instructions the processor executes after a
293 * software reset. We do this in two bits so that we are
294 * not still hanging around in the trap handling region
295 * once the MMU is turned on.
296 */
297 .globl CNAME(rstcode), CNAME(rstsize)

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

316 bl CNAME(cpudep_ap_early_bootstrap) /* Set PCPU */
317 nop
318 lis %r3,1@l
319 bl CNAME(pmap_cpu_bootstrap) /* Turn on virtual memory */
320 nop
321 bl CNAME(cpudep_ap_bootstrap) /* Set up PCPU and stack */
322 nop
323 mr %r1,%r3 /* Use new stack */
324 bl CNAME(cpudep_ap_setup)
325 nop
326 GET_CPUINFO(%r5)
327 ld %r3,(PC_RESTORE)(%r5)
328 cmpldi %cr0,%r3,0
329 beq %cr0,2f
330 nop
331 li %r4,1
332 b CNAME(longjmp)
333 nop
3342:
335#ifdef SMP
325 bl CNAME(machdep_ap_bootstrap) /* And away! */
326 nop
336 bl CNAME(machdep_ap_bootstrap) /* And away! */
337 nop
338#endif
327
328 /* Should not be reached */
3299:
330 b 9b
339
340 /* Should not be reached */
3419:
342 b 9b
331#endif
332
333/*
334 * This code gets copied to all the trap vectors
335 * (except ISI/DSI, ALI, and the interrupts)
336 */
337
338 .globl CNAME(trapcode),CNAME(trapsize)
339CNAME(trapcode):

--- 486 unchanged lines hidden ---
343
344/*
345 * This code gets copied to all the trap vectors
346 * (except ISI/DSI, ALI, and the interrupts)
347 */
348
349 .globl CNAME(trapcode),CNAME(trapsize)
350CNAME(trapcode):

--- 486 unchanged lines hidden ---