4.8.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 *mdesc, unsigned number,
                                struct ARMul_CoprocessorV5 *cpv5, void *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 coprocessor function.

Return

This function returns either:

  • ARMulErr_NoError, if there is no error

  • an ARMul_Error value.

The error must be passed through Hostif_RaiseError() for formatting (see Hostif_RaiseError).

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0207D
Non-Confidential