kernel: z_interrupt_stacks are now kernel stacks

This will save memory on many platforms that enable
user mode.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-04-25 15:19:23 -07:00 committed by Anas Nashif
commit 8b4b0d6264
10 changed files with 25 additions and 26 deletions

View file

@ -149,8 +149,8 @@ static int cmd_kernel_stacks(const struct shell *shell,
* stack buffers.
*/
for (int i = 0; i < CONFIG_MP_NUM_CPUS; i++) {
buf = Z_THREAD_STACK_BUFFER(z_interrupt_stacks[i]);
size = K_THREAD_STACK_SIZEOF(z_interrupt_stacks[i]);
buf = Z_KERNEL_STACK_BUFFER(z_interrupt_stacks[i]);
size = K_KERNEL_STACK_SIZEOF(z_interrupt_stacks[i]);
for (size_t i = 0; i < size; i++) {
if (buf[i] == 0xAAU) {