Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 216307 | Differences between
and this patch

Collapse All | Expand All

(-)grub-0.97/stage2/boot.c (-1 / +10 lines)
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
(-)grub-0.97/stage2/shared.h (-1 / +3 lines)
Lines 161-167 extern char *grub_scratch_mem; Link Here
161
161
162
#define LINUX_CL_OFFSET			0x9000
162
#define LINUX_CL_OFFSET			0x9000
163
#define LINUX_CL_END_OFFSET		0x90FF
163
#define LINUX_CL_END_OFFSET		0x90FF
164
#define LINUX_SETUP_MOVE_SIZE		0x9100
164
#define LINUX_CL_0202_PRM_OFFSET	0x9500
165
#define LINUX_CL_0202_PRM_END_OFFSET	0x9FFF
166
#define LINUX_SETUP_MOVE_SIZE		0xA000
165
#define LINUX_CL_MAGIC			0xA33F
167
#define LINUX_CL_MAGIC			0xA33F
166
168
167
/*
169
/*

Return to bug 216307