summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/core.h
Commit message (Collapse)AuthorAgeFilesLines
* xtensa: merge stack alignment definitionsMax Filippov2022-03-191-0/+7
| | | | | | | xtensa currently has two different definitions for stack alignment. Replace it with single definition usable in both C and assembly. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* xtensa: definitions for call0 ABIMax Filippov2021-10-181-0/+11
| | | | | | | Add assembly macros for calls, call arguments, preserved registers, function entry and return for windowed and call0 ABIs. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* xtensa: clean up optional XCHAL_* definitionsMax Filippov2020-02-011-0/+8
| | | | | | | Simplify users of XCHAL_HAVE_EXTERN_REGS and XCHAL_HAVE_VECBASE and always define them as 0 if they're not defined in the variant/core.h Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* xtensa: implement initialize_cacheattr for MPU coresMax Filippov2019-05-071-0/+4
| | | | | | | | Use CONFIG_MEMMAP_CACHEATTR to initialize MPU as described in the Xtensa LSP RM document. Coalesce adjacent regions with the same cacheattr. Update Kconfig help text. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* xtensa: add exclusive atomics supportMax Filippov2019-05-071-0/+4
| | | | | | | | | Implement atomic primitives using exclusive access opcodes available in the recent xtensa cores. Since l32ex/s32ex don't have any memory ordering guarantees don't define __smp_mb__before_atomic/__smp_mb__after_atomic to make them use memw. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
* xtensa: replace variant/core.h with asm/core.hMax Filippov2019-05-061-0/+13
Introduce the header arch/xtensa/include/asm/core.h that provides definitions for XCHAL macros missing in older xtensa releases. Use this header instead of variant/core.h Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>