Download Host Interface (HIF) Specification
Transcript
Service 289 – setvec Set Trap Address Description This service sets the address for user-level trap handler services that implement the local register stack spill and fill traps. In addition, if the current HIF implementation supports program calls to set other trap vectors, this service provides that capability. It returns an indication of success or failure in register gr121. The method used to invoke these traps in user mode is described on page 2–6 in the User-Mode Traps section. The only vectors supported by this specification are 64 (spill) and 65 (fill). These vectors are invoked by operating system software using the trampoline principles described in the section User-Mode Traps, and are not supported by the Am29000 processor hardware. Extensions to this service, in implementations that support setting traps other than spill and fill, will return the previously installed trap address in register gr96, if the service is successful. For User Mode Traps, register gr96 reports only the success or failure of the service. In HIF implementations where the extended setvec service is available, programs can use the returned (previous) vector address to implement vector chaining. Register Usage Type Regs Contents Description Calling: gr121 289 (0x121) Service number lr2 trapno trap number lr3 funaddr address of trap handler gr96 trapaddr For user mode traps: Success: =0 Failure: <0 For extended trap vectors: Success: previous trap address Failure: =0 gr121 0x80000000 errcode Logical TRUE, service successful Error number, service not successful (implementation dependent) Returns: Host Interface (HIF) Specification 79 3–55