Basic System Problem Analysis - August 2003
38
page 133/17/2003
Basic System Problem Analysis
PA-RISC Space Registers
• There are 8 space registers, SR0 to SR7
• SR0 saves space ID for external branches
• SR1 to SR3 loaded by software as needed
• SR4, SR5, SR6 and SR7 are defined by the calling
convention
– SR4 is code, typically the space ID of your program
– SR5 is data, the space ID of a process STACK
– SR6 is always $b (#11), OS structures and short mapped
files
– SR7 is always $a (#10), OS structures, NL.PUB.SYS and
short mapped files
Notes: