mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
For quite some time we have a GCC's built-in which inserts BRK instruction so let's use it instead of simple insertion of in-line assembly. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
18 lines
354 B
C
18 lines
354 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <command.h>
|
|
#include <common.h>
|
|
|
|
int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|
{
|
|
printf("Put your restart handler here\n");
|
|
|
|
#ifdef DEBUG
|
|
/* Stop debug session here */
|
|
__builtin_arc_brk();
|
|
#endif
|
|
return 0;
|
|
}
|