Joel Sherrill commented on a discussion on 
testsuites/psxtests/psximfs03/init.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_127126

 > +  if(!freelist) return NULL;
 > +  char *block = freelist;
 > +  freelist = *freelist;
 > +  memset(block, val, size);
 > +  return block;
 > +}
 > +
 > +void deallocator(
 > +  char *blk
 > +)
 > +{
 > +  blk = (char **)blk;
 > +  *blk = freelist;
 > +  freelist = (char *)blk;
 > +
 > +}

The main point is to override the default allocators. This test did work when I 
tried it and submitted some changes.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_127126
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to