zephyr/arch/arc/core
Adithya Baglody 5ab3960c75 arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files.
Normally a syscall would check the current privilege level and then
decide to go to _impl_<syscall> directly or go through a
_handler_<syscall>.
__ZEPHYR_SUPERVISOR__ is a compiler optimization flag which will
make all the system calls from the arch files directly link
to the _impl_<syscall>. Thereby reducing the overhead of checking the
privileges.

In the previous implementation all the source files would be compiled
by zephyr_source() rule. This means that zephyr_* is a catchall CMake
library for source files that can be built purely with the include
paths, defines, and other compiler flags that all zephyr source
files uses. This states that adding one extra compiler flag for only
one complete directory would fail.
This limitation can be overcome by using zephyr_libray* APIs. This
creates a library for the required directories and it also supports
directory level properties.
Hence we use zephyr_library* to create a new library with
macro _ZEPHYR_SUPERVISOR_ for the optimization.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
2018-05-15 17:48:18 +03:00
..
mpu arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files. 2018-05-15 17:48:18 +03:00
offsets arch: arc: bug fixes and add user space support in secure mode 2018-02-16 12:20:16 +01:00
CMakeLists.txt arch: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for arch files. 2018-05-15 17:48:18 +03:00
atomic.S linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
cache.c kernel: include: rename nano_internal.h to kernel_internal.h 2018-01-31 10:07:21 -06:00
cpu_idle.S linker: move all linker headers to include/linker 2017-06-18 09:24:04 -05:00
fast_irq.S arch: arc: add the support of STACK_SENTINEL 2018-04-17 10:50:12 -07:00
fatal.c arch: arc: bug fixes and optimization in exception handling 2018-04-17 10:50:12 -07:00
fault.c arch: arc: bug fixes and optimization in exception handling 2018-04-17 10:50:12 -07:00
fault_s.S arch: arc: fix the typo of label which caused issue #7249 2018-05-02 09:31:00 -04:00
irq_manage.c cleanup: Move #include directives 2017-09-11 12:41:07 -04:00
irq_offload.c arch: arc: bug fixes in irq_load 2018-04-17 10:50:12 -07:00
isr_wrapper.S arch: arc: save user thread's context into privilege stack 2018-02-16 12:20:16 +01:00
prep_c.c kernel: include: rename nano_internal.h to kernel_internal.h 2018-01-31 10:07:21 -06:00
regular_irq.S arch: arc: add the support of STACK_SENTINEL 2018-04-17 10:50:12 -07:00
reset.S arch: arc: enable US bit to check user mode 2018-02-16 12:20:16 +01:00
swap.S arch: arc: fix the bug of context switch in interrupt 2018-03-08 11:01:11 +01:00
sys_fatal_error_handler.c arch: arc: optimize the _SysFatalErrorHandler 2018-04-17 10:50:12 -07:00
thread.c arch: arc: apply the new thread stack layout 2018-02-16 12:20:16 +01:00
thread_entry_wrapper.S arch: arc: add user space support for arc 2018-02-16 12:20:16 +01:00
timestamp.c kernel: tickless: Add tickless kernel support 2017-04-27 13:46:28 +00:00
userspace.S arch: arc: apply the new thread stack layout 2018-02-16 12:20:16 +01:00
vector_table.c arch: convert to using newly introduced integer sized types 2017-04-21 12:08:12 +00:00