Deleted Added
sdiff udiff text old ( 260670 ) new ( 262675 )
full compact
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
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
336 bl CNAME(machdep_ap_bootstrap) /* And away! */
337 nop
338#endif
339
340 /* Should not be reached */
3419:
342 b 9b
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 ---