]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Request newstat syscalls
authorGuenter Roeck <linux@roeck-us.net>
Wed, 5 Sep 2018 14:36:06 +0000 (07:36 -0700)
committerArnd Bergmann <arnd@arndb.de>
Wed, 5 Sep 2018 20:44:21 +0000 (22:44 +0200)
commitb5ee7da774d140c874928c36276ab5fa3284a6b1
tree3207995766ab5664c60026daae5da268806a3262
parentc251813bc22be369acef967525ef7db82e229dbe
RISC-V: Request newstat syscalls

Since commit 51d4eae902af ("y2038: Remove newstat family from default
syscall set"), riscv images fail to boot with the following error.

/sbin/init: error while loading shared libraries: libc.so.6:
cannot stat shared object: Error 38
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00

Explicitly request newstat syscalls to fix the problem.

Fixes: 51d4eae902af ("y2038: Remove newstat family from default syscall set")
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/riscv/include/asm/unistd.h