forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/powerpc/kernel/epapr_hcalls.S
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2012 Freescale Semiconductor, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #include <linux/threads.h>
....@@ -21,10 +17,9 @@
2117 #ifndef CONFIG_PPC64
2218 /* epapr_ev_idle() was derived from e500_idle() */
2319 _GLOBAL(epapr_ev_idle)
24
- CURRENT_THREAD_INFO(r3, r1)
25
- PPC_LL r4, TI_LOCAL_FLAGS(r3) /* set napping bit */
20
+ PPC_LL r4, TI_LOCAL_FLAGS(r2) /* set napping bit */
2621 ori r4, r4,_TLF_NAPPING /* so when we take an exception */
27
- PPC_STL r4, TI_LOCAL_FLAGS(r3) /* it will return to our caller */
22
+ PPC_STL r4, TI_LOCAL_FLAGS(r2) /* it will return to our caller */
2823
2924 wrteei 1
3025