Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2010  |  syntax: None  |  size: 0.73 KB  |  hits: 125  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/firmware/target/arm/tcc780x/crt0.S b/firmware/target/arm/tcc780x/crt0.S
  2. index f6eb6af..548bb15 100644
  3. --- a/firmware/target/arm/tcc780x/crt0.S
  4. +++ b/firmware/target/arm/tcc780x/crt0.S
  5. @@ -74,7 +74,11 @@ start_loc:
  6.      ldr    r0, =0xf005a000
  7.      ldr    r0, [r0, #0x20] /* Read GPIO A */
  8.      tst    r0, #0x8
  9. -    ldrne  pc, [pc, #-28]  /* Jump to original firmware if HOLD not pressed */
  10. +    ldreq  pc, [pc, #-28]  /* Jump to original firmware if HOLD pressed */
  11. +    ldr    r0, =0xf005a060
  12. +    ldr    r0, [r0, #0x20] /* Read GPIO C */
  13. +    tst    r0, #0x4000000
  14. +    ldreq  pc, [pc, #-28]  /* Jump to original firmware if usb connected */
  15.  #else
  16.      #error No bootup key detection implemented for this target
  17.  #endif