Open gjz010 opened 3 years ago
Seems these codes were introduced by @jiegec: https://github.com/rcore-os/rCore/commit/92a9674f6640be7563613b3dc6cf7f18ab965818#diff-daec1639ddc202cd1b84917f388b4323b107696dab34069cdb0af3133837102d
@jiegec πππ
The following code in
memory.rs
emits strange assembly code causing an infinite loop:Generated assembly:
It seems that
rustc
optimizingcopy_from_nonoverlapping
intomemcpy
(in the naked function) results in this issue, but I'm not sure.