[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

heap initialization



hello,everyone!I'm builting cross GNAT/RTEMS tools on linux.I find some problem in heap.c :
  the_block= (Heap_Block *)starting_address;
  the_block->back_flag = HEAP_DUMMY_FLAG;
  the_block->front_flag = the_size;
  the_block->next=_Heap_Tail( the_heap );
  the_block->previous=_Heap_Head( the_heap );
In first statement,struct pointer the_block is pointed to starting_address.But the four elements of the_block can't be initialized.Their contents all are 0xffffffff.The above initial statements has no effect on the content of four element.It result in failure in  work space initialization.How to solve it?Thanks in advance for any help.

_____________________________________________
????????--???????????????????? http://www.263.net
???????? ???????? ???????? ???????? ??????????
???????? ???????? ???????? ???????? ????????
???????? ???????? ???????? ???????? ????????