mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Georg Lippold <georg.lippold@gmx.de>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Jesper Juhl <jesper.juhl@gmail.com>, linux-kernel@vger.kernel.org
Subject: [PATCH 1/1] 2.6.14-rc3 x86: COMMAND_LINE_SIZE
Date: Mon, 10 Oct 2005 19:16:05 +0200	[thread overview]
Message-ID: <20051010171605.GA7793@georg.homeunix.org> (raw)
In-Reply-To: <434A8D70.5060300@zytor.com>

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


  reply	other threads:[~2005-10-10 17:16 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4315B668.6030603@gmail.com>
2005-08-31 21:29 ` THE LINUX/I386 BOOT PROTOCOL - Breaking the 256 limit H. Peter Anvin
2005-08-31 21:57   ` Chris Wedgwood
2005-08-31 22:01     ` H. Peter Anvin
2005-08-31 22:07       ` Chris Wedgwood
2005-08-31 22:12         ` Jesper Juhl
2005-08-31 22:14           ` Chris Wedgwood
2005-08-31 22:17             ` H. Peter Anvin
2005-08-31 22:18             ` Jesper Juhl
2005-08-31 22:24               ` H. Peter Anvin
2005-09-01  8:54                 ` Alon Bar-Lev
2005-08-31 22:12         ` H. Peter Anvin
2005-08-31 22:15           ` Chris Wedgwood
2005-09-01 20:48         ` [syslinux] " Peter Jones
2005-09-06 20:19       ` Alon Bar-Lev
2005-09-06 20:40         ` H. Peter Anvin
2005-09-06 20:49           ` Alon Bar-Lev
2005-10-06 22:49             ` Georg Lippold
2005-10-10 12:44               ` [PATCH] " Georg Lippold
2005-10-10 13:21                 ` Jesper Juhl
2005-10-10 13:32                   ` Alon Bar-Lev
2005-10-10 13:57                     ` Georg Lippold
2005-10-10 14:07                       ` Alon Bar-Lev
2005-10-10 14:53                   ` H. Peter Anvin
2005-10-10 14:59                     ` Alon Bar-Lev
2005-10-10 15:03                       ` H. Peter Anvin
2005-10-10 16:23                         ` Alon Bar-Lev
2005-10-10 17:02                           ` Bernd Petrovitsch
2005-10-10 15:46                     ` Georg Lippold
2005-10-10 15:49                       ` H. Peter Anvin
2005-10-10 17:16                         ` Georg Lippold [this message]
2005-10-10 18:24                           ` [PATCH 1/1] 2.6.14-rc3 x86: COMMAND_LINE_SIZE Alon Bar-Lev
2005-10-10 20:36                             ` Georg Lippold
2005-10-11  8:32                               ` Alon Bar-Lev
2005-10-11 16:50                                 ` Georg Lippold
2005-10-11 17:44                                   ` Alon Bar-Lev
2005-10-11 19:21                                     ` Andi Kleen
2005-10-11 19:24                                       ` Alon Bar-Lev
2005-10-11 20:21                                         ` Andi Kleen
2005-10-11 20:04                                           ` Alon Bar-Lev
2005-10-13 20:18                                             ` Georg Lippold
2005-10-11  1:48           ` THE LINUX/I386 BOOT PROTOCOL - Breaking the 256 limit Coywolf Qi Hunt
2005-10-11  1:49             ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051010171605.GA7793@georg.homeunix.org \
    --to=georg.lippold@gmx.de \
    --cc=hpa@zytor.com \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®