comparison nuc-fw/riviera/rvf/rvf_task.c @ 120:e7d4ec9c4c32

All of RVF compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 31 Oct 2013 00:17:12 +0000
parents 21de8d8e6ea7
children
comparison
equal deleted inserted replaced
119:dd56546ad9e0 120:e7d4ec9c4c32
18 /* Author David Lamy-Charrier (dlamy@tif.ti.com) */ 18 /* Author David Lamy-Charrier (dlamy@tif.ti.com) */
19 /* */ 19 /* */
20 /* (C) Copyright 1999 by Texas Instruments Incorporated, All Rights Reserved*/ 20 /* (C) Copyright 1999 by Texas Instruments Incorporated, All Rights Reserved*/
21 /****************************************************************************/ 21 /****************************************************************************/
22 22
23 #ifndef _WINDOWS 23 #include "../../include/config.h"
24 #include "config/rv.cfg" 24
25 #endif 25 #include "../rv/rv_general.h"
26 26 #include "rvf_api.h"
27 #include "nucleus.h" 27 #include "rvf_i.h"
28 28 #include "../rvm/rvm_i.h" /* ONLY for Task Codes */
29 #include "rv/rv_general.h" 29 #include "../rvm/rvm_use_id_list.h"
30 #include "rvf/rvf_api.h" 30
31 #include "rvf/rvf_i.h" 31 #include "../../nucleus/nucleus.h"
32 #include "rvm/rvm_i.h" /* ONLY for Task Codes */ 32
33 #include "rvm/rvm_use_id_list.h"
34 #include <stdio.h> 33 #include <stdio.h>
35 #include <string.h> 34 #include <string.h>
36 35
37 /* include the rvtool_trace.h file only in the RivieraTool */ 36 /* include the rvtool_trace.h file only in the RivieraTool */
38 #ifdef _WINDOWS 37 #ifdef _WINDOWS
872 /* */ 871 /* */
873 /*-------------------------------------------------------*/ 872 /*-------------------------------------------------------*/
874 /* Declaration of ASM INT_Check_IRQ_Mask function */ 873 /* Declaration of ASM INT_Check_IRQ_Mask function */
875 UINT32 INT_Check_IRQ_Mask(void); 874 UINT32 INT_Check_IRQ_Mask(void);
876 875
876 /*
877 * FreeCalypso: this assembly function will be moved out into
878 * its own source file, or maybe added to nucleus/tct.S.
879 */
880 #if 0
877 asm(" .def $INT_Check_IRQ_Mask"); 881 asm(" .def $INT_Check_IRQ_Mask");
878 asm("$INT_Check_IRQ_Mask "); 882 asm("$INT_Check_IRQ_Mask ");
879 asm(" .ref _INT_32_Check_IRQ_Mask"); 883 asm(" .ref _INT_32_Check_IRQ_Mask");
880 asm(".state16"); 884 asm(".state16");
881 asm(" ADR r0,_INT_32_Check_IRQ_Mask "); 885 asm(" ADR r0,_INT_32_Check_IRQ_Mask ");
886 asm(" .def _INT_32_Check_IRQ_Mask"); 890 asm(" .def _INT_32_Check_IRQ_Mask");
887 asm("_INT_32_Check_IRQ_Mask "); 891 asm("_INT_32_Check_IRQ_Mask ");
888 892
889 asm(" MRS r0,CPSR "); // pick up CPSR 893 asm(" MRS r0,CPSR "); // pick up CPSR
890 asm(" BX lr "); // return to caller 894 asm(" BX lr "); // return to caller
891 895 #endif
892 #endif 896 #endif
893 897
894 898
895 /******************************************************************************* 899 /*******************************************************************************
896 ** 900 **
1169 /* convenience function */ 1173 /* convenience function */
1170 UINT8 rvf_isType2() { 1174 UINT8 rvf_isType2() {
1171 if(pRtAddrIdTable[rvf_get_taskid()]->type_code==ET2_HOST_TASK) return 1; 1175 if(pRtAddrIdTable[rvf_get_taskid()]->type_code==ET2_HOST_TASK) return 1;
1172 else return 0; 1176 else return 0;
1173 } 1177 }
1174