mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* EDD bug find: wrong #define is used to declare edd[] area.
@ 2003-01-21  0:44 Kevin Lawton
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Lawton @ 2003-01-21  0:44 UTC (permalink / raw)
  To: linux-kernel

It appears to me that the wrong #define is being used to declare the
size of the EDD (BIOS Enhanced Disk Drive Services) area of the setup
parameter page.  The following lines use 'EDDNR', but I believe they
meant to use 'EDDMAXNR':  (src @ 2.5.59)

  include/asm-i386/edd.h:line 168:

    extern struct edd_info edd[EDDNR];

  arch/i386/kernel/setup.c:line 477:

    struct edd_info edd[EDDNR];


For reference:

  include/asm-i386/edd.h:
  #define EDDNR 0x1e9           /* addr of number of edd_info structs at EDDBUF
  #define EDDMAXNR 6            /* number of edd_info structs starting at
EDDBUF  */

EDDNR is the offset in the parameter page, not the number of entries.
EDDMAXNR seems to be the literal to use.  I haven't tried this fix,
because I don't use it.  Just noticed it while digging through the source.

-Kevin Lawton

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <20030121004610.45288.qmail@web80311.mail.yahoo.com>]

end of thread, other threads:[~2003-01-24  6:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-21  0:44 EDD bug find: wrong #define is used to declare edd[] area Kevin Lawton
     [not found] <20030121004610.45288.qmail@web80311.mail.yahoo.com>
2003-01-24  6:20 ` Matt Domsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®