From 096068b976e5ffb81111bf36c12a45c76c24306c Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Fri, 6 Nov 2020 19:27:27 +0000 Subject: [PATCH] Make powerpc use MAXARGS (defined as 8) instead of hardcoding '10'. This brings its 'struct syscall_args' in sync with other architectures. Reviewed by: bdragon, jhibbits MFC after: 2 weeks Sponsored by: EPSRC Differential Revision: https://reviews.freebsd.org/D26605 --- sys/powerpc/include/proc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/include/proc.h b/sys/powerpc/include/proc.h index 47605505b48a..d4df3ccfefef 100644 --- a/sys/powerpc/include/proc.h +++ b/sys/powerpc/include/proc.h @@ -59,10 +59,11 @@ struct mdproc { #define KINFO_PROC_SIZE 816 #endif +#define MAXARGS 8 struct syscall_args { u_int code; struct sysent *callp; - register_t args[10]; + register_t args[MAXARGS]; }; #ifdef _KERNEL