os/kernelhwsrv/halservices/hal/src/hal_gcc_shim.cia
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 //
     2 // HAL_GCC_SHIM.CIA - generated by GENSHIMSRC.BAT
     3 //
     4 
     5 #include <e32def.h>
     6 #include <e32const.h>
     7 #include <cpudefs.h>
     8 
     9 
    10 EXPORT_C __NAKED__ int export_at_ordinal_1()
    11 //
    12 // HAL::Get(HALData::TAttribute, int &)
    13 //
    14 	{
    15 	asm("stmfd sp!, {r4,lr} ");
    16 	asm("mov r4, sp ");
    17 	asm("bic sp, sp, #4 ");
    18 	asm("bl _ZN3HAL3GetEN7HALData10TAttributeERi ");
    19 	asm("mov sp, r4 ");
    20 	asm("ldmfd sp!, {r4,pc} ");
    21 	}
    22 
    23 
    24 EXPORT_C __NAKED__ int export_at_ordinal_2()
    25 //
    26 // HAL::Set(HALData::TAttribute, int)
    27 //
    28 	{
    29 	asm("stmfd sp!, {r4,lr} ");
    30 	asm("mov r4, sp ");
    31 	asm("bic sp, sp, #4 ");
    32 	asm("bl _ZN3HAL3SetEN7HALData10TAttributeEi ");
    33 	asm("mov sp, r4 ");
    34 	asm("ldmfd sp!, {r4,pc} ");
    35 	}
    36 
    37 
    38 EXPORT_C __NAKED__ int export_at_ordinal_3()
    39 //
    40 // HAL::GetAll(int &, HAL::SEntry *&)
    41 //
    42 	{
    43 	asm("stmfd sp!, {r4,lr} ");
    44 	asm("mov r4, sp ");
    45 	asm("bic sp, sp, #4 ");
    46 	asm("bl _ZN3HAL6GetAllERiRPNS_6SEntryE ");
    47 	asm("mov sp, r4 ");
    48 	asm("ldmfd sp!, {r4,pc} ");
    49 	}
    50