This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: more booting from ix86 floppy


Kåre Särs wrote:
> 
> Hi
> 
> I have used RedBoot and GDB to run and debug a program that uses more than
> 640kb of ram, and now I want to run this program directly from a floppy.
> 
> When I run the program with RedBoot CYG_HAL_STARTUP is set to RAM (for the
> program), and I get access to extended memory, but when I want to boot from a
> floppy I have to set CYG_HAL_STARTUP to FLOPPY and then I loose the extended
> memory.
> 
> FLOPPY->mlt_i386_pc_floppy.ldi->only 655360 bytes ram
> 
> I know I can still use the extended memory but not with malloc.
> 
> Is there an easy way to boot directly from the floppy and still have the
> extended memory.

You could add another memory region called "ram2" or something using the
Memory layout Tool, and then create a user-defined section within that
called "heap2". It should be used by malloc by default.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]