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]
Other format: [Raw text]

how can I alloc 64k memory?


I am working on ecos with x86 target.I try to alloc a
64k memory. it is very strange that it is correct when
i compile with -g and download it to target machine by
serial.But when i chose startup from floppy,it is
failed alloc such big memory.

I tried two ways to alloc memory as follow:
1.unsigned char img[65536];
2.img=(unsigned char*)malloc(65536*sizrof(char))

use first way,it seems just can alloc memory as large
as 30*256.  

please tell me why!

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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