public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alon Bar-Lev <alon.barlev@gmail.com>
To: Georg Lippold <georg.lippold@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] 2.6.14-rc3 x86: COMMAND_LINE_SIZE
Date: Tue, 11 Oct 2005 19:44:13 +0200	[thread overview]
Message-ID: <434BF9ED.9090405@gmail.com> (raw)
In-Reply-To: <434BED55.10603@gmx.de>

Georg Lippold wrote:
> Alon Bar-Lev wrote:
> 
>>But the address of cmd_line_ptr is defined to be from the end of the
>>setup to 0xa0000. This is well defined, since the boot loader will
>>load the kernel, initramfs and cmd_line_ptr to the correct place...
>>Nothing is overwritten... Then the kernel is up and takes as much as
>>it needs from cmd_line_ptr.
> 
> 
> OK, then: Update my patch if you want to and resubmit it. I would like
> to get this through as quickly as possible.
> 
> Greetings,
> 
> Georg
> 

OK...
Here it goes...
I don't have git...
I hope it is enough...

diff -urNp linux-2.6.13.4.org/Documentation/i386/boot.txt 
linux-2.6.13.4/Documentation/i386/boot.txt
--- linux-2.6.13.4.org/Documentation/i386/boot.txt 
2005-10-10 20:54:29.000000000 +0200
+++ linux-2.6.13.4/Documentation/i386/boot.txt	2005-10-11 
19:01:40.000000000 +0200
@@ -230,12 +230,13 @@ loader to communicate with the kernel.
  relevant to the boot loader itself, see "special command 
line options"
  below.

-The kernel command line is a null-terminated string up to 255
-characters long, plus the final null.
+If the boot protocol version is 2.01 or older, the kernel 
command line is
+a null-terminated string up to 255 characters long, plus 
the final null.

  If the boot protocol version is 2.02 or later, the address 
of the
  kernel command line is given by the header field 
cmd_line_ptr (see
-above.)
+above.), the kernel may truncate this string if it is too long
+for handle.

  If the protocol version is *not* 2.02 or higher, the kernel
  command line is entered using the following protocol:
diff -urNp linux-2.6.13.4.org/include/asm-i386/param.h 
linux-2.6.13.4/include/asm-i386/param.h
--- linux-2.6.13.4.org/include/asm-i386/param.h	2005-10-10 
20:54:29.000000000 +0200
+++ linux-2.6.13.4/include/asm-i386/param.h	2005-10-11 
19:08:42.000000000 +0200
@@ -20,6 +20,5 @@
  #endif

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

  #endif
diff -urNp linux-2.6.13.4.org/include/asm-i386/setup.h 
linux-2.6.13.4/include/asm-i386/setup.h
--- linux-2.6.13.4.org/include/asm-i386/setup.h	2005-10-10 
20:54:29.000000000 +0200
+++ linux-2.6.13.4/include/asm-i386/setup.h	2005-10-11 
19:10:46.000000000 +0200
@@ -17,7 +17,10 @@
  #define MAX_NONPAE_PFN	(1 << 20)

  #define PARAM_SIZE 4096
-#define COMMAND_LINE_SIZE 256
+
+#ifdef CONFIG_COMMAND_LINE_MAX_SIZE
+#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_MAX_SIZE
+#endif

  #define OLD_CL_MAGIC_ADDR	0x90020
  #define OLD_CL_MAGIC		0xA33F
diff -urNp linux-2.6.13.4.org/include/asm-x86_64/setup.h 
linux-2.6.13.4/include/asm-x86_64/setup.h
--- linux-2.6.13.4.org/include/asm-x86_64/setup.h	2005-10-10 
20:54:29.000000000 +0200
+++ linux-2.6.13.4/include/asm-x86_64/setup.h	2005-10-11 
19:21:18.000000000 +0200
@@ -1,6 +1,8 @@
  #ifndef _x8664_SETUP_H
  #define _x8664_SETUP_H

-#define COMMAND_LINE_SIZE	256
+#ifdef CONFIG_COMMAND_LINE_MAX_SIZE
+#define COMMAND_LINE_SIZE	CONFIG_COMMAND_LINE_MAX_SIZE
+#endif

  #endif
diff -urNp linux-2.6.13.4.org/init/Kconfig 
linux-2.6.13.4/init/Kconfig
--- linux-2.6.13.4.org/init/Kconfig	2005-10-10 
20:54:29.000000000 +0200
+++ linux-2.6.13.4/init/Kconfig	2005-10-11 
19:20:23.000000000 +0200
@@ -77,6 +77,13 @@ config LOCALVERSION
  	  object and source tree, in that order.  Your total 
string can
  	  be a maximum of 64 characters.

+config COMMAND_LINE_MAX_SIZE
+	int "Maximum kernel command-line size"
+	default 512
+	help
+	  This option allows you to specify maximum kernel 
command-line
+	  for kernel to handle.
+
  config SWAP
  	bool "Support for paging of anonymous memory (swap)"
  	depends on MMU



  reply	other threads:[~2005-10-11 18:15 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                         ` [PATCH 1/1] 2.6.14-rc3 x86: COMMAND_LINE_SIZE Georg Lippold
2005-10-10 18:24                           ` 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 [this message]
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=434BF9ED.9090405@gmail.com \
    --to=alon.barlev@gmail.com \
    --cc=georg.lippold@gmx.de \
    --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