Skip to contentSkip to conversation

[parisc-linux] [[email protected]: temporary registers]

parisc-linux Phil Schwan 1 participant 1 message Apr 30, 1999

lore
Share & tools
lore
#0 lore raw

This mail was sent while I was moving the mailing lists to their new home. I apologise for the delay.

-Phil

------------------------------------------------------------------
"In film you will find four basic story lines. Man versus man, man versus nature, nature versus nature, and dog versus vampire."
- Steven Spielberg

I am currently trying to get basic kernel stuff for the pa1.1 port to work. We have 6 temporary registers that are read/writable by PL0-code only. I think we should use them to save commonly used values to have them ready in interrupt handlers.

I propose to use them in the following way:

CR24 - current, 0 while we are handling an interruption
current is where the registers' contents are stored when we enter
an interruption handler. We have to set it to some "special value" when we already use the register save slots in current so we don't overwrite them. (we can save the registers on the kernel stack in that case).

CR30 - kernel stack pointer, 0 when we are using the kernel stack
when this is 0, GR30 is the valid kernel stack pointer

CR31 - kernel global pointer

this leaves us 3 more registers to save the registers in to handle inter- ruptions.

Philipp