mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 01:32:47 +02: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>
19 lines
354 B
C
19 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;
|
|
}
|