linux-mips-fnet
[Top] [All Lists]

Re: Error in Ramdisk

To: "Rabeeh Khoury" <rabeeh@galileo.co.il>, <linux-mips@fnet.fr>
Subject: Re: Error in Ramdisk
From: "Bradley D. LaRonde" <brad@ltc.com>
Date: Wed, 26 Jan 2000 09:46:45 -0500
References: <388F480E.F732EA0F@galileo.co.il>
Watch out - more than that is broken for ramdisk in 2.3.21 (I think that's
where SGI is at).  There were a couple of patches posted to l-k, and I think
the latest dev kernel has it fixed.

Regards,
Brad

----- Original Message -----
From: "Rabeeh Khoury" <rabeeh@galileo.co.il>
To: <linux-mips@fnet.fr>
Sent: Wednesday, January 26, 2000 2:16 PM
Subject: Error in Ramdisk


> Hi
>
> I'm trying to add Ramdisk support for my embedded system - this code is
> taken from
> arch/mips/kernel/setup.c
>
> #ifdef CONFIG_BLK_DEV_RAM
>  rd_image_start = RAMDISK_FLAGS & RAMDISK_IMAGE_START_MASK;
>  rd_prompt = ((RAMDISK_FLAGS & RAMDISK_PROMPT_FLAG) != 0);
>  rd_doload = ((RAMDISK_FLAGS & RAMDISK_LOAD_FLAG) != 0);
> #endif
>
> but it has compilation errors because there is no reference for
> RAMDISK_FLAGS or RAMDISK_IMAGE_START_MASK
> or RAMDISK_PROMPT_FLAG or RAMDISK_LOAD_FLAG.
>
> in the i386 version these macros are defined as -
>
> #define RAMDISK_FLAGS (*(unsigned short *) (PARAM+0x1F8))
> #define RAMDISK_IMAGE_START_MASK        0x07FF
> #define RAMDISK_PROMPT_FLAG             0x8000
> #define RAMDISK_LOAD_FLAG               0x4000
>
> how do you fix this problem ?
>
> thank you
> Rabea
>

<Prev in Thread] Current Thread [Next in Thread>