[v2,16/24] mem: add huge page size definition for LoongArch
Checks
Commit Message
LoongArch architecture has a different huge page size (32MB) than
other architectures. This patch adds a new huge page size for
LoongArch architecture.
Signed-off-by: Min Zhou <zhoumin@loongson.cn>
---
lib/eal/include/rte_memory.h | 1 +
lib/eal/include/rte_memzone.h | 1 +
2 files changed, 2 insertions(+)
@@ -30,6 +30,7 @@ extern "C" {
#define RTE_PGSIZE_256K (1ULL << 18)
#define RTE_PGSIZE_2M (1ULL << 21)
#define RTE_PGSIZE_16M (1ULL << 24)
+#define RTE_PGSIZE_32M (1ULL << 25)
#define RTE_PGSIZE_256M (1ULL << 28)
#define RTE_PGSIZE_512M (1ULL << 29)
#define RTE_PGSIZE_1G (1ULL << 30)
@@ -35,6 +35,7 @@ extern "C" {
#define RTE_MEMZONE_1GB 0x00000002 /**< Use 1GB pages. */
#define RTE_MEMZONE_16MB 0x00000100 /**< Use 16MB pages. */
#define RTE_MEMZONE_16GB 0x00000200 /**< Use 16GB pages. */
+#define RTE_MEMZONE_32MB 0x00000400 /**< Use 32MB pages. */
#define RTE_MEMZONE_256KB 0x00010000 /**< Use 256KB pages. */
#define RTE_MEMZONE_256MB 0x00020000 /**< Use 256MB pages. */
#define RTE_MEMZONE_512MB 0x00040000 /**< Use 512MB pages. */