kerneltest/e32test/misc/t_undef.cia
changeset 0 a41df078684a
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     1 // Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32test\misc\t_undef.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <e32test.h>
       
    19 #include <u32std.h>
       
    20 
       
    21 
       
    22 #ifdef __CPU_ARM
       
    23 __NAKED__ void Crash()
       
    24 	{
       
    25 
       
    26 	__SWITCH_TO_ARM;
       
    27 	asm("mvn r0, #0 ");
       
    28 	asm("mcr p15, 0, r0, c3, c0 ");		// accessing CP15 in user mode -> undef exception
       
    29 	__JUMP(,lr);
       
    30 	__END_ARM;
       
    31 	}
       
    32 #endif