mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fix possible conversion errors by using __builtin_ffsll instead of __builtin_ffs
Signed-off-by: term_est <62337595+term-est@users.noreply.github.com>
This commit is contained in:
parent
889787c7ca
commit
e670b60126
@ -152,7 +152,7 @@ FORCE_INLINE_ATTR void xt_utils_set_watchpoint(int wp_num,
|
||||
{
|
||||
// Initialize DBREAKC bits (see Table 4–143 or isa_rm.pdf)
|
||||
uint32_t dbreakc_reg = 0x3F;
|
||||
dbreakc_reg = dbreakc_reg << (__builtin_ffs(size) - 1);
|
||||
dbreakc_reg = dbreakc_reg << (__builtin_ffsll(size) - 1);
|
||||
dbreakc_reg = dbreakc_reg & 0x3F;
|
||||
if (on_read) {
|
||||
dbreakc_reg |= BIT(30);
|
||||
|
Loading…
x
Reference in New Issue
Block a user