From f81893bd972ea3987f8860541ac2c74724bb055e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 23 Mar 2015 16:14:19 +0000 Subject: Added experimental system integrity check API chSysIntegrityCheckI(). git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7799 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chsys.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'os/rt/include') diff --git a/os/rt/include/chsys.h b/os/rt/include/chsys.h index 7cc6aca5c..888e98b5c 100644 --- a/os/rt/include/chsys.h +++ b/os/rt/include/chsys.h @@ -34,6 +34,16 @@ /* Module constants. */ /*===========================================================================*/ +/** + * @name Masks of executable integrity checks. + * @{ + */ +#define CH_INTEGRITY_RLIST 1 +#define CH_INTEGRITY_VTLIST 2 +#define CH_INTEGRITY_REGISTRY 4 +#define CH_INTEGRITY_PORT 8 +/** @} */ + /*===========================================================================*/ /* Module pre-compile time settings. */ /*===========================================================================*/ @@ -230,6 +240,7 @@ extern "C" { #endif void chSysInit(void); void chSysHalt(const char *reason); + bool chSysIntegrityCheckI(unsigned testmask); void chSysTimerHandlerI(void); syssts_t chSysGetStatusAndLockX(void); void chSysRestoreStatusX(syssts_t sts); -- cgit v1.2.3