zephyr/drivers/flash
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
flash_handlers.c drivers: Perform a runtime check if a driver is capable of an operation 2018-04-26 02:57:12 +05:30
flash_page_layout.c drivers: flash: add system calls 2017-10-30 13:20:19 -07:00
flash_priv.h drivers: flash: Assert implementation of Flash Page Layout 2017-12-12 14:23:50 -06:00
flash_sam0.c drivers: flash: atmel sam0: Fix compilation without page layout support 2018-04-12 17:26:54 -05:00
flash_stm32.c drivers: flash: stm32: Convert to use device tree 2018-01-26 09:25:57 -06:00
flash_stm32.h flash: stm32: add support for STM32F0 flash controller 2017-12-12 12:36:08 -06:00
flash_stm32f0x.c drivers: flash: stm32f0: remove CONFIG_FLASH_PAGE_SIZE 2018-03-18 17:02:53 -04:00
flash_stm32f3x_priv.c drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f3x.c drivers: flash: stm32: Convert to use device tree 2018-01-26 09:25:57 -06:00
flash_stm32f3x.h drivers: convert to using newly introduced integer sized types 2017-04-21 10:06:48 -05:00
flash_stm32f4x.c cleanup: Use quote include instead of system include 2017-10-28 07:11:53 -04:00
flash_stm32l4x.c flash: stm32l4x: fix build 2017-12-04 10:53:12 -06:00
Kconfig drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00
Kconfig.sam0 subsys: storage: flash_map: enable only if any flash driver is enable 2018-03-08 10:18:57 +01:00
Kconfig.stm32 subsys: storage: flash_map: enable only if any flash driver is enable 2018-03-08 10:18:57 +01:00
soc_flash_mcux.c newlib: Fix compiler warning when using Newlib 2018-04-11 16:57:12 +03:00
soc_flash_nios2_qspi.c drivers: flash: Fix Nios-II QSPI flash Coverity issue 2018-03-06 10:36:39 -08:00
soc_flash_nrf.c drivers: flash: nrf: Rename nrf5 to nrf 2018-03-20 20:07:09 +01:00
soc_flash_qmsi.c drivers: flash: Assert implementation of Flash Page Layout 2017-12-12 14:23:50 -06:00
spi_flash_w25qxxdv_defs.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
spi_flash_w25qxxdv.c drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00
spi_flash_w25qxxdv.h drivers/flash: Switch W25QXXDV driver to new SPI API 2018-04-04 19:02:35 +02:00