Skip to content
Snippets Groups Projects
Forked from card10 / firmware
Source project has a limited visibility.
  • rahix's avatar
    e924ecee
    fix(api): Reset FPU before loading a new payload · e924ecee
    rahix authored
    
    Without resetting the FPU we get spurious failures in Pycardium.  These
    manifest in many different forms, ranging from HardFaults and triggered
    assertions to "syntax errors" in loaded scripts while said script does
    not contain any.
    
    These failures stem from the FPU still containing state from the last
    loaded payload and thus sometimes corrupting stack locations where the
    previous payload had floating point state.
    
    Closes #72.
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>
    Verified
    e924ecee
    History
    fix(api): Reset FPU before loading a new payload
    rahix authored
    
    Without resetting the FPU we get spurious failures in Pycardium.  These
    manifest in many different forms, ranging from HardFaults and triggered
    assertions to "syntax errors" in loaded scripts while said script does
    not contain any.
    
    These failures stem from the FPU still containing state from the last
    loaded payload and thus sometimes corrupting stack locations where the
    previous payload had floating point state.
    
    Closes #72.
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>