arch: x86: Add missing U for unsigned constants
Add U for integer constants to avoid an implicit cast. MISRA-C rule 10.1 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
44fc55e209
commit
3306a5862f
1 changed files with 3 additions and 3 deletions
|
@ -8,9 +8,9 @@
|
|||
#ifndef ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_
|
||||
#define ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_
|
||||
|
||||
#define MMU_PAGE_SIZE 4096
|
||||
#define MMU_PAGE_MASK 0xfff
|
||||
#define MMU_PAGE_SHIFT 12
|
||||
#define MMU_PAGE_SIZE 4096U
|
||||
#define MMU_PAGE_MASK 0xfffU
|
||||
#define MMU_PAGE_SHIFT 12U
|
||||
#define PAGES(x) ((x) << (MMU_PAGE_SHIFT))
|
||||
#define MMU_ARE_IN_SAME_PAGE(a, b) \
|
||||
(((u32_t)(a) & ~MMU_PAGE_MASK) == ((u32_t)(b) & ~MMU_PAGE_MASK))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue