4.4.1. ARMulif_InstallCoprocessorV5

Use this function to register a coprocessor handler.

This function is prototyped in armul_copro.h.

Syntax


unsigned ARMulif_InstallCoprocessorV5(RDI_ModuleDesc *mdescunsigned number,                                struct ARMul_CoprocessorV5 *cpv5void *handle)

where:

mdesc

is the handle for the core.

number

is the coprocessor number.

cpv5

is a pointer to the coprocessor interface structure.

handle

is a pointer to private data to pass to each coprocessorfunction.

Return

This function returns either:

  • ARMulErr_NoError, if there is no error

  • an ARMul_Error value.

See armerrs.h and errors.h for a full list of error codes. The error must be passed through Hostif_RaiseError() for formatting (see Hostif_RaiseError).

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential