Skip to content

Commit 9b16583

Browse files
Traistaru Andrei Cristianandreitraistaru
authored andcommitted
Cmdline max size changed on x86
The maximum size of the kernel command line is defined in the COMMAND_LINE_SIZE constant for the Linux kernel according to the spec: www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html For x86 platform, it should be 2048. Signed-off-by: Traistaru Andrei Cristian <atc@amazon.com>
1 parent abb78f1 commit 9b16583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arch/src/x86_64/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ pub const BOOT_STACK_POINTER: u64 = 0x8ff0;
1212

1313
/// Kernel command line start address.
1414
pub const CMDLINE_START: u64 = 0x20000;
15-
/// Kernel command line start address maximum size.
16-
pub const CMDLINE_MAX_SIZE: usize = 0x10000;
15+
/// Kernel command line maximum size.
16+
pub const CMDLINE_MAX_SIZE: usize = 2048;
1717

1818
/// Start of the high memory.
1919
pub const HIMEM_START: u64 = 0x0010_0000; // 1 MB.

0 commit comments

Comments
 (0)