Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.81 KB | None | 0 0
  1. # ============================================================================
  2. #   Kernel 8955 Patches
  3. # ============================================================================
  4.  
  5. # This file contains all the patches freeBOOT applies to the kernel. Patches
  6. # for 1BL, CB, CD, and hypervisor were done with a different tool and are
  7. # provided as files patches_<console>_base.bin. In order to yield a valid
  8. # patches_<console>.bin file, the assembly of this file has to be appended to
  9. # the corresponding patch_<console>_base.bin file. The included Makefile will
  10. # automate this task.
  11. #
  12. # Patches for 1BL, CB, CD, hypervisor, and kernel all share the same format
  13. # described herein. Since hypervisor and kernel patches are applied in the
  14. # same run, hypervisor patches contained in patches_<console>_base.bin file
  15. # are not terminated with 0xffffffff. It is therefore possible to add further
  16. # hypervisor patches through this file. As seen by the patch engine, the
  17. # hypervisor starts at address 0x00000000 and the kernel at address
  18. # 0x00040000.
  19.  
  20.         .globl _start
  21.  
  22. _start:
  23.  
  24. # ============================================================================
  25. #   Disable XEX Signature Check
  26. # ============================================================================
  27.  
  28. # Each sequence of patches starts with a target address and the number of
  29. # patches in this sequence. The patches themselves follow directly. The target
  30. # address must be aligned on a 4 byte boundary. All data in a patch sequence
  31. # must be encoded in 32-bit big endian format.
  32. #
  33. # There can be an arbitrary number of patch sequences. The last patch sequence
  34. # must be terminated with 0xffffffff.
  35.  
  36.         .long 0x0007784c                # target address
  37.         .long (9f - 0f) / 4             # number of patches
  38.  
  39. 0:
  40.         nop                             # patches
  41. 9:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement