Lines 241-247
load_image (char *kernel, char *arg, ker
Link Here
|
241 |
} |
241 |
} |
242 |
|
242 |
|
243 |
if (lh->version >= 0x0202) |
243 |
if (lh->version >= 0x0202) |
244 |
lh->cmd_line_ptr = linux_data_real_addr + LINUX_CL_OFFSET; |
244 |
lh->cmd_line_ptr = linux_data_real_addr + LINUX_CL_0202_PRM_OFFSET; |
245 |
else |
245 |
else |
246 |
{ |
246 |
{ |
247 |
lh->cl_magic = LINUX_CL_MAGIC; |
247 |
lh->cl_magic = LINUX_CL_MAGIC; |
Lines 407-412
load_image (char *kernel, char *arg, ker
Link Here
|
407 |
while (dest < linux_data_tmp_addr + LINUX_CL_END_OFFSET && *src) |
407 |
while (dest < linux_data_tmp_addr + LINUX_CL_END_OFFSET && *src) |
408 |
*(dest++) = *(src++); |
408 |
*(dest++) = *(src++); |
409 |
|
409 |
|
|
|
410 |
{ |
411 |
char *src = skip_to (0, arg); |
412 |
char *dest = linux_data_tmp_addr + LINUX_CL_0202_PRM_OFFSET; |
413 |
|
414 |
while (dest < linux_data_tmp_addr + LINUX_CL_0202_PRM_END_OFFSET && *src) |
415 |
*(dest++) = *(src++); |
416 |
*dest = 0; |
417 |
} |
418 |
|
410 |
/* Old Linux kernels have problems determining the amount of |
419 |
/* Old Linux kernels have problems determining the amount of |
411 |
the available memory. To work around this problem, we add |
420 |
the available memory. To work around this problem, we add |
412 |
the "mem" option to the kernel command line. This has its |
421 |
the "mem" option to the kernel command line. This has its |