repo.or.cz
/
u-boot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
common: relocate fdt_blob in global_data for FDTSRC_EMBED case
[u-boot.git]
/
cmd
/
exit.c
blob
d125ec1e31f2d80d8a5b3e288db94e988bec16ff
1
// SPDX-License-Identifier: GPL-2.0+
2
/*
3
* Copyright 2000-2009
4
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
*/
6
7
#include <command.h>
8
#include <vsprintf.h>
9
10
static int
do_exit
(
struct
cmd_tbl
*
cmdtp
,
int
flag
,
int
argc
,
11
char
*
const
argv
[])
12
{
13
int
r
;
14
15
r
=
0
;
16
if
(
argc
>
1
)
17
r
=
simple_strtoul
(
argv
[
1
],
NULL
,
10
);
18
19
return
-
r
-
2
;
20
}
21
22
U_BOOT_CMD
(
23
exit
,
2
,
1
,
do_exit
,
24
"exit script"
,
25
""
26
);