summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/sys/vfs.h7
-rw-r--r--src/include/usr/vfs/vfs_reasoncodes.H6
2 files changed, 11 insertions, 2 deletions
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h
index 7bbe73e30..fabe546cc 100644
--- a/src/include/sys/vfs.h
+++ b/src/include/sys/vfs.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2010,2015 */
+/* Contributors Listed Below - COPYRIGHT 2010,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -44,6 +44,7 @@
#define VFS_EXTENDED_MODULE_VADDR (1 * 1024 * 1024 * 1024)
#define VFS_EXTENDED_MODULE_TABLE_ADDRESS (VFS_EXTENDED_MODULE_VADDR)
#define VFS_EXTENDED_MODULE_TABLE_OFFSET 0
+// Note: VFS_EXTENDED_MODULE_MAX used in src/build/buildpnor/buildpnor.pl
#define VFS_EXTENDED_MODULE_MAX 128
#define VFS_MODULE_NAME_MAX 64
#define VFS_SYMBOL_INIT _init
@@ -82,6 +83,8 @@ enum VfsMessages
VFS_MSG_UNLOAD, //!< Message to vfsrp to unload a module
};
+// Note: size of VfsSystemModule (VFS_MODULE_TABLE_ENTRY_SIZE) used in
+// src/build/buildpnor/buildpnor.pl
struct VfsSystemModule
{
char module[VFS_MODULE_NAME_MAX]; //!< Module name
@@ -97,6 +100,8 @@ extern VfsSystemModule VFS_MODULES[VFS_MODULE_MAX];
extern uint64_t VFS_LAST_ADDRESS;
+#define VFS_MODULE_TABLE_SIZE (VFS_EXTENDED_MODULE_MAX * sizeof(VfsSystemModule))
+
// Offset for TLS "dtv-relative displacement".
// See http://www.uclibc.org/docs/tls-ppc64.txt
#define VFS_PPC64_DTPREL_OFFSET 0x8000
diff --git a/src/include/usr/vfs/vfs_reasoncodes.H b/src/include/usr/vfs/vfs_reasoncodes.H
index 2d29aba58..99c78c2da 100644
--- a/src/include/usr/vfs/vfs_reasoncodes.H
+++ b/src/include/usr/vfs/vfs_reasoncodes.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -35,6 +37,7 @@ namespace VFS
VFS_WATCHER = 0x03,
VFS_MODULE_LOAD_MONITOR = 0x04,
VFS_MODULE_EXEC_MONITOR = 0x05,
+ VFS_VERIFY_PAGE = 0x06,
};
enum VfsReasonCode
@@ -46,6 +49,7 @@ namespace VFS
VFS_MODULE_DOES_NOT_EXIST = VFS_COMP_ID | 0x05,
VFS_INVALID_DATA_MODULE = VFS_COMP_ID | 0x06,
VFS_TASK_CRASHED = VFS_COMP_ID | 0x07,
+ VFS_PAGE_VERIFY_FAILED = VFS_COMP_ID | 0x08,
};
};
OpenPOWER on IntegriCloud