Patch to move MAX_INIT_ARGS
Hi, All:
I would like to move MAX_INIT_ARGS to param.h (to make it bigger). Please let me know if you disagree.
-- Pete
include/asm-alpha/param.h +3 -0
@@ -33,4 +33,7 @@# define CLOCKS_PER_SEC HZ/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASM_ALPHA_PARAM_H */
include/asm-arm/param.h +3 -0
@@ -36,5 +36,8 @@/* max length of hostname */ #define MAXHOSTNAMELEN 64 +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-cris/param.h +3 -0
@@ -21,4 +21,7 @@# define CLOCKS_PER_SEC 100/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-i386/param.h +6 -0
@@ -23,4 +23,10 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +/* +* Boot command-line arguments +*/ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-ia64/param.h +3 -0
@@ -37,4 +37,7 @@# define CLOCKS_PER_SEC HZ/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASM_IA64_PARAM_H */
include/asm-m68k/param.h +3 -0
@@ -23,4 +23,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _M68K_PARAM_H */
include/asm-m68knommu/param.h +3 -0
@@ -54,4 +54,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _M68KNOMMU_PARAM_H */
include/asm-mips/param.h +3 -0
@@ -68,4 +68,7 @@# define CLOCKS_PER_SEC 100/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASM_PARAM_H */
include/asm-mips64/param.h +3 -0
@@ -33,4 +33,7 @@# define CLOCKS_PER_SEC 100/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASM_PARAM_H */
include/asm-parisc/param.h +3 -0
@@ -27,4 +27,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-ppc/param.h +3 -0
@@ -23,4 +23,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-ppc64/param.h +3 -0
@@ -30,4 +30,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASM_PPC64_PARAM_H */
include/asm-s390/param.h +3 -0
@@ -31,4 +31,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 25/* param.parm deck for installs */ +#define MAX_INIT_ENVS 8 +#endif
include/asm-s390x/param.h +3 -0
@@ -31,4 +31,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 25/* param.parm deck for installs */ +#define MAX_INIT_ENVS 8 +#endif
include/asm-sh/param.h +3 -0
@@ -21,4 +21,7 @@#define CLOCKS_PER_SEC HZ/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* __ASM_SH_PARAM_H */
include/asm-sparc/param.h +3 -0
@@ -24,4 +24,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-sparc64/param.h +3 -0
@@ -24,4 +24,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* _ASMSPARC64_PARAM_H */
include/asm-um/param.h +3 -0
@@ -19,4 +19,7 @@#define CLOCKS_PER_SEC (USER_HZ)/* frequency at which times() counts */ #endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
include/asm-v850/param.h +3 -0
@@ -33,4 +33,7 @@# define CLOCKS_PER_SEC USER_HZ#endif +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif /* __V850_PARAM_H__ */
include/asm-x86_64/param.h +3 -0
@@ -23,4 +23,7 @@#define MAXHOSTNAMELEN 64/* max length of hostname */ +#define MAX_INIT_ARGS 8 +#define MAX_INIT_ENVS 8 +#endif
init/main.c +1 -6
@@ -39,6 +39,7 @@#include <asm/io.h> #include <asm/bugs.h> +#include <asm/param.h> /* * This is one of the first .c files built. Error out early
@@ -98,12 +99,6 @@*/ int system_running =0 ; -/* -* Boot command-line arguments -*/ -#define MAX_INIT_ARGS 8 -#define MAX_INIT_ENVS 8 -extern void time_init (void );extern void softirq_init (void );