rockbox/lib
William Wilgus 6cbf2160e5 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
2023-01-02 10:09:46 -05:00
..
arm_support ARM support, optimize popcount fn 2022-03-12 00:00:01 -05:00
fixedpoint Undo hacks to meant to get around string formatting limitations 2017-11-21 05:01:14 -05:00
libsetjmp [1/4] Remove SH support and all archos targets 2020-07-24 21:20:13 +00:00
microtar microtar: Update to latest upstream commit 2021-11-27 13:13:35 +00:00
mipsunwinder mips: add native backtrace implementation 2022-05-22 07:16:11 -04:00
rbcodec rbcodec dsp: Refactor DSP init routines, restore INIT_ATTR 2022-12-23 12:47:10 -05:00
skin_parser Suppress bogus GCC 12 -Waddress warnings for SKINOFFSETTOPTR 2022-09-18 13:53:27 +01:00
tlsf tlsf fix corruption checks 2023-01-02 10:09:46 -05:00
unwarminder backtrace, put pc and sp on their own lines 2022-03-08 23:37:50 -05:00