The external interface to the RSP server code is through three void functions.
rsp_init ()
. Called at start up to
initialize the RSP server. It initializes global data
structures (discussed in Section 4.3.2) and then sets up a TCP/IP
listener on the configured RSP port.
handle_rsp ()
. Called repeatedly when
the processor is stalled to read packets from any GDB client
and process them.
rsp_exception ()
. Called from the
simulator to record any exceptions that occur, for subsequent
use by handle_rsp ()
. It takes a
single argument, the OpenRISC 1000 exception handler entry address,
which is mapped by the RSP server to the equivalent GDB
target signal.