forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/powerpc/kernel/cpu_setup_6xx.S
....@@ -1,12 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * This file contains low level CPU setup functions.
34 * 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
- *
105 */
116
127 #include <asm/processor.h>
....@@ -24,6 +19,7 @@
2419 li r10,0
2520 mtspr SPRN_SPRG_603_LRU,r10 /* init SW LRU tracking */
2621 END_MMU_FTR_SECTION_IFSET(MMU_FTR_NEED_DTLB_SW_LRU)
22
+
2723 BEGIN_FTR_SECTION
2824 bl __init_fpu_registers
2925 END_FTR_SECTION_IFCLR(CPU_FTR_FPU_UNAVAILABLE)
....@@ -292,6 +288,7 @@
292288 mtmsr r10
293289 isync
294290 blr
291
+_ASM_NOKPROBE_SYMBOL(__init_fpu_registers)
295292
296293
297294 /* Definitions for the table use to save CPU states */
....@@ -326,7 +323,7 @@
326323 lis r5,cpu_state_storage@h
327324 ori r5,r5,cpu_state_storage@l
328325
329
- /* Save HID0 (common to all CONFIG_6xx cpus) */
326
+ /* Save HID0 (common to all CONFIG_PPC_BOOK3S_32 cpus) */
330327 mfspr r3,SPRN_HID0
331328 stw r3,CS_HID0(r5)
332329
....@@ -487,4 +484,5 @@
487484 1:
488485 mtcr r7
489486 blr
487
+_ASM_NOKPROBE_SYMBOL(__restore_cpu_setup)
490488