Skip to content
Snippets Groups Projects
Commit eb5c8539 authored by Alexey Brodkin's avatar Alexey Brodkin
Browse files

ARC: Reset: Implement weak reset_cpu()


This will allow for board-specific implementation of reset.
Default version will just stop execution with help of BRK instruction.

Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
parent 8f187142
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,17 @@
#include <command.h>
#include <common.h>
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
__weak void reset_cpu(ulong addr)
{
printf("Put your restart handler here\n");
#ifdef DEBUG
/* Stop debug session here */
__builtin_arc_brk();
#endif
}
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
printf("Resetting the board...\n");
reset_cpu(0);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment