forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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) \
....@@ -1174,6 +1170,11 @@
11741170 l.j _fork_save_extra_regs_and_call
11751171 l.nop
11761172
1173
+ENTRY(__sys_clone3)
1174
+ l.movhi r29,hi(sys_clone3)
1175
+ l.j _fork_save_extra_regs_and_call
1176
+ l.ori r29,r29,lo(sys_clone3)
1177
+
11771178 ENTRY(__sys_fork)
11781179 l.movhi r29,hi(sys_fork)
11791180 l.ori r29,r29,lo(sys_fork)