lkml.org 
[lkml]   [2005]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/1] 2.6.14-rc3 x86: COMMAND_LINE_SIZE
H. Peter Anvin wrote on Mon, Oct 10, 2005 at 08:49:04AM -0700:
> I would suggest updating your patch to include x86-64 and documentation,
> and submit it. Other architectures will have to do this as it suits them.

As requested.

Signed-off-by: Georg Lippold <georg.lippold@gmx.de>

diff -ur linux~/Documentation/i386/boot.txt linux/Documentation/i386/boot.txt
--- linux~/Documentation/i386/boot.txt 2005-09-30 23:17:35.000000000 +0200
+++ linux/Documentation/i386/boot.txt 2005-10-10 18:53:11.000000000 +0200
@@ -236,7 +236,7 @@
below.

The kernel command line is a null-terminated string currently up to
-255 characters long, plus the final null. A string that is too long
+1023 characters long, plus the final null. A string that is too long
will be automatically truncated by the kernel, a boot loader may allow
a longer command line to be passed to permit future kernels to extend
this limit.
diff -ur linux~/Documentation/x86_64/boot-options.txt linux/Documentation/x86_64/boot-options.txt
--- linux~/Documentation/x86_64/boot-options.txt 2005-09-30 23:17:35.000000000 +0200
+++ linux/Documentation/x86_64/boot-options.txt 2005-10-10 18:55:26.000000000 +0200
@@ -3,6 +3,9 @@
There are many others (usually documented in driver documentation), but
only the AMD64 specific ones are listed here.

+The kernel command line (/proc/cmdline) can have up to 1023 characters
+plus the terminating \0.
+
Machine check

mce=off disable machine check
diff -ur linux~/include/asm-i386/param.h linux/include/asm-i386/param.h
--- linux~/include/asm-i386/param.h 2005-09-30 23:17:35.000000000 +0200
+++ linux/include/asm-i386/param.h 2005-10-10 18:50:43.000000000 +0200
@@ -20,6 +20,6 @@
#endif

#define MAXHOSTNAMELEN 64 /* max length of hostname */
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 1024

#endif
diff -ur linux~/include/asm-i386/setup.h linux/include/asm-i386/setup.h
--- linux~/include/asm-i386/setup.h 2005-09-30 23:17:35.000000000 +0200
+++ linux/include/asm-i386/setup.h 2005-10-10 18:50:09.000000000 +0200
@@ -17,7 +17,7 @@
#define MAX_NONPAE_PFN (1 << 20)

#define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 1024

#define OLD_CL_MAGIC_ADDR 0x90020
#define OLD_CL_MAGIC 0xA33F
diff -ur linux~/include/asm-x86_64/setup.h linux/include/asm-x86_64/setup.h
--- linux~/include/asm-x86_64/setup.h 2005-09-30 23:17:35.000000000 +0200
+++ linux/include/asm-x86_64/setup.h 2005-10-10 18:51:19.000000000 +0200
@@ -1,6 +1,6 @@
#ifndef _x8664_SETUP_H
#define _x8664_SETUP_H

-#define COMMAND_LINE_SIZE 256
+#define COMMAND_LINE_SIZE 1024

#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-10 19:22    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site