4.4.10. write

This function enables a debugger to write to a coprocessor register via RDI.

The function writes the value at the location addressed by value to the coprocessor register numbered reg.

If the requested coprocessor does not exist or the register cannot be written, the function must return ARMul_CP_CANT.

Syntax


unsigned write(void *handleint reg, ARMword instr, ARMword *value)

where:

handle

is the handle from ARMulif_InstallCoprocessorV5.

reg

is the register number of the coprocessor registerthat is to be written.

instr

is not used.

value

is a pointer to the location of the data that is to be written to the coprocessor.

Return

The function must return one of:

  • ARMul_CP_DONE, to indicate that the coprocessor operation is complete

  • ARMul_CP_CANT, to indicate that the register is not supported.

Usage

This function is called by the debugger via RDI.

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