提交 0c4ec16b 编写于 作者: S Steven J. Magnani 提交者: Michal Simek

microblaze: Fix "kstack=" parsing

The "kstack=" command line parameter is not parsed correctly.
All proper values are interpreted as zero.
Signed-off-by: NSteven J. Magnani <steve@digidescorp.com>
Signed-off-by: NMichal Simek <monstr@monstr.eu>
上级 2eaa9cfd
...@@ -22,13 +22,11 @@ void trap_init(void) ...@@ -22,13 +22,11 @@ void trap_init(void)
__enable_hw_exceptions(); __enable_hw_exceptions();
} }
static int kstack_depth_to_print = 24; static unsigned long kstack_depth_to_print = 24;
static int __init kstack_setup(char *s) static int __init kstack_setup(char *s)
{ {
kstack_depth_to_print = strict_strtoul(s, 0, NULL); return !strict_strtoul(s, 0, &kstack_depth_to_print);
return 1;
} }
__setup("kstack=", kstack_setup); __setup("kstack=", kstack_setup);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册