diff --git a/boards/Kconfig b/boards/Kconfig index 44d2ec5cd06..ee66f5b1353 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -4895,5 +4895,5 @@ config BOARD_MEMORY_RANGE Memory range of board. format: ,,,.... start: start address of memory range end: end address of memory range - flags: Readable 0x1, writable 0x2, executable 0x4 - example:0x1000,0x2000,0x1},{0x2000,0x3000,0x3},{0x3000,0x4000,0x7} ... {0x0,0x0,0x0} + flags: Executable 0x1, Writable 0x2, Readable 0x4 + example:{0x1000,0x2000,0x4},{0x2000,0x3000,0x6},{0x3000,0x4000,0x7} ... {0x0,0x0,0x0} diff --git a/libs/libc/misc/lib_memoryregion.c b/libs/libc/misc/lib_memoryregion.c index 1c55e424194..62187a247c3 100644 --- a/libs/libc/misc/lib_memoryregion.c +++ b/libs/libc/misc/lib_memoryregion.c @@ -40,11 +40,11 @@ * format - The format string to parse. ,,,... * start - The start address of the memory region * end - The end address of the memory region - * flags - Readable 0x1, writable 0x2, executable 0x4 + * flags - Executable 0x1, Writable 0x2, Readable 0x4 * region - The memory region to populate * num - The number of memory regions to parse * - * example: 0x1000,0x2000,0x1,0x2000,0x3000,0x3,0x3000,0x4000,0x7 + * example: 0x1000,0x2000,0x4,0x2000,0x3000,0x6,0x3000,0x4000,0x7 * ****************************************************************************/ @@ -106,8 +106,8 @@ ssize_t parse_memory_region(FAR const char *format, * format - The format string to parse. ,,,... * start - The start address of the memory region * end - The end address of the memory region - * flags - Readable 0x1, writable 0x2, executable 0x4 - * example: 0x1000,0x2000,0x1,0x2000,0x3000,0x3,0x3000,0x4000,0x7 + * flags - Executable 0x1, Writable 0x2, Readable 0x4 + * example: 0x1000,0x2000,0x4,0x2000,0x3000,0x6,0x3000,0x4000,0x7 * * Return: * The parsed memory region list on success; NULL on failure.