zephyr/drivers/serial
Adithya Baglody b0db28b512 drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver 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 driver 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
..
CMakeLists.txt drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
Kconfig serial: Add imx uart driver shim 2018-04-11 08:27:05 +02:00
Kconfig.altera_jtag
Kconfig.cc32xx
Kconfig.cmsdk_apb
Kconfig.esp32
Kconfig.fe310
Kconfig.gecko
Kconfig.imx serial: Add imx uart driver shim 2018-04-11 08:27:05 +02:00
Kconfig.mcux
Kconfig.mcux_lpc_usart
Kconfig.mcux_lpsci
Kconfig.mcux_lpuart
Kconfig.msp432p4xx
Kconfig.nrf5 arch: arm: nrf: Rename nrf5 SoC Family to nrf 2018-03-20 11:57:14 +01:00
Kconfig.ns16550 arch: arc: em{7,9,11}d: Add initial DTS UART support 2018-03-23 10:13:53 +01:00
Kconfig.nsim
Kconfig.qmsi
Kconfig.riscv_qemu
Kconfig.sam0
Kconfig.stellaris
Kconfig.stm32 drivers: uart: stm32: make comments and options less specific 2018-03-21 15:40:55 -04:00
Kconfig.uart_sam
Kconfig.usart_sam
uart_altera_jtag_hal.c
uart_cc32xx.c
uart_cmsdk_apb.c
uart_esp32.c
uart_fe310.c
uart_gecko.c
uart_handlers.c drivers: Perform a runtime check if a driver is capable of an operation 2018-04-26 02:57:12 +05:30
uart_imx.c serial: Add imx uart driver shim 2018-04-11 08:27:05 +02:00
uart_mcux_lpsci.c
uart_mcux_lpuart.c
uart_mcux.c
uart_msp432p4xx.c
uart_nrf5.c arch: arm: nordic_nrf: Restore copyright years 2018-03-20 13:25:44 +01:00
uart_ns16550.c
uart_ns16550.h
uart_nsim.c
uart_qmsi.c uart_qmsi: fix possible divide-by-zero 2018-05-07 22:25:48 -04:00
uart_riscv_qemu.c
uart_sam.c
uart_sam0.c
uart_stellaris.c
uart_stm32.c drivers: uart: stm32: improve STM32L0 support 2018-03-21 15:40:55 -04:00
uart_stm32.h
usart_mcux_lpc.c ext: mcux: Reorganize imported drivers into soc family subfolders 2018-04-24 07:55:48 -05:00
usart_sam.c