diff -r d8d70de2bd36 -r 57b9594f5772 kernel/eka/include/u32hal.h --- a/kernel/eka/include/u32hal.h Wed Aug 18 11:08:29 2010 +0300 +++ b/kernel/eka/include/u32hal.h Thu Sep 02 21:54:16 2010 +0300 @@ -2843,6 +2843,22 @@ enabled. */ EVMHalSetDataWriteSize, + + /** + @internalTechnology + @test + + Simulates a paging error in a specified context. + + For testing purposes, this causes the paging system to report an error the next time an + operation occurs that could generate an error with the specified context. + + The first argument (a1) contains one of the contexts described by TPagingErrorContext. + + @return KErrArgument if the value is out of range, or KErrNotSupported on memory models that do + not support this. + */ + EVMHalDebugSetFail, }; @@ -3273,6 +3289,25 @@ }; +/** +@internalComponent +@test + +Error context information for use by #DPager::EmbedErrorContext and #DPager::ExtractErrorContext. +*/ +enum TPagingErrorContext + { + EPagingErrorContextNone = 0, + EPagingErrorContextRomRead, + EPagingErrorContextRomDecompress, + EPagingErrorContextCodeRead, + EPagingErrorContextCodeDecompress, + EPagingErrorContextDataRead, + EPagingErrorContextDataWrite, + + EMaxPagingErrorContext + }; + /** @internalComponent