You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we are dealing with the raspberry pi 2 in hypervisor mode I think it is a bit misleading to just save those registers in the irq handler since the actual lr used by eret is ELR_hyp. Additionally, the cpsr register has some important information for conditional instructions that should be saved across the irq handler.
I think adding the following code would be beneficial for users:
raspberrypi/boards/pi2/HYP/blinker05/vectors.s
Line 54 in cbb3a10
Since we are dealing with the raspberry pi 2 in hypervisor mode I think it is a bit misleading to just save those registers in the irq handler since the actual lr used by eret is ELR_hyp. Additionally, the cpsr register has some important information for conditional instructions that should be saved across the irq handler.
I think adding the following code would be beneficial for users:
(for context, I was trying to implement context switching for a bare metal os and the lack of state saving caused a few bugs for me 😄)
The text was updated successfully, but these errors were encountered: