diff --git a/drivers/serial/uart_mcux_lpuart.c b/drivers/serial/uart_mcux_lpuart.c index 969bca792d16..8fd7426316d3 100644 --- a/drivers/serial/uart_mcux_lpuart.c +++ b/drivers/serial/uart_mcux_lpuart.c @@ -8,8 +8,8 @@ #include #include #include -#include #include +#include struct mcux_lpuart_config { LPUART_Type *base; diff --git a/include/arch/arm/syscall.h b/include/arch/arm/syscall.h index b6ce4c0dc0eb..fdea3fcaabd7 100644 --- a/include/arch/arm/syscall.h +++ b/include/arch/arm/syscall.h @@ -6,9 +6,9 @@ /** * @file - * @brief ARM specific sycall header + * @brief ARM specific syscall header * - * This header contains the ARM specific sycall interface. It is + * This header contains the ARM specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ @@ -26,6 +26,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -167,7 +168,7 @@ static inline bool z_arch_is_user_context(void) /* if not handler mode, return mode information */ __asm__ volatile("mrs %0, CONTROL\n\t" : "=r"(value)); - return (value & 0x1) ? true : false; + return (value & CONTROL_nPRIV_Msk) ? true : false; } #ifdef __cplusplus diff --git a/soc/arm/nxp_imx/rt/soc.h b/soc/arm/nxp_imx/rt/soc.h index 2960732ae58e..27c7c69e84dc 100644 --- a/soc/arm/nxp_imx/rt/soc.h +++ b/soc/arm/nxp_imx/rt/soc.h @@ -13,11 +13,8 @@ #include -/* ARM CMSIS definitions must be included before kernel_includes.h. - * Therefore, it is essential to include kernel_includes.h after including - * core SOC-specific headers. - */ -#include +/* Add include for DTS generated information */ +#include #ifdef __cplusplus extern "C" { diff --git a/soc/arm/nxp_kinetis/k6x/soc.h b/soc/arm/nxp_kinetis/k6x/soc.h index d3fc56077f9b..a34709919914 100644 --- a/soc/arm/nxp_kinetis/k6x/soc.h +++ b/soc/arm/nxp_kinetis/k6x/soc.h @@ -30,9 +30,9 @@ #ifndef _ASMLANGUAGE #include -#include -#include -#include + +/* Add include for DTS generated information */ +#include #endif /* !_ASMLANGUAGE */ diff --git a/soc/arm/nxp_kinetis/k8x/Kconfig.soc b/soc/arm/nxp_kinetis/k8x/Kconfig.soc index e63c60f2aa0b..d994a5bda3af 100644 --- a/soc/arm/nxp_kinetis/k8x/Kconfig.soc +++ b/soc/arm/nxp_kinetis/k8x/Kconfig.soc @@ -80,4 +80,4 @@ config WDOG_INIT requires that the watchdog be configured during reset handling. -endif # SOC_SERIES_KINETIS_KV5X +endif # SOC_SERIES_KINETIS_K8X diff --git a/soc/arm/nxp_kinetis/k8x/soc.h b/soc/arm/nxp_kinetis/k8x/soc.h index a2cbb23b2eb9..1dc9ba8d0f7c 100644 --- a/soc/arm/nxp_kinetis/k8x/soc.h +++ b/soc/arm/nxp_kinetis/k8x/soc.h @@ -7,7 +7,7 @@ #ifndef _SOC__H_ #define _SOC__H_ -#include +#include #ifdef __cplusplus extern "C" { @@ -17,11 +17,8 @@ extern "C" { #include -/* ARM CMSIS definitions must be included before kernel_includes.h. - * Therefore, it is essential to include kernel_includes.h after including - * core SOC-specific headers. - */ -#include +/* Add include for DTS generated information */ +#include #endif /* !_ASMLANGUAGE */ diff --git a/soc/arm/nxp_kinetis/ke1xf/soc.h b/soc/arm/nxp_kinetis/ke1xf/soc.h index 3bcc0869c7ef..849ae086389e 100644 --- a/soc/arm/nxp_kinetis/ke1xf/soc.h +++ b/soc/arm/nxp_kinetis/ke1xf/soc.h @@ -9,4 +9,13 @@ #include +#ifndef _ASMLANGUAGE + +#include + +/* Add include for DTS generated information */ +#include + +#endif /* !_ASMLANGUAGE */ + #endif /* _SOC__H_ */ diff --git a/soc/arm/nxp_kinetis/kl2x/soc.h b/soc/arm/nxp_kinetis/kl2x/soc.h index de7fe6149238..3295c3d4a8a5 100644 --- a/soc/arm/nxp_kinetis/kl2x/soc.h +++ b/soc/arm/nxp_kinetis/kl2x/soc.h @@ -14,9 +14,9 @@ #ifndef _ASMLANGUAGE #include -#include -#include -#include + +/* Add include for DTS generated information */ +#include #endif /* !_ASMLANGUAGE */ diff --git a/soc/arm/nxp_kinetis/kwx/soc.h b/soc/arm/nxp_kinetis/kwx/soc.h index e9d3ca540a92..1259349075de 100644 --- a/soc/arm/nxp_kinetis/kwx/soc.h +++ b/soc/arm/nxp_kinetis/kwx/soc.h @@ -25,9 +25,9 @@ #ifndef _ASMLANGUAGE #include -#include -#include -#include + +/* Add include for DTS generated information */ +#include #endif /* !_ASMLANGUAGE */ diff --git a/soc/arm/nxp_lpc/lpc54xxx/soc.h b/soc/arm/nxp_lpc/lpc54xxx/soc.h index ed8eaa3c131d..91d7dd0744ed 100644 --- a/soc/arm/nxp_lpc/lpc54xxx/soc.h +++ b/soc/arm/nxp_lpc/lpc54xxx/soc.h @@ -19,11 +19,9 @@ #include #include -/* ARM CMSIS definitions must be included before kernel_includes.h. - * Therefore, it is essential to include kernel_includes.h after including - * core SOC-specific headers. - */ -#include +/* Add include for DTS generated information */ +#include + #endif /* !_ASMLANGUAGE */ #define IOCON_PIO_DIGITAL_EN 0x80u diff --git a/soc/arm/nxp_lpc/lpc55xxx/soc.h b/soc/arm/nxp_lpc/lpc55xxx/soc.h index d1fd4e406246..e90325559edb 100644 --- a/soc/arm/nxp_lpc/lpc55xxx/soc.h +++ b/soc/arm/nxp_lpc/lpc55xxx/soc.h @@ -16,9 +16,12 @@ #define _SOC__H_ #ifndef _ASMLANGUAGE -#include #include #include + +/* Add include for DTS generated information */ +#include + #endif /* !_ASMLANGUAGE */ #define IOCON_PIO_DIGITAL_EN 0x0100u /*!<@brief Enables digital function */