tests/rng: alloc shell buffer in .data
Do not allocate the shell buffer on stack to reduce stack usage.
This commit is contained in:
parent
0e66b18f0c
commit
d1c454790f
@ -260,7 +260,7 @@ static int cmd_speed(int argc, char **argv)
|
|||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
puts("Starting shell...");
|
puts("Starting shell...");
|
||||||
char line_buf[SHELL_DEFAULT_BUFSIZE];
|
static char line_buf[SHELL_DEFAULT_BUFSIZE];
|
||||||
shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
|
shell_run(shell_commands, line_buf, SHELL_DEFAULT_BUFSIZE);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user