diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-01-02 10:09:46 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-01-02 10:09:46 -0500 |
commit | 6cbf2160e55ac6ec1b8423ce0ca82b6fa432e366 (patch) | |
tree | 9fd8042957e6b2ae37513e0c6c4679510a695e9f /apps/keymaps | |
parent | 3def8fee8c80a2fd85425d3278ec58de8de698c2 (diff) | |
download | rockbox-6cbf2160e55ac6ec1b8423ce0ca82b6fa432e366.tar.gz rockbox-6cbf2160e55ac6ec1b8423ce0ca82b6fa432e366.zip |
tlsf fix corruption checks
Turns out (~PTR_MASK) != (0xFFFFFFFF - PTR_MASK) in 64 bit land
tmp_b = (bhdr_t*) ( (intptr_t)b->prev_hdr & BLOCK_SIZE );
using ~STATE_MASK or even #define BLOCK_SIZE (~PTR_MASK) resolves the issue
switching BLOCK_SIZE TO ~STATE_MASK appears to fix it
Also define BLOCK_SIZE (~PTR_MASK)
Fix a few signed / unsigned errors
Change-Id: Ica59db0faa2df408831c23312243ae19259dba6b
Diffstat (limited to 'apps/keymaps')
0 files changed, 0 insertions, 0 deletions