beautypg.com

3 patching internal and external scripts programs, Patching internal and external scripts programs – Avago Technologies LSI53C1010 User Manual

Page 235

background image

Using the SCRIPTS RAM

9-37

2.

The offsets in these data structures indicate where the internal
SCRIPTS jump address should be patched.

3.

These are the offsets into the Int_Script array of the entry points that
are being jumped to from the external SCRIPTS program. They are
used to calculate the external to internal jump physical addresses to
be patched into the external SCRIPTS program.

9.7.3 Patching Internal and External SCRIPTS Programs

The routine in

Figure 9.16

patches the correct values into the above two

SCRIPTS programs so that they can interact properly. The following
assumptions are made in this routine:

The Int_Script array was copied into the SCRIPTS RAM at the
starting location of the RAM.

The Ext_Script is already 32-bit aligned.

The variable ChipIOBase contains the IO base address of the chips
register set.

VirttoPhys is a routine that will convert a virtual pointer to a physical
address.

This manual is related to the following products: