os/kernelhwsrv/kernel/eka/euser/epoc/arm/uc_std.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 1995-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 // e32\euser\epoc\arm\uc_std.h
    15 // 
    16 //
    17 
    18 #if !defined(__UCSTD_H__)
    19 #define __UCSTD_H__
    20 #include <e32def.h>
    21 
    22 #ifdef __GCC32__
    23 
    24 #define	_CBASE_VPTR_OFFSET_				0
    25 
    26 #define	_VTBL_INIT_SPARE_				8
    27 #define _CBASE_DESTRUCT_OFFSET_			(_VTBL_INIT_SPARE_)
    28 #define	_CBASE_VTBL_SIZE_				(_VTBL_INIT_SPARE_+8)
    29 #define	_CACTIVESCHEDULER_WAIT_OFFSET_	(_CBASE_VTBL_SIZE_)
    30 #define _CACTIVESCHEDULER_ERROR_OFFSET_	(_CBASE_VTBL_SIZE_+4)
    31 #define _CACTIVESCHEDULER_VTBL_SIZE_	(_CBASE_VTBL_SIZE_+24)
    32 #define	_CACTIVE_DOCANCEL_OFFSET_		(_CBASE_VTBL_SIZE_)
    33 #define	_CACTIVE_RUNL_OFFSET_			(_CBASE_VTBL_SIZE_+4)
    34 #define	_CACTIVE_RUNERROR_OFFSET_		(_CBASE_VTBL_SIZE_+8)
    35 #define _CACTIVE_VTBL_SIZE_				(_CBASE_VTBL_SIZE_+12)
    36 #define _CSESSION_CREATEL_OFFSET_		(_CBASE_VTBL_SIZE_)
    37 #define _CSESSION_COUNT_OFFSET_			(_CBASE_VTBL_SIZE_+4)
    38 #define	_CSESSION_SERVICEL_OFFSET_		(_CBASE_VTBL_SIZE_+8)
    39 #define	_CSESSION2_SERVICEL_OFFSET_		(_CBASE_VTBL_SIZE_+8)
    40 #define _TTRAPHANDLER_VPTR_OFFSET_		0
    41 #define _TTRAPHANDLER_TRAP_OFFSET_		8
    42 #define _TTRAPHANDLER_LEAVE_OFFSET_		16
    43 
    44 #elif defined(__EABI__)
    45 
    46 #define	_CBASE_VPTR_OFFSET_				0
    47 #define _CBASE_DESTRUCT_OFFSET_			        4
    48 
    49 #define	_CBASE_VTBL_SIZE_				12
    50 #define	_CACTIVESCHEDULER_WAIT_OFFSET_	(_CBASE_VTBL_SIZE_) 
    51 #define _CACTIVESCHEDULER_ERROR_OFFSET_	(_CBASE_VTBL_SIZE_+4) // *
    52 
    53 #define	_CACTIVE_DOCANCEL_OFFSET_		(_CBASE_VTBL_SIZE_) // *
    54 #define	_CACTIVE_RUNL_OFFSET_			(_CBASE_VTBL_SIZE_+4) // *
    55 #define	_CACTIVE_RUNERROR_OFFSET_		(_CBASE_VTBL_SIZE_+8) // *
    56 #define _CACTIVE_VTBL_SIZE_				(_CBASE_VTBL_SIZE_+12)
    57 #define _CSESSION_CREATEL_OFFSET_		(_CBASE_VTBL_SIZE_)
    58 #define _CSESSION_COUNT_OFFSET_			(_CBASE_VTBL_SIZE_+4)
    59 #define	_CSESSION_SERVICEL_OFFSET_		(_CBASE_VTBL_SIZE_+8) // *
    60 #define	_CSESSION2_SERVICEL_OFFSET_		(_CBASE_VTBL_SIZE_+8) // *
    61 
    62 
    63 #define _TTRAPHANDLER_VPTR_OFFSET_		0
    64 #define _TTRAPHANDLER_TRAP_OFFSET_		0
    65 #define _TTRAPHANDLER_LEAVE_OFFSET_		8
    66 #endif
    67 
    68 #endif