Skip to contentSkip to conversation

sparc64: trap handling corrections

PATCH Applied Igor Kovalenko 2 participants 4 messages Jul 11, 2009 – Jul 12, 2009

lore
Share & tools
lore
#0 lore raw

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).

Signed-off-by [email protected]
Signature · 2 lines
Kind regards,
Igor V. Kovalenko
#1 lore raw
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 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

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.

#2 lore raw
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 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

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_PSR for Sparc64 needs CC_OP = CC_OP_FLAGS; like Sparc32.

Fixed, please find attached the updated version.

Signature · 2 lines
Kind regards,
Igor V. Kovalenko
Applied
#3 lore raw
Quoted 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 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

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.

Quoted 8 lines

I now excluded timer interrupt related part.
To my mind other changes are essentially tied together.

Quoted 1 line

PUT_PSR for Sparc64 needs CC_OP = CC_OP_FLAGS; like Sparc32.

Fixed, please find attached the updated version.

Thanks, applied.