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

Error in Ramdisk

To: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Subject: Error in Ramdisk
From: Rabeeh Khoury <rabeeh@galileo.co.il>
Date: Wed, 26 Jan 2000 14:16:30 -0500
Sender: rabeeh@galileo.co.il
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>