Skip to content

Commit 2dd58bf

Browse files
authored
fix emulated asynchronous divisions started via hw_divider_divmod_s32_start and hw_divider_divmod_u32_start (#2299)
1 parent 186e715 commit 2dd58bf

File tree

1 file changed

+2
-2
lines changed
  • src/rp2_common/hardware_divider/include/hardware

1 file changed

+2
-2
lines changed

src/rp2_common/hardware_divider/include/hardware/divider.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ static inline void hw_divider_divmod_s32_start(int32_t a, int32_t b) {
110110
sio_hw->div_sdividend = (uint32_t)a;
111111
sio_hw->div_sdivisor = (uint32_t)b;
112112
#else
113-
hw_divider_divmod_s32(a, b);
113+
hw_divider_results[get_core_num()] = hw_divider_divmod_s32(a, b);
114114
#endif
115115
}
116116

@@ -130,7 +130,7 @@ static inline void hw_divider_divmod_u32_start(uint32_t a, uint32_t b) {
130130
sio_hw->div_udividend = a;
131131
sio_hw->div_udivisor = b;
132132
#else
133-
hw_divider_divmod_u32(a, b);
133+
hw_divider_results[get_core_num()] = hw_divider_divmod_u32(a, b);
134134
#endif
135135
}
136136

0 commit comments

Comments
 (0)