Rename K_StackSize to _k_server_stack_size
Updating global variable's name to follow a consistent naming convention. Change accomplished with the following script: #!/bin/bash echo "Searching for ${1} to replace with ${2}" find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \ ! -path "./host/src/genIdt/*" \ ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g'; Change-Id: I56ee3d3ab6d1254359adcffa4d86c1bf2e20537a Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
ab9c05ac2a
commit
e2be61c15e
3 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ extern void kernel_init(void);
|
|||
extern void init_node(void); /* generated function */
|
||||
extern void init_drivers(void); /* generated function */
|
||||
extern const knode_t _k_this_node;
|
||||
extern int K_StackSize;
|
||||
extern int _k_server_stack_size;
|
||||
|
||||
extern int _k_task_count;
|
||||
extern int _k_mem_map_count;
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#endif
|
||||
|
||||
extern void init_node(void); /* generated by SYSGEN */
|
||||
extern int K_StackSize; /* generated by SYSGEN */
|
||||
extern int _k_server_stack_size; /* generated by SYSGEN */
|
||||
extern char _k_server_stack[]; /* generated by SYSGEN */
|
||||
|
||||
/*
|
||||
|
@ -90,7 +90,7 @@ void kernel_init(void)
|
|||
nano_stack_init(&_k_command_stack, _k_server_command_stack_storage);
|
||||
|
||||
task_fiber_start((char *)_k_server_stack,
|
||||
K_StackSize,
|
||||
_k_server_stack_size,
|
||||
K_swapper,
|
||||
0,
|
||||
0,
|
||||
|
|
|
@ -306,7 +306,7 @@ def kernel_main_c_header():
|
|||
kernel_main_c_out("\n" +
|
||||
"char __noinit _k_server_stack[CONFIG_MICROKERNEL_SERVER_STACK_SIZE];\n")
|
||||
kernel_main_c_out(
|
||||
"int K_StackSize = CONFIG_MICROKERNEL_SERVER_STACK_SIZE;\n")
|
||||
"int _k_server_stack_size = CONFIG_MICROKERNEL_SERVER_STACK_SIZE;\n")
|
||||
|
||||
|
||||
def kernel_main_c_kargs():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue