head.S (4f2c0a4acffbec01079c28f839422e64ddeff004) head.S (eda205211a522312b667d5bd25d58bee8504c09e)
1/* This file is subject to the terms and conditions of the GNU General Public
2 * License. See the file "COPYING" in the main directory of this archive
3 * for more details.
4 *
5 * Copyright (C) 1999-2007 by Helge Deller <deller@gmx.de>
6 * Copyright 1999 SuSE GmbH (Philipp Rumpf)
7 * Copyright 1999 Philipp Rumpf (prumpf@tux.org)
8 * Copyright 2000 Hewlett Packard (Paul Bame, bame@puffin.external.hp.com)

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

175 .import _mcount,data
176 /* initialize mcount FPTR */
177 /* Get the global data pointer */
178 loadgp
179 load32 PA(_mcount), %r10
180 std %dp,0x18(%r10)
181#endif
182
1/* This file is subject to the terms and conditions of the GNU General Public
2 * License. See the file "COPYING" in the main directory of this archive
3 * for more details.
4 *
5 * Copyright (C) 1999-2007 by Helge Deller <deller@gmx.de>
6 * Copyright 1999 SuSE GmbH (Philipp Rumpf)
7 * Copyright 1999 Philipp Rumpf (prumpf@tux.org)
8 * Copyright 2000 Hewlett Packard (Paul Bame, bame@puffin.external.hp.com)

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

175 .import _mcount,data
176 /* initialize mcount FPTR */
177 /* Get the global data pointer */
178 loadgp
179 load32 PA(_mcount), %r10
180 std %dp,0x18(%r10)
181#endif
182
183#ifdef CONFIG_64BIT
184 /* Get PDCE_PROC for monarch CPU. */
185#define MEM_PDC_LO 0x388
186#define MEM_PDC_HI 0x35C
183#define MEM_PDC_LO 0x388
184#define MEM_PDC_HI 0x35C
185#ifdef CONFIG_64BIT
186 /* Get PDCE_PROC for monarch CPU. */
187 ldw MEM_PDC_LO(%r0),%r3
188 ldw MEM_PDC_HI(%r0),%r10
189 depd %r10, 31, 32, %r3 /* move to upper word */
190#endif
191
192
193#ifdef CONFIG_SMP
194 /* Set the smp rendezvous address into page zero.

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

264 bv (%r3)
265 copy %r0,%arg3
266
267stext_pdc_ret:
268 LDREG TASK_PT_GR11(%r6), %r11
269 tovirt_r1 %r6
270 mtctl %r6,%cr30 /* restore task thread info */
271#endif
187 ldw MEM_PDC_LO(%r0),%r3
188 ldw MEM_PDC_HI(%r0),%r10
189 depd %r10, 31, 32, %r3 /* move to upper word */
190#endif
191
192
193#ifdef CONFIG_SMP
194 /* Set the smp rendezvous address into page zero.

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

264 bv (%r3)
265 copy %r0,%arg3
266
267stext_pdc_ret:
268 LDREG TASK_PT_GR11(%r6), %r11
269 tovirt_r1 %r6
270 mtctl %r6,%cr30 /* restore task thread info */
271#endif
272
272
273#ifndef CONFIG_64BIT
274 /* clear all BTLBs */
275 ldi PDC_BLOCK_TLB,%arg0
276 load32 PA(stext_pdc_btlb_ret), %rp
277 ldw MEM_PDC_LO(%r0),%r3
278 bv (%r3)
279 ldi PDC_BTLB_PURGE_ALL,%arg1
280stext_pdc_btlb_ret:
281#endif
282
273 /* PARANOID: clear user scratch/user space SR's */
274 mtsp %r0,%sr0
275 mtsp %r0,%sr1
276 mtsp %r0,%sr2
277 mtsp %r0,%sr3
278
279 /* Initialize Protection Registers */
280 mtctl %r0,%cr8

--- 154 unchanged lines hidden ---
283 /* PARANOID: clear user scratch/user space SR's */
284 mtsp %r0,%sr0
285 mtsp %r0,%sr1
286 mtsp %r0,%sr2
287 mtsp %r0,%sr3
288
289 /* Initialize Protection Registers */
290 mtctl %r0,%cr8

--- 154 unchanged lines hidden ---