HP-UX Reference (11i v3 07/02) - 3 Library Functions N-Z (vol 7)
u
uc_access(3)
Integrity Systems Only
uc_access(3)
If the context was created while handling an interruption, the instruction slot indicated by the 2
low-order bits of value will be the next instruction to execute. If the context was created in a
syscall, an attempt to set the instruction slot to a non-zero value will return [EINVAL].
__uc_get_cfm()
Returns (in the value argument) the saved value of the Current Frame Marker Register.
If the context was created in a syscall,
value will be the frame marker corresponding to the
function that called the kernel.
__uc_set_cfm()
Overwrites the saved value of the Current Frame Marker Register with
value.
__uc_get_um()
Returns (in the value argument) the saved value of the User Mask Register.
__uc_set_um()
Overwrites the saved User Mask Register with
value. An attempt to set reserved bits will
return [EINVAL].
__uc_get_ed()
Returns (in the low-order bit of the value argument) the saved value of the Exception Deferral
Bit. This bit is only saved in interruption contexts. An attempt to read it from a context saved
in a syscall will return [EINVAL].
__uc_set_ed()
Overwrites the saved Exception Deferral Bit value with the low-order bit of the value
specified. This bit is only saved in interruption contexts. An attempt to write it in a context
saved in a syscall will return [EINVAL]. An attempt to set it if CR.ISR.ED is not set will return
[EINVAL].
__uc_get_ar_rsc()
Returns (in the value argument) the saved value of the AR.RSC register.
__uc_set_ar_rsc()
Overwrites the saved value of the AR.RSC register with value.
__uc_get_ar_bsp()
Returns (in the value argument) the saved value of the AR.BSP register. By convention, this
value reflects the effects of the br.call instruction used to enter a syscall or the
cover
instruction used in handling an interruption. To find the value that will be in
AR.BSP when the
next instruction is executed the caller must:
1) Call
__uc_get_reason()
to determine whether the context was created in a syscall or
while handling an interruption.
2) Call
__uc_get_cfm()
to fetch the current frame marker.
3) Adjust the
AR.BSP value by CFM.sol (for a syscall context) or
CFM.sof (for an interrup-
tion context).
__uc_get_ar_bspstore()
Returns (in the value argument) the saved value of the AR.BSPSTORE register.
__uc_get_ar_csd()
Returns (in the value argument) the saved value of the AR.CSD register. If the context was
created in a syscall, the value is undefined.
__uc_set_ar_csd()
Overwrites the saved value of the AR.CSD register with value. If the context was created in a
syscall, this call returns [EINVAL] with no other side-effects.
__uc_get_ar_ssd()
Returns (in the value argument) the saved value of the AR.SSD register. If the context was
created in a syscall, the value is undefined.
__uc_set_ar_ssd()
Overwrites the saved value of the AR.SSD register with value. If the context was created in a
syscall, this call returns [EINVAL] with no other side-effects.
__uc_get_ar_ccv()
Returns (in the value argument) the saved value of the AR.CCV register. If the context was
586 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: February 2007