head-l7200.S 676 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * linux/arch/arm/boot/compressed/head-l7200.S
  3. *
  4. * Copyright (C) 2000 Steve Hill <sjhill@cotw.com>
  5. *
  6. * Some code borrowed from Nicolas Pitre's 'head-sa1100.S' file. This
  7. * is merged with head.S by the linker.
  8. */
  9. #include <asm/mach-types.h>
  10. #ifndef CONFIG_ARCH_L7200
  11. #error What am I doing here...
  12. #endif
  13. .section ".start", "ax"
  14. __L7200_start:
  15. mov r0, #0x00100000 @ FLASH address of initrd
  16. mov r2, #0xf1000000 @ RAM address of initrd
  17. add r3, r2, #0x00700000 @ Size of initrd
  18. 1:
  19. ldmia r0!, {r4, r5, r6, r7}
  20. stmia r2!, {r4, r5, r6, r7}
  21. cmp r2, r3
  22. ble 1b
  23. mov r8, #0 @ Zero it out
  24. mov r7, #MACH_TYPE_L7200 @ Set architecture ID