Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
f08441be
Commit
f08441be
authored
Nov 02, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell: add architecture info to ver command
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
fd0b4a20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
cmd_version.c
shell/cmd_version.c
+9
-1
No files found.
shell/cmd_version.c
View file @
f08441be
...
...
@@ -24,6 +24,14 @@
#define DETERMINISTIC_BINARY 0
#endif
#ifdef CONFIG_ARCH_RISCV
#define ARCH_STRING "RISCV"
#endif
#ifdef CONFIG_ARCH_LM32
#define ARCH_STRING "LM32"
#endif
static
int
cmd_ver
(
const
char
*
args
[])
{
int
hwram
=
sysc_get_memsize
();
...
...
@@ -35,7 +43,7 @@ static int cmd_ver(const char *args[])
else
pp_printf
(
"Built: %s %s by %s
\n
"
,
build_date
,
build_time
,
build_by
);
pp_printf
(
"Built for %
d kB RAM, stack is %d bytes
\n
"
,
pp_printf
(
"Built for %
s, %d kB RAM, stack is %d bytes
\n
"
,
ARCH_STRING
,
CONFIG_RAMSIZE
/
1024
,
CONFIG_STACKSIZE
);
/* hardware reports memory size, with a 16kB granularity */
if
(
hwram
/
16
!=
CONFIG_RAMSIZE
/
1024
/
16
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment