URL
https://opencores.org/ocsvn/s1_core/s1_core/trunk
Details |
Compare with Previous |
View Log
| Line No. |
Rev |
Author |
Line |
| 1 |
113 |
albert.wat |
# Unofficial disassembly of the official OpenBoot PROMs obtained with:
|
| 2 |
|
|
|
| 3 |
|
|
# Step 1: from binary to SPARC ELF:
|
| 4 |
|
|
sparc64-linux-objcopy -Ibinary -Oelf64-sparc ../1c1t_obp_prom.bin 1c1t_obp_prom.elf
|
| 5 |
|
|
sparc64-linux-objcopy -Ibinary -Oelf64-sparc ../1c1t_prom.bin 1c1t_prom.elf
|
| 6 |
|
|
|
| 7 |
|
|
# Step 2: from SPARC ELF to disassembly
|
| 8 |
|
|
sparc64-linux-objdump -D -m sparc:v9 1c1t_obp_prom.elf > 1c1t_obp_prom.dis
|
| 9 |
|
|
sparc64-linux-objdump -D -m sparc:v9 1c1t_prom.elf > 1c1t_prom.dis
|
| 10 |
|
|
|
| 11 |
|
|
# Step 3: hand replace 1c1t_obp_prom with 1c1t_prom in the first of the two so that you can then easily diff them:
|
| 12 |
|
|
|
| 13 |
|
|
$ diff 1c1t_obp_prom.dis.bis 1c1t_prom.dis
|
| 14 |
|
|
< f84bc: f0 08 00 00 ldub [ %g0 ], %i0
|
| 15 |
|
|
> f84bc: f1 00 00 00 ld [ %g0 ], %f24
|
| 16 |
|
|
< f84cc: 00 07 00 00 illtrap 0x70000
|
| 17 |
|
|
> f84cc: 00 40 00 00 bn,pn %icc, f84cc <_binary____1c1t_prom_bin_start+0xf84cc>
|
© copyright 1999-2026
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.