Skip to content

Instantly share code, notes, and snippets.

@ssvb
Created July 29, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssvb/38bec10f9b49806bf4fb7881dfc5241a to your computer and use it in GitHub Desktop.
Save ssvb/38bec10f9b49806bf4fb7881dfc5241a to your computer and use it in GitHub Desktop.
Revert 1a83fb4 commit in U-Boot v2016.09-rc1 for Pine64
$ diff --unified=20 u-boot.orig-v2016.09-rc1.disasm u-boot.revert-1a83fb4.disasm
--- u-boot.orig-v2016.09-rc1.disasm 2016-07-29 17:28:31.000000000 +0300
+++ u-boot.revert-1a83fb4.disasm 2016-07-29 17:28:41.000000000 +0300
@@ -1,22 +1,22 @@
-u-boot.orig: file format elf64-littleaarch64
+u-boot: file format elf64-littleaarch64
Disassembly of section .text:
000000004a000000 <__image_copy_start>:
4a000000: 88 01 00 14 00 00 00 00 00 00 00 00 00 00 00 00 ................
...
000000004a000600 <_TEXT_BASE>:
4a000600: 4a000000 .word 0x4a000000
4a000604: 00000000 .word 0x00000000
000000004a000608 <_end_ofs>:
4a000608: 00057298 .word 0x00057298
4a00060c: 00000000 .word 0x00000000
000000004a000610 <_bss_start_ofs>:
4a000610: 00057298 .word 0x00057298
4a000614: 00000000 .word 0x00000000
@@ -1512,41 +1512,41 @@
4a001c88: f9404649 ldr x9, [x18,#136]
4a001c8c: 8b0903de add x30, x30, x9
4a001c90: f9403240 ldr x0, [x18,#96]
4a001c94: 14000013 b 4a001ce0 <relocate_code>
000000004a001c98 <relocation_return>:
4a001c98: 97fffa8a bl 4a0006c0 <c_runtime_cpu_setup>
4a001c9c: 580001a0 ldr x0, 4a001cd0 <clear_loop+0x28>
4a001ca0: 580001c1 ldr x1, 4a001cd8 <clear_loop+0x30>
4a001ca4: d2800002 mov x2, #0x0 // #0
000000004a001ca8 <clear_loop>:
4a001ca8: f9000002 str x2, [x0]
4a001cac: 91002000 add x0, x0, #0x8
4a001cb0: eb01001f cmp x0, x1
4a001cb4: 54ffffa3 b.cc 4a001ca8 <clear_loop>
4a001cb8: aa1203e0 mov x0, x18
4a001cbc: f9403241 ldr x1, [x18,#96]
4a001cc0: 14003b6d b 4a010a74 <board_init_r>
4a001cc4: 00000000 .word 0x00000000
- 4a001cc8: 00019e90 .word 0x00019e90
+ 4a001cc8: 00017e90 .word 0x00017e90
...
000000004a001ce0 <relocate_code>:
4a001ce0: a9be7bfd stp x29, x30, [sp,#-32]!
4a001ce4: 910003fd mov x29, sp
4a001ce8: f9000be0 str x0, [sp,#16]
4a001cec: 58000561 ldr x1, 4a001d98 <relocate_done+0x58>
4a001cf0: eb010009 subs x9, x0, x1
4a001cf4: 54000260 b.eq 4a001d40 <relocate_done>
4a001cf8: 58000542 ldr x2, 4a001da0 <relocate_done+0x60>
000000004a001cfc <copy_loop>:
4a001cfc: a8c12c2a ldp x10, x11, [x1],#16
4a001d00: a8812c0a stp x10, x11, [x0],#16
4a001d04: eb02003f cmp x1, x2
4a001d08: 54ffffa3 b.cc 4a001cfc <copy_loop>
4a001d0c: f9000fe0 str x0, [sp,#24]
4a001d10: 580004c2 ldr x2, 4a001da8 <relocate_done+0x68>
4a001d14: 580004e3 ldr x3, 4a001db0 <relocate_done+0x70>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment