zephyr/arch/nios2/core
Andrew Boie 618426d6e7 kernel: add Z_STACK_PTR_ALIGN ARCH_STACK_PTR_ALIGN
This operation is formally defined as rounding down a potential
stack pointer value to meet CPU and ABI requirments.

This was previously defined ad-hoc as STACK_ROUND_DOWN().

A new architecture constant ARCH_STACK_PTR_ALIGN is added.
Z_STACK_PTR_ALIGN() is defined in terms of it. This used to
be inconsistently specified as STACK_ALIGN or STACK_PTR_ALIGN;
in the latter case, STACK_ALIGN meant something else, typically
a required alignment for the base of a stack buffer.

STACK_ROUND_UP() only used in practice by Risc-V, delete
elsewhere.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2020-04-21 18:45:45 -04:00
..
offsets headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
CMakeLists.txt arch: Simplify private header include path configuration. 2019-11-06 16:07:32 -08:00
cache.c cleanup: include/: move misc/__assert.h to sys/__assert.h 2019-06-27 22:55:49 -04:00
cpu_idle.c kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
crt0.S kernel: add Z_STACK_PTR_ALIGN ARCH_STACK_PTR_ALIGN 2020-04-21 18:45:45 -04:00
exception.S kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
fatal.c kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
irq_manage.c nios2: add arch_irq_is_enabled() 2020-03-10 12:06:54 -04:00
irq_offload.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
prep_c.c
reset.S headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
swap.S kernel: rename z_arch_ to arch_ 2019-11-07 15:21:46 -08:00
thread.c kernel: add Z_STACK_PTR_ALIGN ARCH_STACK_PTR_ALIGN 2020-04-21 18:45:45 -04:00