pussuw commented on code in PR #6069:
URL: https://github.com/apache/incubator-nuttx/pull/6069#discussion_r859610275


##########
arch/risc-v/include/arch.h:
##########
@@ -70,6 +71,18 @@
 #define STACK_ALIGNMENT     16
 #define STACK_FRAME_SIZE    __XSTR(STACK_ALIGNMENT)
 
+/* Provide the maximum amount of page table levels per MMU type */
+
+#ifdef CONFIG_ARCH_MMU_TYPE_SV39
+#define ARCH_PGT_MAX_LEVELS (3)
+#endif
+
+/* Amount of static page tables allocated for an address environment */
+
+#ifdef CONFIG_ARCH_ADDRENV
+#define ARCH_SPGTS          (ARCH_PGT_MAX_LEVELS - 1)

Review Comment:
   Yes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to