summaryrefslogtreecommitdiff
path: root/nuttx/configs/ea3131/src/up_fillpage.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/ea3131/src/up_fillpage.c')
-rwxr-xr-xnuttx/configs/ea3131/src/up_fillpage.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/configs/ea3131/src/up_fillpage.c b/nuttx/configs/ea3131/src/up_fillpage.c
index 2c238c9a1..04f2e8157 100755
--- a/nuttx/configs/ea3131/src/up_fillpage.c
+++ b/nuttx/configs/ea3131/src/up_fillpage.c
@@ -132,4 +132,28 @@ int up_fillpage(FAR _TCB *tcb, FAR void *vpage, up_pgcallback_t pg_callback)
}
#endif
+/************************************************************************************
+ * Name: lpc313x_pginitialize
+ *
+ * Description:
+ * Set up mass storage device to support on demand paging.
+ *
+ ************************************************************************************/
+
+void weak_function lpc313x_pginitialize(void)
+{
+ /* This initialization does nothing in this example setup. But this function is
+ * where you might, for example:
+ *
+ * - Initialize and configure a mass storage device to support on-demand paging.
+ * This might be, perhaps an SD card or NAND memory. An SPI FLASH would probably
+ * already have been configured by lpc313x_spiinitialize(void);
+ * - Set up resources to support up_fillpage() operation. For example, perhaps the
+ * the text image is stored in a named binary file. In this case, the virtual
+ * text addresses might map to offsets into that file.
+ * - Do whatever else is necessary to make up_fillpage() ready for the first time
+ * that it is called.
+ */
+}
+
#endif /* CONFIG_PAGING */