head_64.S (6cb7bfebb145af5ea1d052512a2ae7ff07a47202) head_64.S (35499c0195e46f479cf6ac16ad8d3f394b5fcc10)
1/*
2 * arch/ppc64/kernel/head.S
3 *
4 * PowerPC version
5 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
6 *
7 * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP
8 * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu>

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

1496#ifdef CONFIG_PPC_PMAC
1497/*
1498 * On PowerMac, secondary processors starts from the reset vector, which
1499 * is temporarily turned into a call to one of the functions below.
1500 */
1501 .section ".text";
1502 .align 2 ;
1503
1/*
2 * arch/ppc64/kernel/head.S
3 *
4 * PowerPC version
5 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
6 *
7 * Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP
8 * Copyright (C) 1996 Cort Dougan <cort@cs.nmt.edu>

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

1496#ifdef CONFIG_PPC_PMAC
1497/*
1498 * On PowerMac, secondary processors starts from the reset vector, which
1499 * is temporarily turned into a call to one of the functions below.
1500 */
1501 .section ".text";
1502 .align 2 ;
1503
1504 .globl pmac_secondary_start_1
1505pmac_secondary_start_1:
1506 li r24, 1
1507 b .pmac_secondary_start
1504 .globl __secondary_start_pmac_0
1505__secondary_start_pmac_0:
1506 /* NB the entries for cpus 0, 1, 2 must each occupy 8 bytes. */
1507 li r24,0
1508 b 1f
1509 li r24,1
1510 b 1f
1511 li r24,2
1512 b 1f
1513 li r24,3
15141:
1508
1515
1509 .globl pmac_secondary_start_2
1510pmac_secondary_start_2:
1511 li r24, 2
1512 b .pmac_secondary_start
1513
1514 .globl pmac_secondary_start_3
1515pmac_secondary_start_3:
1516 li r24, 3
1517 b .pmac_secondary_start
1518
1519_GLOBAL(pmac_secondary_start)
1520 /* turn on 64-bit mode */
1521 bl .enable_64b_mode
1522 isync
1523
1524 /* Copy some CPU settings from CPU 0 */
1525 bl .__restore_cpu_setup
1526

--- 434 unchanged lines hidden ---
1516_GLOBAL(pmac_secondary_start)
1517 /* turn on 64-bit mode */
1518 bl .enable_64b_mode
1519 isync
1520
1521 /* Copy some CPU settings from CPU 0 */
1522 bl .__restore_cpu_setup
1523

--- 434 unchanged lines hidden ---