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
5 * along with this program. If not, see <https://www.gnu.org/licenses/>.
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 */
15 +#define __ARCH_WANT_STAT64
16 +#define __ARCH_WANT_TIME32_SYSCALLS
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
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
35 select GENERIC_LIB_ASHRDI3
36 select GENERIC_LIB_LSHRDI3
37 select GENERIC_LIB_UCMPDI2
48 menu "Power management options"