Skip to content

Commit

Permalink
s390: make command line configurable
Browse files Browse the repository at this point in the history
Allow to configure the command line to an arbitrary length, with a
default of 4096 bytes. Also remove COMMAND_LINE_SIZE from
include/uapi/asm/setup.h as this is dynamic now and doesn't tell
anything about the command line size limitations of a new kernel
that might be loaded.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
  • Loading branch information
Sven Schnelle authored and Vasily Gorbik committed Oct 26, 2021
1 parent 5ecb2da commit 622021c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 8 additions & 0 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,14 @@ endchoice
config 64BIT
def_bool y

config COMMAND_LINE_SIZE
int "Maximum size of kernel command line"
default 4096
range 896 1048576
help
This allows you to specify the maximum length of the kernel command
line.

config COMPAT
def_bool y
prompt "Kernel support for 31 bit emulation"
Expand Down
1 change: 1 addition & 0 deletions arch/s390/include/asm/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#define PARMAREA 0x10400

#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_SIZE
/*
* Machine features detected in early.c
*/
Expand Down
11 changes: 0 additions & 11 deletions arch/s390/include/uapi/asm/setup.h
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
* S390 version
* Copyright IBM Corp. 1999, 2010
*/

#ifndef _UAPI_ASM_S390_SETUP_H
#define _UAPI_ASM_S390_SETUP_H

#define COMMAND_LINE_SIZE 4096

#endif /* _UAPI_ASM_S390_SETUP_H */

0 comments on commit 622021c

Please sign in to comment.