mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: <linux-kernel@vger.kernel.org>
Subject: [PATCH] 8: 2.5.29-rd
Date: Sat, 03 Aug 2002 19:16:18 +0100	[thread overview]
Message-ID: <E17b3Rq-0006wY-00@flint.arm.linux.org.uk> (raw)

This patch has been verified to apply cleanly to 2.5.30

This patch adds support for "initrd=start,size" on the kernel command
line.  This allows us (the ARM folk) to give details of the initrd
on the (default) command line rather than hard-coding such stuff
into the kernel proper.

 drivers/block/rd.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions

diff -urN orig/drivers/block/rd.c linux/drivers/block/rd.c
--- orig/drivers/block/rd.c	Thu Jul 25 20:13:26 2002
+++ linux/drivers/block/rd.c	Fri Aug  2 17:34:53 2002
@@ -349,6 +349,25 @@
 	release:	initrd_release,
 };
 
+/*
+ * Add function to specify initrd address as initrd=start,size
+ *   start is a phyical address
+ *   size is the size of the initrd ramdisk
+ */
+
+static int __init setup_initrd(char *str)
+{
+	unsigned long start = memparse(str, &str);
+
+	if (str && *str == ',') {
+		initrd_start = (unsigned long)phys_to_virt(start);
+		initrd_end = initrd_start + memparse(str + 1, &str);
+	}
+	return 1;
+}
+
+__setup("initrd=", setup_initrd);
+
 #endif
 
 


                 reply	other threads:[~2002-08-03 18:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E17b3Rq-0006wY-00@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --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®