mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix non aligned crashes with tlsf
When the starting address of the plugin buffer is not aligned to 8 bytes crashes occur in tlsf (on ARM atleast) Change-Id: I655500c25e1c8f84b4a2418e9ec5c5948e4bea82
This commit is contained in:
parent
321de68b21
commit
e1475a38ef
2 changed files with 4 additions and 2 deletions
|
@ -508,7 +508,8 @@ size_t add_new_area(void *area, size_t area_size, void *mem_pool)
|
|||
|
||||
/* FW 28-10-17: disabled memset due to crashes on ARM. Functions
|
||||
* fine without it. */
|
||||
/* memset(area, 0, area_size); */
|
||||
/* BILGUS 17-7-19 re-enabled after setting pluginbuf aligned to 8 bytes */
|
||||
memset(area, 0, area_size);
|
||||
ptr = tlsf->area_head;
|
||||
ptr_prev = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue