From: Andy P. <at...@us...> - 2001-02-18 16:41:55
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel In directory usw-pr-cvs1:/tmp/cvs-serv23123/arch/vax/kernel Modified Files: setup.c Log Message: Reorganise tmp_start_kernel. max_pfn/hwpfn fixes. update config file. Index: setup.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel/setup.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- setup.c 2001/02/16 00:54:26 1.5 +++ setup.c 2001/02/18 16:42:45 1.6 @@ -59,9 +59,13 @@ /* * Locate the command line. - Don't have one yet... + * atp -- have a temporary one. */ - command_line[0] = '\0'; + memcpy(command_line, "root=/dev/nfs nfsroot=/tftpboot/vaxroot\0",54); *cmdline_p = command_line; + /* 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'; /* Get the SID */ vax_cpu.sid = __mfpr(PR_SID); @@ -76,8 +80,9 @@ at the start of physical memory. init_bootmem() also marks every page as reserved. We have to explicitly free available memory ourselves. (max_pfn comes from RPB.) */ - bootmap_size = init_bootmem(0, max_pfn); - + bootmap_size = init_bootmem(0, (max_pfn)); + + printk("bootmap size = %8.8x\n", bootmap_size); /* Available memory is now the region from the end of the bootmem bitmap to the start of the kernel and from the end of the SPT to the end of memory */ |