我是新手,最近买了S3C44b0的开发板在学习,把自己的程序加到Romfs里后烧写到flash, 命令提示符下启动程序出现下面的提示: /> my_test Allocation of length 1768456 from process 28 failed Buffer memory: 568kB Cache memory: 488kB Free pages: 2832kB ( 0kB HighMem) Zone:DMA freepages: 0kB Zone:Normal freepages: 2832kB Zone:HighMem freepages: 0kB ( Active: 204, inactive: 60, free: 708 ) = 0kB)0*4kB 0*8kB 1*16kB 0*32kB 0*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 1*2048kB = 2832kB)= 0kB) Unable to allocate RAM for process text/data, errno 12munmap of non-mmaped memory by process 28 (my_test): 0c78a000 my_test: Invalid argument
开发板配备的RAM是 8M,而我的程序里全用了全局的数组,占用空间2M不到,应该不会超出限制,为什么还会出错呢?请各位高手指点,万分感激! |