• Aijun Sun's avatar
    trusty: save/restore FPU registers in world switch · ab609e1a
    Aijun Sun authored
    
    
    Currently, Trusty OS/LK implemented FPU context switch in internal
    thread switch but does not implement the proper mechanism for world
    switch. This commit just simply saves/restores FPU registes in world
    switch to prevent FPU context from being currupted when Trusty OS uses
    VFP in its applications.
    
    It should be noted that the macro *CTX_INCLUDE_FPREGS* must be defined
    in trusty.mk if Trusty OS uses VFP
    Signed-off-by: default avatarAijun Sun <aijun.sun@spreadtrum.com>
    ab609e1a
trusty.c 11.2 KB