check if xz is installed on the host
[openadk.git] / target / linux / patches / 6.1.90 / riscv32.patch
blob648b0de4de9de3a8e6400636c4297c42b25e7572
1 diff -Nur linux-6.0.15.orig/arch/riscv/include/uapi/asm/unistd.h linux-6.0.15/arch/riscv/include/uapi/asm/unistd.h
2 --- linux-6.0.15.orig/arch/riscv/include/uapi/asm/unistd.h 2022-12-21 17:41:16.000000000 +0100
3 +++ linux-6.0.15/arch/riscv/include/uapi/asm/unistd.h 2023-01-09 11:28:16.590796198 +0100
4 @@ -15,9 +15,14 @@
5 * along with this program. If not, see <https://www.gnu.org/licenses/>.
6 */
8 -#if defined(__LP64__) && !defined(__SYSCALL_COMPAT)
9 +#ifndef __SYSCALL_COMPAT
10 #define __ARCH_WANT_NEW_STAT
11 #define __ARCH_WANT_SET_GET_RLIMIT
12 +#endif /* __SYSCALL_COMPAT */
14 +#ifndef __LP64__
15 +#define __ARCH_WANT_STAT64
16 +#define __ARCH_WANT_TIME32_SYSCALLS
17 #endif /* __LP64__ */
19 #define __ARCH_WANT_SYS_CLONE3
20 diff -Nur linux-6.0.15.orig/arch/riscv/Kconfig linux-6.0.15/arch/riscv/Kconfig
21 --- linux-6.0.15.orig/arch/riscv/Kconfig 2022-12-21 17:41:16.000000000 +0100
22 +++ linux-6.0.15/arch/riscv/Kconfig 2023-01-09 14:27:16.560750598 +0100
23 @@ -163,8 +163,9 @@
25 config PAGE_OFFSET
26 hex
27 - default 0xC0000000 if 32BIT
28 + default 0xC0000000 if 32BIT && MMU
29 default 0x80000000 if 64BIT && !MMU
30 + default 0x80000000 if !MMU
31 default 0xff60000000000000 if 64BIT
33 config KASAN_SHADOW_OFFSET
34 @@ -262,7 +263,6 @@
35 select GENERIC_LIB_ASHRDI3
36 select GENERIC_LIB_LSHRDI3
37 select GENERIC_LIB_UCMPDI2
38 - select MMU
40 config ARCH_RV64I
41 bool "RV64I"
42 @@ -670,7 +670,6 @@
43 default !NONPORTABLE
44 select EFI
45 select OF
46 - select MMU
48 menu "Power management options"