RTEMS | Draft: IMFS User allocator Plugin Code (!534)
Joel Sherrill (@joel)
gitlab at rtems.org
Wed Jul 23 20:39:01 UTC 2025
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250723/d655b802/attachment-0001.htm>
More information about the bugs
mailing list