hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/openrisc/kernel/entry.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * OpenRISC entry.S
34 *
....@@ -9,14 +10,10 @@
910 * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
1011 * Copyright (C) 2005 Gyorgy Jeney <nog@bsemi.com>
1112 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
12
- *
13
- * This program is free software; you can redistribute it and/or
14
- * modify it under the terms of the GNU General Public License
15
- * as published by the Free Software Foundation; either version
16
- * 2 of the License, or (at your option) any later version.
1713 */
1814
1915 #include <linux/linkage.h>
16
+#include <linux/pgtable.h>
2017
2118 #include <asm/processor.h>
2219 #include <asm/unistd.h>
....@@ -25,7 +22,6 @@
2522 #include <asm/spr_defs.h>
2623 #include <asm/page.h>
2724 #include <asm/mmu.h>
28
-#include <asm/pgtable.h>
2925 #include <asm/asm-offsets.h>
3026
3127 #define DISABLE_INTERRUPTS(t1,t2) \
....@@ -177,7 +173,6 @@
177173 l.sw PT_GPR28(r1),r28 ;\
178174 l.sw PT_GPR29(r1),r29 ;\
179175 /* r30 already save */ ;\
180
-/* l.sw PT_GPR30(r1),r30*/ ;\
181176 l.sw PT_GPR31(r1),r31 ;\
182177 TRACE_IRQS_OFF_ENTRY ;\
183178 /* Store -1 in orig_gpr11 for non-syscall exceptions */ ;\
....@@ -215,9 +210,8 @@
215210 l.sw PT_GPR27(r1),r27 ;\
216211 l.sw PT_GPR28(r1),r28 ;\
217212 l.sw PT_GPR29(r1),r29 ;\
218
- /* r31 already saved */ ;\
219
- l.sw PT_GPR30(r1),r30 ;\
220
-/* l.sw PT_GPR31(r1),r31 */ ;\
213
+ /* r30 already saved */ ;\
214
+ l.sw PT_GPR31(r1),r31 ;\
221215 /* Store -1 in orig_gpr11 for non-syscall exceptions */ ;\
222216 l.addi r30,r0,-1 ;\
223217 l.sw PT_ORIG_GPR11(r1),r30 ;\
....@@ -1174,6 +1168,11 @@
11741168 l.j _fork_save_extra_regs_and_call
11751169 l.nop
11761170
1171
+ENTRY(__sys_clone3)
1172
+ l.movhi r29,hi(sys_clone3)
1173
+ l.j _fork_save_extra_regs_and_call
1174
+ l.ori r29,r29,lo(sys_clone3)
1175
+
11771176 ENTRY(__sys_fork)
11781177 l.movhi r29,hi(sys_fork)
11791178 l.ori r29,r29,lo(sys_fork)