kernel: rename Z_KERNEL_STACK_BUFFER to K_KERNEL_STACK_BUFFER
Simple rename to align the kernel naming scheme. This is being used throughout the tree, especially in the architecture code. As this is not a private API internal to kernel, prefix it appropriately with K_. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
f05111dea0
commit
b69d2486fe
22 changed files with 30 additions and 30 deletions
|
@ -469,7 +469,7 @@ void z_init_cpu(int id)
|
|||
_kernel.cpus[id].idle_thread = &z_idle_threads[id];
|
||||
_kernel.cpus[id].id = id;
|
||||
_kernel.cpus[id].irq_stack =
|
||||
(Z_KERNEL_STACK_BUFFER(z_interrupt_stacks[id]) +
|
||||
(K_KERNEL_STACK_BUFFER(z_interrupt_stacks[id]) +
|
||||
K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[id]));
|
||||
#ifdef CONFIG_SCHED_THREAD_USAGE_ALL
|
||||
_kernel.cpus[id].usage = &_kernel.usage[id];
|
||||
|
|
|
@ -392,7 +392,7 @@ static char *setup_thread_stack(struct k_thread *new_thread,
|
|||
{
|
||||
/* Object cannot host a user mode thread */
|
||||
stack_obj_size = Z_KERNEL_STACK_SIZE_ADJUST(stack_size);
|
||||
stack_buf_start = Z_KERNEL_STACK_BUFFER(stack);
|
||||
stack_buf_start = K_KERNEL_STACK_BUFFER(stack);
|
||||
stack_buf_size = stack_obj_size - K_KERNEL_STACK_RESERVED;
|
||||
|
||||
/* Zephyr treats stack overflow as an app bug. But
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue