1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
6 * This source code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * -------------------------------- Arctic Core ------------------------------*/
19 #define DECLARE(sym,val) \
\r
20 __asm("#define " #sym " %0" : : "i" ((val)))
\r
25 //#include "app_i.h"
\r
30 void oil_foo(void) {
\r
32 DECLARE(PCB_T_SIZE, sizeof(OsPcbType));
33 #if ( OS_SC3 == STD_ON ) || ( OS_SC4 == STD_ON )
\r
34 DECLARE(APP_T_SIZE, sizeof(OsApplicationType));
36 DECLARE(PCB_STACK_CURR_P, offsetof(OsPcbType, stack));
37 DECLARE(PCB_ENTRY_P, offsetof(OsPcbType, entry));
38 DECLARE(SYS_CURR_PCB_P, offsetof(sys_t, curr_pcb));
39 DECLARE(SYS_INT_NEST_CNT, offsetof(sys_t, int_nest_cnt));
40 DECLARE(SYS_INT_STACK, offsetof(sys_t, int_stack));