lkml.org 
[lkml]   [2004]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6 patch] kill drive_info
On Wed, Jul 14, 2004 at 02:08:10AM +0200, Adrian Bunk wrote:

> What about the patch below to kill drive_info?
>
> Please double-check this patch, all I checked was a test of compilation
> on i386.

> - unsigned char *BIOS = (unsigned char *) &drive_info;
> + unsigned char *BIOS = &boot_params[0x80];

Ugly. There is already a define DRIVE_INFO for this right hand side:

setup.h:#define PARAM (boot_params)
setup.h:#define DRIVE_INFO (*(struct drive_info_struct *) (PARAM+0x80))


> - drive_info = DRIVE_INFO;

Hmm. setup.c copies this info from where it was left after booting
to some safe place. You seem to think that this saving is not required.
Is it not?

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.041 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site