Electronic Components Datasheet Search
  English  ▼

X  

UM0438 Datasheet(PDF) 19 Page - STMicroelectronics

Part # UM0438
Description  This user manual defines a programming model for use with the variable-length encoding
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0438 Datasheet(HTML) 19 Page - STMicroelectronics

Back Button UM0438 Datasheet HTML 15Page - STMicroelectronics UM0438 Datasheet HTML 16Page - STMicroelectronics UM0438 Datasheet HTML 17Page - STMicroelectronics UM0438 Datasheet HTML 18Page - STMicroelectronics UM0438 Datasheet HTML 19Page - STMicroelectronics UM0438 Datasheet HTML 20Page - STMicroelectronics UM0438 Datasheet HTML 21Page - STMicroelectronics UM0438 Datasheet HTML 22Page - STMicroelectronics UM0438 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 50 page
background image
UM0438
Application Binary Interface (ABI)
19/50
Note:
The relocations in Table 9 are not for load and store instructions (such as, e_lwz and
e_stw), which should use the EABI relocation R_PPC_EMB_SDA21. These relocations, as
written here, only start with an e_add16i. A linker might convert the instruction to an e_li.
Although other relocations do not specify the instructions they apply to, it may be useful to
know that these relocations can apply only to one instruction.
Table 9.
Relocation types with special semantics
Name
Description
R_PPC_VLE_SDA21(1)
The linker computes a 21-bit value with the 5 msbs having the value 13 (for GPR13), 2
(for GPR2), or 0. If the symbol whose index is in r_info is contained in .sdata or .sbss,
a linker supplies a value of 13; if the symbol is in .PPC.EMB.sdata2 or
.PPC.EMB.sbss2, the linker supplies a value of 2; if the symbol is in .PPC.EMB.sdata0
or .PPC.EMB.sbss0, the linker supplies a value of 0; otherwise, the link fails.
The 16 lsbs of this 21-bit value are set to the address of the symbol plus the relocation
entry r_addend value minus the appropriate base for the symbol section:
_SDA_BASE_ for a symbol in .sdata or .sbss
_SDA2_BASE_ for a symbol in .PPC.EMB.sdata2 or .PPC.EMB.sbss2
0 for a symbol in .PPC.EMB.sdata0 or .PPC.EMB.sbss0
If the 5 msbs of the computed 21-bit value are non-zero, the linker uses the low21
relocation field, where the 11 msbs remain unchanged and the computed 21-bit value
occupies bits 11–31.
Otherwise, the 5 msbs of the computed 21-bit value are zero, with the following
results:
The linker uses the split20 relocation field, where only bits occupying 6–10 remain
unchanged
The 5 msbs of the 21-bit value are ignored
The next msb is copied to bit 11 and to bits 17–20 as a sign-extension
The next 4 msbs are copied to bits 12–15
The 11 remaining bits are copied to bits 21–31.
In the destination word, bits 0–5 are encoded with the binary value 011100, and bit 16
is encoded with the binary value 0.
Use of the split20 relocation field forces the encoding of the VLE e_li instruction,
which may change the user's specified instruction. See Table 6.
R_PPC_VLE_SDA21_LO 1 Like R_PPC_VLE_SDA21, except that the #lo() operator obtains the 16 lsbs of the 21-
bit value. The #lo() operator is applied after the address of the symbol plus the
relocation entry r_addend value is calculated, minus the appropriate base for the
symbol’s section: _SDA_BASE_ for a symbol in .sdata or .sbss, _SDA2_BASE_ for a
symbol in .PPC.EMB.sdata2 or .PPC.EMB.sbss2, or 0 for a symbol in
.PPC.EMB.sdata0 or .PPC.EMB.sbss0. The R_PPC_VLE_SDA21 entry describes
applying the calculated 21-bit value to the destination word that uses either the low21
relocation field or the split20 relocation field. See Table 6.
1.
Note that if the opcode is changed, 27 bits are changed instead of 21.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com