Applied assortment of Arch Linux ARM patches

This commit is contained in:
Nathan
2025-04-07 00:16:08 -05:00
parent 25c6d769f4
commit 4822424518
39 changed files with 419 additions and 275 deletions

View File

@@ -45,7 +45,7 @@ void *return_address(unsigned int);
#else
extern inline void *return_address(unsigned int level)
static inline void *return_address(unsigned int level)
{
return NULL;
}

View File

@@ -15,7 +15,7 @@
#include <uapi/asm/unistd.h>
#define __NR_syscalls (384)
#define __NR_syscalls (388)
#define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)
#define __ARCH_WANT_STAT64

View File

@@ -410,6 +410,7 @@
#define __NR_sched_getattr (__NR_SYSCALL_BASE+381)
#define __NR_renameat2 (__NR_SYSCALL_BASE+382)
#define __NR_seccomp (__NR_SYSCALL_BASE+383)
#define __NR_getrandom (__NR_SYSCALL_BASE+384)
/*
* This may need to be greater than __NR_last_syscall+1 in order to

View File

@@ -393,6 +393,7 @@
CALL(sys_ni_syscall) /* CALL(sys_sched_getattr) */
CALL(sys_ni_syscall) /* CALL(sys_renameat2) */
CALL(sys_seccomp)
CALL(sys_getrandom)
#ifndef syscalls_counted
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
#define syscalls_counted

View File

@@ -63,10 +63,12 @@ void *return_address(unsigned int level)
#warning "TODO: return_address should use unwind tables"
#endif
/*
void *return_address(unsigned int level)
{
return NULL;
}
*/
#endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) / else */

View File

@@ -361,3 +361,4 @@
352 i386 sched_getattr sys_ni_syscall
353 i386 renameat2 sys_ni_syscall
354 i386 seccomp sys_seccomp
355 i386 getrandom sys_getrandom

View File

@@ -324,6 +324,7 @@
315 common sched_getattr sys_ni_syscall
316 common renameat2 sys_ni_syscall
317 common seccomp sys_seccomp
318 common getrandom sys_getrandom
#
# x32-specific system call numbers start at 512 to avoid cache impact