| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file contains low level CPU setup functions. |
|---|
| 3 | 4 | * Copyright (C) 2003 Benjamin Herrenschmidt (benh@kernel.crashing.org) |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or |
|---|
| 6 | | - * modify it under the terms of the GNU General Public License |
|---|
| 7 | | - * as published by the Free Software Foundation; either version |
|---|
| 8 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | 5 | */ |
|---|
| 11 | 6 | |
|---|
| 12 | 7 | #include <asm/processor.h> |
|---|
| .. | .. |
|---|
| 24 | 19 | li r10,0 |
|---|
| 25 | 20 | mtspr SPRN_SPRG_603_LRU,r10 /* init SW LRU tracking */ |
|---|
| 26 | 21 | END_MMU_FTR_SECTION_IFSET(MMU_FTR_NEED_DTLB_SW_LRU) |
|---|
| 22 | + |
|---|
| 27 | 23 | BEGIN_FTR_SECTION |
|---|
| 28 | 24 | bl __init_fpu_registers |
|---|
| 29 | 25 | END_FTR_SECTION_IFCLR(CPU_FTR_FPU_UNAVAILABLE) |
|---|
| .. | .. |
|---|
| 292 | 288 | mtmsr r10 |
|---|
| 293 | 289 | isync |
|---|
| 294 | 290 | blr |
|---|
| 291 | +_ASM_NOKPROBE_SYMBOL(__init_fpu_registers) |
|---|
| 295 | 292 | |
|---|
| 296 | 293 | |
|---|
| 297 | 294 | /* Definitions for the table use to save CPU states */ |
|---|
| .. | .. |
|---|
| 326 | 323 | lis r5,cpu_state_storage@h |
|---|
| 327 | 324 | ori r5,r5,cpu_state_storage@l |
|---|
| 328 | 325 | |
|---|
| 329 | | - /* Save HID0 (common to all CONFIG_6xx cpus) */ |
|---|
| 326 | + /* Save HID0 (common to all CONFIG_PPC_BOOK3S_32 cpus) */ |
|---|
| 330 | 327 | mfspr r3,SPRN_HID0 |
|---|
| 331 | 328 | stw r3,CS_HID0(r5) |
|---|
| 332 | 329 | |
|---|
| .. | .. |
|---|
| 487 | 484 | 1: |
|---|
| 488 | 485 | mtcr r7 |
|---|
| 489 | 486 | blr |
|---|
| 487 | +_ASM_NOKPROBE_SYMBOL(__restore_cpu_setup) |
|---|
| 490 | 488 | |
|---|