patch-1.3.50 linux/arch/i386/kernel/setup.c
Next file: linux/arch/mips/kernel/setup.c
Previous file: linux/arch/i386/defconfig
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Fri Dec 22 08:51:07 1995
- Orig file:
v1.3.49/linux/arch/i386/kernel/setup.c
- Orig date:
Thu Dec 21 08:53:30 1995
diff -u --recursive --new-file v1.3.49/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
@@ -62,9 +62,13 @@
#endif
unsigned char aux_device_present;
+
+#ifdef CONFIG_BLK_DEV_RAM
extern int rd_doload; /* 1 = load ramdisk, 0 = don't load */
extern int rd_prompt; /* 1 = prompt for ramdisk, 0 = don't prompt */
extern int rd_image_start; /* starting block # of image */
+#endif
+
extern int root_mountflags;
extern int _etext, _edata, _end;
@@ -92,6 +96,7 @@
#define RAMDISK_LOAD_FLAG 0x4000
static char command_line[COMMAND_LINE_SIZE] = { 0, };
+ char saved_command_line[COMMAND_LINE_SIZE];
void setup_arch(char **cmdline_p,
unsigned long * memory_start_p, unsigned long * memory_end_p)
@@ -116,9 +121,11 @@
aux_device_present = AUX_DEVICE_INFO;
memory_end = (1<<20) + (EXT_MEM_K<<10);
memory_end &= PAGE_MASK;
+#ifdef CONFIG_BLK_DEV_RAM
rd_image_start = RAMDISK_FLAGS & RAMDISK_IMAGE_START_MASK;
rd_prompt = ((RAMDISK_FLAGS & RAMDISK_PROMPT_FLAG) != 0);
rd_doload = ((RAMDISK_FLAGS & RAMDISK_LOAD_FLAG) != 0);
+#endif
#ifdef CONFIG_MAX_16M
if (memory_end > 16*1024*1024)
memory_end = 16*1024*1024;
@@ -130,6 +137,10 @@
init_task.mm->end_code = TASK_SIZE + (unsigned long) &_etext;
init_task.mm->end_data = TASK_SIZE + (unsigned long) &_edata;
init_task.mm->brk = TASK_SIZE + (unsigned long) &_end;
+
+ /* Save unparsed command line copy for /proc/cmdline */
+ memcpy(saved_command_line, COMMAND_LINE, COMMAND_LINE_SIZE);
+ saved_command_line[COMMAND_LINE_SIZE-1] = '\0';
for (;;) {
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this