android_kernel_xiaomi_sm8350/arch/cris/boot/rescue/testrescue.S
Jesper Nilsson 66ab3a74c5 CRIS: Merge machine dependent boot/compressed and boot/rescue
Merge the machine dependent boot directories for v10 and v32.
This avoids some code duplication and eases the way for further
merging later on.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
2009-04-21 11:44:57 +02:00

25 lines
369 B
ArmAsm

/*
* Simple testcode to download by the rescue block.
* Just lights some LEDs to show it was downloaded correctly.
*
* Copyright (C) 1999 Axis Communications AB
*/
#define ASSEMBLER_MACROS_ONLY
#include <arch/sv_addr_ag.h>
.text
nop
nop
moveq -1, $r2
move.b $r2, [R_PORT_PA_DIR]
moveq 0, $r2
move.b $r2, [R_PORT_PA_DATA]
endless:
nop
ba endless
nop