sparc64: trap handling corrections
PATCH 1/1 sparc64: trap handling corrections
Good trap handling is required to process interrupts. This patch fixes the following:
- sparc64 has no wim register
- sparc64 has no psret register, use IE bit of pstate extract IE checking code to cpu_interrupts_enabled
- alternate globals are not available if cpu has GL feature in this case bit AG of pstate is constant zero
- write to pstate must actually write pstate
even if cpu has GL feature
Also timer interrupt is handled using do_interrupt. Timer interrupt would require attention later when timers start to tick (currently timers are not really functional).
Signature · 2 lines
Kind regards, Igor V. Kovalenko
Quoted 11 lines · Igor Kovalenko
Good trap handling is required to process interrupts.
This patch fixes the following:- sparc64 has no wim register
- sparc64 has no psret register, use IE bit of pstate extract IE checking code tocpu_interrupts_enabled
- alternate globals are not available if cpu has GL feature in this case bit AG of pstate is constant zero
- write to pstate must actually write pstate
even if cpu has GL feature
Quoted 1 line
Also timer interrupt is handled using
do_interrupt.
A bit too much for one patch. Please also remove the code instead of commenting out.
PUT_PSR for Sparc64 needs CC_OP = CC_OP_FLAGS; like Sparc32.
Quoted 2 lines
Timer interrupt would require attention later when timers start to tick (currently timers are not really functional).
I think this comment is not true, IIRC at least tick and stick counters can be read (and they are used by SILO) and also interrupts work.
Quoted 12 lines · Blue Swirl
Quoted 11 lines · Igor Kovalenko
Good trap handling is required to process interrupts. This patch fixes the following:
- sparc64 has no wim register
- sparc64 has no psret register, use IE bit of pstate extract IE checking code tocpu_interrupts_enabled
- alternate globals are not available if cpu has GL feature in this case bit AG of pstate is constant zero
- write to pstate must actually write pstate
even if cpu has GL feature
Quoted 4 lines
Quoted 1 line
Also timer interrupt is handled using
do_interrupt.A bit too much for one patch. Please also remove the code instead of commenting out.
I now excluded timer interrupt related part. To my mind other changes are essentially tied together.
Quoted 1 line
PUT_PSRfor Sparc64 needsCC_OP=CC_OP_FLAGS; like Sparc32.
Fixed, please find attached the updated version.
Signature · 2 lines
Kind regards, Igor V. Kovalenko
Blue Swirl
AppliedQuoted 19 lines · Igor Kovalenko
Quoted 12 lines · Blue Swirl
Quoted 11 lines · Igor Kovalenko
Good trap handling is required to process interrupts.
This patch fixes the following:- sparc64 has no wim register
- sparc64 has no psret register, use IE bit of pstate extract IE checking code tocpu_interrupts_enabled
- alternate globals are not available if cpu has GL feature in this case bit AG of pstate is constant zero
- write to pstate must actually write pstate
even if cpu has GL featureQuoted 4 lines
Quoted 1 line
Also timer interrupt is handled using
do_interrupt.A bit too much for one patch. Please also remove the code instead of commenting out.
Quoted 8 lines
I now excluded timer interrupt related part.
To my mind other changes are essentially tied together.Quoted 1 line
PUT_PSRfor Sparc64 needsCC_OP=CC_OP_FLAGS; like Sparc32.Fixed, please find attached the updated version.
Thanks, applied.