-
Jeffrey Lee authored
Detail: CallBackHandler in kernel.s.k_body now ensures that the stored 'sp' and 'sl' values are word-aligned before attempting to read from 'sl' to verify that it points to a stack chunk. This avoids an exception being triggered in certain situations when alignment exceptions are turned on and a piece of hand-written assembler is using the sl register to store data. Admin: Further checks should be added to check that 'fp' is valid before calling _kernel_unwind, as _kernel_unwind currently only performs minimal checks that are not always sufficient. Tested on rev C2 beagleboard with KinoAmp pre-release. Version 5.56. Tagged as 'RISC_OSLib-5_56'
96b4a3c3