|
From: Miro K. <mir...@gm...> - 2025-10-04 10:12:38
|
Hi, while looking into context.S I have noticed an odd couple of lines. These were added in https://github.com/freemint/freemint/commit/de7af1b3 and I can't understand their meaning, take save_context for instance: - sr is obviously destroyed by the tst.w just before move.w sr,d1 so why bother saving it? - sr is obviously destroyed after move.w d1,sr by tst.w _fpu and all the following lines up to move.w sr,C_SR(a0) so again, why bother at that specific place? - Why only save_context and change_context but no build_context and restore_context? There's literally the same code in there. To me it looks like a random addition with no particular purpose. -- http://mikro.atari.org |