git.s-ol.nu subv / 2ebb76e
examples/device_tree: print more header fields s-ol 10 months ago
1 changed file(s) with 37 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1717 6f/jal 1/rd/ra print/off21
1818
1919 03/load b/rd/a1 2/width/w 15/rs/s5 4/imm12
20 6f/jal 1/rd/ra bswapw/off21
21 6f/jal 1/rd/ra print_hex_word/off21
22 6f/jal 1/rd/ra printnl/off21
23
24 37/lui b/rd/a1 S_VER/imm20hi
25 13/opi b/rd/a1 0/subop/add b/rs/a1 S_VER/imm12lo
26 6f/jal 1/rd/ra print/off21
27
28 03/load b/rd/a1 2/width/w 15/rs/s5 14/imm12
29 6f/jal 1/rd/ra bswapw/off21
30 6f/jal 1/rd/ra print_hex_word/off21
31 6f/jal 1/rd/ra printnl/off21
32
33 37/lui b/rd/a1 S_LC_VER/imm20hi
34 13/opi b/rd/a1 0/subop/add b/rs/a1 S_LC_VER/imm12lo
35 6f/jal 1/rd/ra print/off21
36
37 03/load b/rd/a1 2/width/w 15/rs/s5 18/imm12
38 6f/jal 1/rd/ra bswapw/off21
39 6f/jal 1/rd/ra print_hex_word/off21
40 6f/jal 1/rd/ra printnl/off21
41
42 37/lui b/rd/a1 S_BOOT_CPU/imm20hi
43 13/opi b/rd/a1 0/subop/add b/rs/a1 S_BOOT_CPU/imm12lo
44 6f/jal 1/rd/ra print/off21
45
46 03/load b/rd/a1 2/width/w 15/rs/s5 2c/imm12
2047 6f/jal 1/rd/ra bswapw/off21
2148 6f/jal 1/rd/ra print_hex_word/off21
2249 6f/jal 1/rd/ra printnl/off21
144171
145172 == data 0x80500000
146173 E_MAGIC:
147 # "Invalid DTB magic!\n\0"
148 49/8 6e/8 76/8 61/8 6c/8 69/8 64/8 20/8 44/8 54/8 42/8 20/8 6d/8 61/8 67/8 69/8 63/8 21/8 0a/8 00/8
174 @@/string "Invalid DTB magic!\n\0"
149175 S_TOTALSZ:
150 54/8 6f/8 74/8 61/8 6c/8 20/8 53/8 69/8 7a/8 65/8 3a/8 20/8 00/8
151
176 @@/string "Total Size: \0"
177 S_VER:
178 @@/string "DTB Format Version: \0"
179 S_LC_VER:
180 @@/string "Last Compatible: \0"
181 S_BOOT_CPU:
182 @@/string "Boot CPU id: \0"
183 S_DASH:
184 @@/string " - \0"