Re: [PATCHSET] PC-9800 addtional for 2.5.50-ac1 (21/21)

Alan Cox (alan@lxorguk.ukuu.org.uk)
17 Dec 2002 17:17:54 +0000


On Tue, 2002-12-17 at 16:25, Osamu Tomita wrote:
> Thanks for your advice.

Slight misunderstanding: I just meant put the

static inline int get_ebda(void)
{
unsigned int address = *(unsigned short *)phys_to_virt(0x40E);
address <<= 4;
return address; /* 0 means none */
}

then do

addr = get_ebda();
if(addr)
spm_scan_config(...)

Which actually fixes a bug too - the real PC can have no EBDA (EBDA
value of zero) and we shouldnt scan it if so

-
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/