OSDN Git Service

自動生成ファイルをgit管理に追加
authorsuikan <suikan@users.sourceforge.jp>
Tue, 7 Aug 2012 11:29:26 +0000 (20:29 +0900)
committersuikan <suikan@users.sourceforge.jp>
Tue, 7 Aug 2012 11:29:26 +0000 (20:29 +0900)
sandbox/kernel_cfg.c [new file with mode: 0644]
sandbox/kernel_chk.c [new file with mode: 0644]
sandbox/kernel_id.h [new file with mode: 0644]
sandbox/makeoffset.s [new file with mode: 0644]
sandbox/offset.h [new file with mode: 0644]

diff --git a/sandbox/kernel_cfg.c b/sandbox/kernel_cfg.c
new file mode 100644 (file)
index 0000000..3382f0a
--- /dev/null
@@ -0,0 +1,184 @@
+/* Configured with [-s tmpfile1 -c -obj -cpu blackfin -system acb_bf592 ] */
+
+#include "kernel_cfg.h"
+#include "kernel_id.h"
+
+#if TKERNEL_PRVER >= 0x1040
+#define CFG_INTHDR_ENTRY(inthdr) INTHDR_ENTRY(inthdr)
+#define CFG_EXCHDR_ENTRY(exchdr) EXCHDR_ENTRY(exchdr)
+#define CFG_INT_ENTRY(inthdr) INT_ENTRY(inthdr)
+#define CFG_EXC_ENTRY(exchdr) EXC_ENTRY(exchdr)
+#else
+#error "This configuration file has no compatibility with TOPPERS/JSP rel 1.3 or earlier."
+#endif
+
+#ifndef __EMPTY_LABEL
+#define __EMPTY_LABEL(x,y) x y[0]
+#endif
+
+#if TKERNEL_PRID != 0x0001u /* TOPPERS/JSP */
+#error "You can not use this configuration file without TOPPERS/JSP"
+#endif
+
+       /* User specified include files*/
+#include "sample1.h"
+#include "hw_timer.h"
+#include "timer.h"
+#include "hw_serial.h"
+#include "serial.h"
+#include "logtask.h"
+
+
+       /* Object initializer [task] */
+
+#define TNUM_TSKID 5
+
+const ID _kernel_tmax_tskid = (TMIN_TSKID + TNUM_TSKID - 1);
+
+static __STK_UNIT __stack_TASK1[__TCOUNT_STK_UNIT(1024)];
+static __STK_UNIT __stack_TASK2[__TCOUNT_STK_UNIT(1024)];
+static __STK_UNIT __stack_TASK3[__TCOUNT_STK_UNIT(1024)];
+static __STK_UNIT __stack_MAIN_TASK[__TCOUNT_STK_UNIT(1024)];
+static __STK_UNIT __stack_LOGTASK[__TCOUNT_STK_UNIT(LOGTASK_STACK_SIZE)];
+
+const TINIB _kernel_tinib_table[TNUM_TSKID] = {
+       {0, (VP_INT)(( VP_INT ) 1), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(1024), __stack_TASK1, 0, (FP)(tex_routine)},
+       {0, (VP_INT)(( VP_INT ) 2), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(1024), __stack_TASK2, 0, (FP)(tex_routine)},
+       {0, (VP_INT)(( VP_INT ) 3), (FP)(task), INT_PRIORITY(10), __TROUND_STK_UNIT(1024), __stack_TASK3, 0, (FP)(tex_routine)},
+       {0x00u | 0x02u, (VP_INT)(0), (FP)(main_task), INT_PRIORITY(5), __TROUND_STK_UNIT(1024), __stack_MAIN_TASK, TA_NULL, (FP)(NULL)},
+       {0x00u | 0x02u, (VP_INT)(( VP_INT ) 1), (FP)(logtask), INT_PRIORITY(LOGTASK_PRIORITY), __TROUND_STK_UNIT(LOGTASK_STACK_SIZE), __stack_LOGTASK, TA_NULL, (FP)(NULL)}
+};
+
+const ID _kernel_torder_table[TNUM_TSKID] = {1,2,3,4,5};
+
+TCB _kernel_tcb_table[TNUM_TSKID];
+
+
+       /* Object initializer [semaphore] */
+
+#define TNUM_SEMID 2
+
+const ID _kernel_tmax_semid = (TMIN_SEMID + TNUM_SEMID - 1);
+
+const SEMINIB _kernel_seminib_table[TNUM_SEMID] = {
+       {1, 0, 1},
+       {1, 1, 1}
+};
+
+SEMCB _kernel_semcb_table[TNUM_SEMID];
+
+
+       /* Object initializer [eventflag] */
+
+#define TNUM_FLGID 0
+
+const ID _kernel_tmax_flgid = (TMIN_FLGID + TNUM_FLGID - 1);
+
+__EMPTY_LABEL(const FLGINIB, _kernel_flginib_table);
+__EMPTY_LABEL(FLGCB, _kernel_flgcb_table);
+
+
+       /* Object initializer [dataqueue] */
+
+#define TNUM_DTQID 0
+
+const ID _kernel_tmax_dtqid = (TMIN_DTQID + TNUM_DTQID - 1);
+
+__EMPTY_LABEL(const DTQINIB, _kernel_dtqinib_table);
+__EMPTY_LABEL(DTQCB, _kernel_dtqcb_table);
+
+
+       /* Object initializer [mailbox] */
+
+#define TNUM_MBXID 0
+
+const ID _kernel_tmax_mbxid = (TMIN_MBXID + TNUM_MBXID - 1);
+
+__EMPTY_LABEL(const MBXINIB, _kernel_mbxinib_table);
+__EMPTY_LABEL(MBXCB, _kernel_mbxcb_table);
+
+
+       /* Object initializer [mempfix] */
+
+#define TNUM_MPFID 0
+
+const ID _kernel_tmax_mpfid = (TMIN_MPFID + TNUM_MPFID - 1);
+
+__EMPTY_LABEL(const MPFINIB, _kernel_mpfinib_table);
+__EMPTY_LABEL(MPFCB, _kernel_mpfcb_table);
+
+
+       /* Object initializer [cyclic] */
+
+#define TNUM_CYCID 1
+
+const ID _kernel_tmax_cycid = (TMIN_CYCID + TNUM_CYCID - 1);
+
+const CYCINIB _kernel_cycinib_table[TNUM_CYCID] = {
+       {0,0,(FP)(cyclic_handler),2000,0}
+};
+
+CYCCB _kernel_cyccb_table[TNUM_CYCID];
+
+
+       /* Object initializer [interrupt] */
+
+#define TNUM_INHNO 3
+
+const UINT _kernel_tnum_inhno = TNUM_INHNO;
+
+CFG_INTHDR_ENTRY(sio0_rx_handler);
+CFG_INTHDR_ENTRY(sio0_tx_handler);
+CFG_INTHDR_ENTRY(timer_handler);
+
+const INHINIB _kernel_inhinib_table[TNUM_INHNO] = {
+       {15,0,(FP)CFG_INT_ENTRY(sio0_rx_handler)},
+       {16,0,(FP)CFG_INT_ENTRY(sio0_tx_handler)},
+       {21,0,(FP)CFG_INT_ENTRY(timer_handler)}
+};
+
+
+       /* Object initializer [exception] */
+
+#define TNUM_EXCNO 1
+
+const UINT _kernel_tnum_excno = TNUM_EXCNO;
+
+CFG_EXCHDR_ENTRY(cpuexc_handler);
+
+const EXCINIB _kernel_excinib_table[TNUM_EXCNO] = {
+       {0,0,(FP)CFG_EXC_ENTRY(cpuexc_handler)}
+};
+
+       /* Initialization handler */
+
+void
+_kernel_call_inirtn(void)
+{
+       timer_initialize( (VP_INT)(0) );
+       serial_initialize( (VP_INT)(0) );
+}
+
+void
+_kernel_call_terrtn(void)
+{
+       timer_terminate( (VP_INT)(0) );
+}
+
+       /* Object initialization routine */
+
+void
+_kernel_object_initialize(void)
+{
+       _kernel_task_initialize();
+       _kernel_semaphore_initialize();
+       _kernel_cyclic_initialize();
+       _kernel_interrupt_initialize();
+       _kernel_exception_initialize();
+}
+
+TMEVTN   _kernel_tmevt_heap[TNUM_TSKID + TNUM_CYCID];
+
+       /* Variables for kernel checker */
+const UW _checker_magic_number = 0x01234567;
+
diff --git a/sandbox/kernel_chk.c b/sandbox/kernel_chk.c
new file mode 100644 (file)
index 0000000..c7be3d1
--- /dev/null
@@ -0,0 +1,138 @@
+#include "jsp_kernel.h"
+#include "logtask.h"
+#include "timer.h"
+
+#define OBJECT(x,y) __asm("d" #x "," #y "@");
+#define MEMBER(x,y) __asm("s" #x "::" #y ",(%0),(%1)@" ::\
+     "i"(sizeof(((struct x *)0)->y)), "i"(&((struct x *)0)->y));
+#define VAR(x) __asm("s" #x ",(%0),(0)@" :: "i"(sizeof(x)));
+#define EVAR(x,y) __asm("s" #y ",(%0),(0)@" :: "i"(sizeof(x)));
+#define SVAR(x) __asm("s" #x ",(%0),(0)@" :: "i"(sizeof(x[0])));
+#define DEFS(x) __asm("s" #x ",(%0),(0)@" :: "i"((unsigned long)x));
+
+#include "queue.h"
+
+#include "task.h"
+#include "semaphore.h"
+#include "eventflag.h"
+#include "dataqueue.h"
+#include "mailbox.h"
+#include "mempfix.h"
+#include "cyclic.h"
+#include "../kernel/exception.h"
+#include "interrupt.h"
+#include "wait.h"
+
+void checker_function(void)
+{
+       DEFS(TMAX_TPRI);
+       DEFS(TMIN_TPRI);
+
+       DEFS(TMAX_MPRI);
+       DEFS(TMIN_MPRI);
+
+       DEFS(TMAX_RELTIM);
+
+       MEMBER(queue,next);
+       MEMBER(queue,prev);
+
+
+               /* task */
+
+       OBJECT(task_5,LOGTASK);
+       OBJECT(task_4,MAIN_TASK);
+       OBJECT(task_1,TASK1);
+       OBJECT(task_2,TASK2);
+       OBJECT(task_3,TASK3);
+       EVAR(ID,_kernel_tmax_tskid);
+       EVAR(TINIB,_kernel_tinib_table);
+       MEMBER(task_initialization_block,tskatr);
+       MEMBER(task_initialization_block,exinf);
+       MEMBER(task_initialization_block,task);
+       MEMBER(task_initialization_block,ipriority);
+       MEMBER(task_initialization_block,stksz);
+       MEMBER(task_initialization_block,stk);
+       MEMBER(task_initialization_block,texatr);
+       MEMBER(task_initialization_block,texrtn);
+
+
+               /* semaphore */
+
+       OBJECT(semaphore_1,SERIAL_RCV_SEM1);
+       OBJECT(semaphore_2,SERIAL_SND_SEM1);
+       EVAR(ID,_kernel_tmax_semid);
+       EVAR(SEMINIB,_kernel_seminib_table);
+       MEMBER(semaphore_initialization_block,sematr);
+       MEMBER(semaphore_initialization_block,isemcnt);
+       MEMBER(semaphore_initialization_block,maxsem);
+
+
+               /* eventflag */
+
+       EVAR(ID,_kernel_tmax_flgid);
+       EVAR(FLGINIB,_kernel_flginib_table);
+       MEMBER(eventflag_initialization_block,flgatr);
+       MEMBER(eventflag_initialization_block,iflgptn);
+
+
+               /* dataqueue */
+
+       EVAR(ID,_kernel_tmax_dtqid);
+       EVAR(DTQINIB,_kernel_dtqinib_table);
+       MEMBER(dataqueue_initialization_block,dtqatr);
+       MEMBER(dataqueue_initialization_block,dtqcnt);
+       MEMBER(dataqueue_initialization_block,dtq);
+
+
+               /* mailbox */
+
+       EVAR(ID,_kernel_tmax_mbxid);
+       EVAR(MBXINIB,_kernel_mbxinib_table);
+       MEMBER(mailbox_initialization_block,mbxatr);
+       MEMBER(mailbox_initialization_block,maxmpri);
+
+
+               /* mempfix */
+
+       EVAR(ID,_kernel_tmax_mpfid);
+       EVAR(MPFINIB,_kernel_mpfinib_table);
+       MEMBER(fixed_memorypool_initialization_block,mpfatr);
+       MEMBER(fixed_memorypool_initialization_block,blksz);
+       MEMBER(fixed_memorypool_initialization_block,mpf);
+       MEMBER(fixed_memorypool_initialization_block,limit);
+
+
+               /* cyclic */
+
+       OBJECT(cyclic_1,CYCHDR1);
+       EVAR(ID,_kernel_tmax_cycid);
+       EVAR(CYCINIB,_kernel_cycinib_table);
+       MEMBER(cyclic_handler_initialization_block,cycatr);
+       MEMBER(cyclic_handler_initialization_block,exinf);
+       MEMBER(cyclic_handler_initialization_block,cychdr);
+       MEMBER(cyclic_handler_initialization_block,cyctim);
+       MEMBER(cyclic_handler_initialization_block,cycphs);
+
+
+               /* interrupt */
+
+       OBJECT(interrupt_0,15);
+       OBJECT(interrupt_1,16);
+       OBJECT(interrupt_2,21);
+       EVAR(ID,_kernel_tnum_inhno);
+       EVAR(INHINIB,_kernel_inhinib_table);
+       MEMBER(interrupt_handler_initialization_block,inhno);
+       MEMBER(interrupt_handler_initialization_block,inhatr);
+       MEMBER(interrupt_handler_initialization_block,inthdr);
+
+
+               /* exception */
+
+       OBJECT(exception_0,0);
+       EVAR(ID,_kernel_tnum_excno);
+       EVAR(EXCINIB,_kernel_excinib_table);
+       MEMBER(cpu_exception_handler_initialization_block,excno);
+       MEMBER(cpu_exception_handler_initialization_block,excatr);
+       MEMBER(cpu_exception_handler_initialization_block,exchdr);
+
+}
diff --git a/sandbox/kernel_id.h b/sandbox/kernel_id.h
new file mode 100644 (file)
index 0000000..87dcd20
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef KERNEL_ID_H
+#define KERNEL_ID_H
+
+       /* object identifier deifnition */
+
+#define CYCHDR1              1
+#define LOGTASK              5
+#define MAIN_TASK            4
+#define SERIAL_RCV_SEM1      1
+#define SERIAL_SND_SEM1      2
+#define TASK1                1
+#define TASK2                2
+#define TASK3                3
+
+#endif /* KERNEL_ID_H */
+
diff --git a/sandbox/makeoffset.s b/sandbox/makeoffset.s
new file mode 100644 (file)
index 0000000..125ada5
--- /dev/null
@@ -0,0 +1,1134 @@
+.file "kernel/config/blackfin/makeoffset.c";
+       .section        .debug_abbrev,"",@progbits
+.Ldebug_abbrev0:
+       .section        .debug_info,"",@progbits
+.Ldebug_info0:
+       .section        .debug_line,"",@progbits
+.Ldebug_line0:
+.text;
+.Ltext0:
+       .align 4
+.global _makeoffset;
+.type _makeoffset, STT_FUNC;
+_makeoffset:
+.LFB30:
+       .file 1 "kernel/config/blackfin/makeoffset.c"
+       .loc 1 60 0
+       nop;
+       nop;
+       LINK 0;
+.LCFI0:
+       .loc 1 61 0
+// 61 "kernel/config/blackfin/makeoffset.c" 1
+       OFFSET_DEF TCB_texptn = 16
+// 0 "" 2
+       .loc 1 62 0
+// 62 "kernel/config/blackfin/makeoffset.c" 1
+       OFFSET_DEF TCB_sp = 24
+// 0 "" 2
+       .loc 1 63 0
+// 63 "kernel/config/blackfin/makeoffset.c" 1
+       OFFSET_DEF TCB_pc = 28
+// 0 "" 2
+       .loc 1 64 0
+       UNLINK;
+       rts;
+.LFE30:
+       .size   _makeoffset, .-_makeoffset
+.global _BIT_REF_4;
+.data;
+       .align 4
+       .type   _BIT_REF_4, @object
+       .size   _BIT_REF_4, 4
+_BIT_REF_4:
+       .long   305419896
+.global _BIT_REF_2;
+       .align 2
+       .type   _BIT_REF_2, @object
+       .size   _BIT_REF_2, 2
+_BIT_REF_2:
+       .short  4660
+.global _BIT_REF_1;
+       .type   _BIT_REF_1, @object
+       .size   _BIT_REF_1, 1
+_BIT_REF_1:
+       .byte   18
+.global _BIT_LB_TCB_enatex;
+       .align 4
+       .type   _BIT_LB_TCB_enatex, @object
+       .size   _BIT_LB_TCB_enatex, 32
+_BIT_LB_TCB_enatex:
+       .long   0
+       .long   0
+       .long   0
+       .byte   0
+       .byte   0
+       .byte   4
+       .zero   1
+       .long   0
+       .long   0
+       .long   0
+       .long   0
+       .section        .debug_frame,"",@progbits
+.Lframe0:
+       .4byte  .LECIE0-.LSCIE0
+.LSCIE0:
+       .4byte  0xffffffff
+       .byte   0x1
+       .string ""
+       .uleb128 0x1
+       .sleb128 -4
+       .byte   0x23
+       .byte   0xc
+       .uleb128 0xe
+       .uleb128 0x0
+       .align 4
+.LECIE0:
+.LSFDE0:
+       .4byte  .LEFDE0-.LASFDE0
+.LASFDE0:
+       .4byte  .Lframe0
+       .4byte  .LFB30
+       .4byte  .LFE30-.LFB30
+       .byte   0x4
+       .4byte  .LCFI0-.LFB30
+       .byte   0xc
+       .uleb128 0xf
+       .uleb128 0x8
+       .byte   0x8f
+       .uleb128 0x2
+       .byte   0xa3
+       .uleb128 0x1
+       .align 4
+.LEFDE0:
+.text;
+.Letext0:
+       .section        .debug_loc,"",@progbits
+.Ldebug_loc0:
+.LLST0:
+       .4byte  .LFB30-.Ltext0
+       .4byte  .LCFI0-.Ltext0
+       .2byte  0x1
+       .byte   0x5e
+       .4byte  .LCFI0-.Ltext0
+       .4byte  .LFE30-.Ltext0
+       .2byte  0x2
+       .byte   0x7f
+       .sleb128 8
+       .4byte  0x0
+       .4byte  0x0
+       .file 2 "kernel/include/itron.h"
+       .file 3 "/opt/uClinux2011R1RC4/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/include/stddef.h"
+       .file 4 "kernel/include/kernel.h"
+       .file 5 "kernel/config/blackfin/cpu_config.h"
+       .file 6 "kernel/kernel/queue.h"
+       .file 7 "kernel/kernel/time_event.h"
+       .file 8 "kernel/kernel/task.h"
+       .section        .debug_info
+       .4byte  0x3f8
+       .2byte  0x2
+       .4byte  .Ldebug_abbrev0
+       .byte   0x4
+       .uleb128 0x1
+       .4byte  .LASF57
+       .byte   0x1
+       .4byte  .LASF58
+       .4byte  .LASF59
+       .4byte  .Ltext0
+       .4byte  .Letext0
+       .4byte  .Ldebug_line0
+       .uleb128 0x2
+       .byte   0x4
+       .byte   0x5
+       .4byte  .LASF0
+       .uleb128 0x3
+       .4byte  .LASF3
+       .byte   0x3
+       .byte   0xd6
+       .4byte  0x37
+       .uleb128 0x2
+       .byte   0x4
+       .byte   0x7
+       .4byte  .LASF1
+       .uleb128 0x4
+       .byte   0x4
+       .byte   0x5
+       .string "int"
+       .uleb128 0x2
+       .byte   0x1
+       .byte   0x6
+       .4byte  .LASF2
+       .uleb128 0x5
+       .string "UB"
+       .byte   0x2
+       .byte   0x61
+       .4byte  0x56
+       .uleb128 0x2
+       .byte   0x1
+       .byte   0x8
+       .4byte  .LASF4
+       .uleb128 0x2
+       .byte   0x1
+       .byte   0x6
+       .4byte  .LASF5
+       .uleb128 0x2
+       .byte   0x2
+       .byte   0x5
+       .4byte  .LASF6
+       .uleb128 0x5
+       .string "UH"
+       .byte   0x2
+       .byte   0x67
+       .4byte  0x75
+       .uleb128 0x2
+       .byte   0x2
+       .byte   0x7
+       .4byte  .LASF7
+       .uleb128 0x5
+       .string "UW"
+       .byte   0x2
+       .byte   0x6c
+       .4byte  0x86
+       .uleb128 0x2
+       .byte   0x4
+       .byte   0x7
+       .4byte  .LASF8
+       .uleb128 0x2
+       .byte   0x8
+       .byte   0x5
+       .4byte  .LASF9
+       .uleb128 0x2
+       .byte   0x8
+       .byte   0x7
+       .4byte  .LASF10
+       .uleb128 0x5
+       .string "VP"
+       .byte   0x2
+       .byte   0x75
+       .4byte  0xa5
+       .uleb128 0x6
+       .byte   0x4
+       .uleb128 0x5
+       .string "FP"
+       .byte   0x2
+       .byte   0x76
+       .4byte  0xb1
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0xb7
+       .uleb128 0x8
+       .4byte  0xbe
+       .uleb128 0x9
+       .byte   0x0
+       .uleb128 0x5
+       .string "INT"
+       .byte   0x2
+       .byte   0x78
+       .4byte  0x3e
+       .uleb128 0x3
+       .4byte  .LASF11
+       .byte   0x2
+       .byte   0x79
+       .4byte  0x86
+       .uleb128 0x5
+       .string "ER"
+       .byte   0x2
+       .byte   0x7e
+       .4byte  0xbe
+       .uleb128 0x5
+       .string "ATR"
+       .byte   0x2
+       .byte   0x80
+       .4byte  0xc9
+       .uleb128 0x3
+       .4byte  .LASF12
+       .byte   0x2
+       .byte   0x84
+       .4byte  0x2c
+       .uleb128 0x3
+       .4byte  .LASF13
+       .byte   0x2
+       .byte   0x88
+       .4byte  0x7c
+       .uleb128 0x3
+       .4byte  .LASF14
+       .byte   0x2
+       .byte   0x8d
+       .4byte  0x9b
+       .uleb128 0xa
+       .byte   0x4
+       .byte   0x7
+       .uleb128 0x3
+       .4byte  .LASF15
+       .byte   0x4
+       .byte   0x65
+       .4byte  0xc9
+       .uleb128 0xb
+       .4byte  .LASF17
+       .byte   0x8
+       .byte   0x5
+       .byte   0x99
+       .4byte  0x13f
+       .uleb128 0xc
+       .string "sp"
+       .byte   0x5
+       .byte   0x9a
+       .4byte  0x9b
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x0
+       .uleb128 0xc
+       .string "pc"
+       .byte   0x5
+       .byte   0x9b
+       .4byte  0xa7
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x4
+       .byte   0x0
+       .uleb128 0x3
+       .4byte  .LASF16
+       .byte   0x5
+       .byte   0x9c
+       .4byte  0x118
+       .uleb128 0xb
+       .4byte  .LASF18
+       .byte   0x8
+       .byte   0x6
+       .byte   0x38
+       .4byte  0x173
+       .uleb128 0xd
+       .4byte  .LASF19
+       .byte   0x6
+       .byte   0x39
+       .4byte  0x173
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x0
+       .uleb128 0xd
+       .4byte  .LASF20
+       .byte   0x6
+       .byte   0x3a
+       .4byte  0x173
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x4
+       .byte   0x0
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x14a
+       .uleb128 0x3
+       .4byte  .LASF21
+       .byte   0x6
+       .byte   0x3b
+       .4byte  0x14a
+       .uleb128 0x3
+       .4byte  .LASF22
+       .byte   0x7
+       .byte   0x40
+       .4byte  0x18f
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x195
+       .uleb128 0xe
+       .byte   0x1
+       .4byte  0x1a1
+       .uleb128 0xf
+       .4byte  0x9b
+       .byte   0x0
+       .uleb128 0xb
+       .4byte  .LASF23
+       .byte   0xc
+       .byte   0x7
+       .byte   0x42
+       .4byte  0x1d8
+       .uleb128 0xd
+       .4byte  .LASF24
+       .byte   0x7
+       .byte   0x43
+       .4byte  0xc9
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x0
+       .uleb128 0xd
+       .4byte  .LASF25
+       .byte   0x7
+       .byte   0x44
+       .4byte  0x184
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x4
+       .uleb128 0xc
+       .string "arg"
+       .byte   0x7
+       .byte   0x45
+       .4byte  0x9b
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x8
+       .byte   0x0
+       .uleb128 0x3
+       .4byte  .LASF26
+       .byte   0x7
+       .byte   0x46
+       .4byte  0x1a1
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x1d8
+       .uleb128 0x10
+       .4byte  .LASF60
+       .byte   0x4
+       .byte   0x8
+       .byte   0x82
+       .4byte  0x20c
+       .uleb128 0x11
+       .4byte  .LASF27
+       .byte   0x8
+       .byte   0x83
+       .4byte  0xd4
+       .uleb128 0x11
+       .4byte  .LASF28
+       .byte   0x8
+       .byte   0x84
+       .4byte  0x1e3
+       .byte   0x0
+       .uleb128 0x3
+       .4byte  .LASF29
+       .byte   0x8
+       .byte   0x85
+       .4byte  0x1e9
+       .uleb128 0xb
+       .4byte  .LASF30
+       .byte   0x20
+       .byte   0x8
+       .byte   0x94
+       .4byte  0x294
+       .uleb128 0xd
+       .4byte  .LASF31
+       .byte   0x8
+       .byte   0x95
+       .4byte  0xde
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x0
+       .uleb128 0xd
+       .4byte  .LASF32
+       .byte   0x8
+       .byte   0x96
+       .4byte  0xff
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x4
+       .uleb128 0xd
+       .4byte  .LASF33
+       .byte   0x8
+       .byte   0x97
+       .4byte  0xa7
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x8
+       .uleb128 0xd
+       .4byte  .LASF34
+       .byte   0x8
+       .byte   0x98
+       .4byte  0xc9
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0xd
+       .4byte  .LASF35
+       .byte   0x8
+       .byte   0x99
+       .4byte  0xe9
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x10
+       .uleb128 0xc
+       .string "stk"
+       .byte   0x8
+       .byte   0x9a
+       .4byte  0x9b
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x14
+       .uleb128 0xd
+       .4byte  .LASF36
+       .byte   0x8
+       .byte   0x9c
+       .4byte  0xde
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x18
+       .uleb128 0xd
+       .4byte  .LASF37
+       .byte   0x8
+       .byte   0x9d
+       .4byte  0xa7
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x1c
+       .byte   0x0
+       .uleb128 0x3
+       .4byte  .LASF38
+       .byte   0x8
+       .byte   0x9e
+       .4byte  0x217
+       .uleb128 0xb
+       .4byte  .LASF39
+       .byte   0x20
+       .byte   0x8
+       .byte   0xb7
+       .4byte  0x347
+       .uleb128 0xd
+       .4byte  .LASF40
+       .byte   0x8
+       .byte   0xb8
+       .4byte  0x179
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x0
+       .uleb128 0xd
+       .4byte  .LASF41
+       .byte   0x8
+       .byte   0xb9
+       .4byte  0x347
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x8
+       .uleb128 0x12
+       .4byte  .LASF42
+       .byte   0x8
+       .byte   0xbb
+       .4byte  0x86
+       .byte   0x4
+       .byte   0x8
+       .byte   0x18
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0x12
+       .4byte  .LASF43
+       .byte   0x8
+       .byte   0xbc
+       .4byte  0x86
+       .byte   0x4
+       .byte   0x8
+       .byte   0x10
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0x12
+       .4byte  .LASF44
+       .byte   0x8
+       .byte   0xbe
+       .4byte  0x86
+       .byte   0x4
+       .byte   0x1
+       .byte   0xf
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0x12
+       .4byte  .LASF45
+       .byte   0x8
+       .byte   0xbf
+       .4byte  0x86
+       .byte   0x4
+       .byte   0x1
+       .byte   0xe
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0x12
+       .4byte  .LASF46
+       .byte   0x8
+       .byte   0xc0
+       .4byte  0x86
+       .byte   0x4
+       .byte   0x1
+       .byte   0xd
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0xc
+       .uleb128 0xd
+       .4byte  .LASF47
+       .byte   0x8
+       .byte   0xc2
+       .4byte  0x10d
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x10
+       .uleb128 0xd
+       .4byte  .LASF48
+       .byte   0x8
+       .byte   0xc3
+       .4byte  0x352
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x14
+       .uleb128 0xd
+       .4byte  .LASF49
+       .byte   0x8
+       .byte   0xc4
+       .4byte  0x13f
+       .byte   0x2
+       .byte   0x23
+       .uleb128 0x18
+       .byte   0x0
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x34d
+       .uleb128 0x13
+       .4byte  0x294
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x20c
+       .uleb128 0x5
+       .string "TCB"
+       .byte   0x8
+       .byte   0xc5
+       .4byte  0x29f
+       .uleb128 0x14
+       .byte   0x1
+       .4byte  .LASF61
+       .byte   0x1
+       .byte   0x3c
+       .4byte  .LFB30
+       .4byte  .LFE30
+       .4byte  .LLST0
+       .uleb128 0x15
+       .4byte  0x384
+       .4byte  0x382
+       .uleb128 0x16
+       .byte   0x0
+       .uleb128 0x17
+       .byte   0x1
+       .uleb128 0x7
+       .byte   0x4
+       .4byte  0x382
+       .uleb128 0x18
+       .4byte  .LASF50
+       .byte   0x5
+       .2byte  0x12e
+       .4byte  0x377
+       .byte   0x1
+       .byte   0x1
+       .uleb128 0x18
+       .4byte  .LASF51
+       .byte   0x5
+       .2byte  0x130
+       .4byte  0x18f
+       .byte   0x1
+       .byte   0x1
+       .uleb128 0x19
+       .4byte  .LASF52
+       .byte   0x7
+       .byte   0x65
+       .4byte  0xf4
+       .byte   0x1
+       .byte   0x1
+       .uleb128 0x1a
+       .4byte  .LASF53
+       .byte   0x1
+       .byte   0x42
+       .4byte  0x7c
+       .byte   0x1
+       .byte   0x5
+       .byte   0x3
+       .4byte  _BIT_REF_4
+       .uleb128 0x1a
+       .4byte  .LASF54
+       .byte   0x1
+       .byte   0x43
+       .4byte  0x6b
+       .byte   0x1
+       .byte   0x5
+       .byte   0x3
+       .4byte  _BIT_REF_2
+       .uleb128 0x1a
+       .4byte  .LASF55
+       .byte   0x1
+       .byte   0x44
+       .4byte  0x4c
+       .byte   0x1
+       .byte   0x5
+       .byte   0x3
+       .4byte  _BIT_REF_1
+       .uleb128 0x1a
+       .4byte  .LASF56
+       .byte   0x1
+       .byte   0x46
+       .4byte  0x358
+       .byte   0x1
+       .byte   0x5
+       .byte   0x3
+       .4byte  _BIT_LB_TCB_enatex
+       .byte   0x0
+       .section        .debug_abbrev
+       .uleb128 0x1
+       .uleb128 0x11
+       .byte   0x1
+       .uleb128 0x25
+       .uleb128 0xe
+       .uleb128 0x13
+       .uleb128 0xb
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x1b
+       .uleb128 0xe
+       .uleb128 0x11
+       .uleb128 0x1
+       .uleb128 0x12
+       .uleb128 0x1
+       .uleb128 0x10
+       .uleb128 0x6
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x2
+       .uleb128 0x24
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x3e
+       .uleb128 0xb
+       .uleb128 0x3
+       .uleb128 0xe
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0x16
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x4
+       .uleb128 0x24
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x3e
+       .uleb128 0xb
+       .uleb128 0x3
+       .uleb128 0x8
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x5
+       .uleb128 0x16
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0x8
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x6
+       .uleb128 0xf
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0xb
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x7
+       .uleb128 0xf
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x8
+       .uleb128 0x15
+       .byte   0x1
+       .uleb128 0x1
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x9
+       .uleb128 0x18
+       .byte   0x0
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xa
+       .uleb128 0x24
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x3e
+       .uleb128 0xb
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xb
+       .uleb128 0x13
+       .byte   0x1
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x1
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xc
+       .uleb128 0xd
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0x8
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x38
+       .uleb128 0xa
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xd
+       .uleb128 0xd
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x38
+       .uleb128 0xa
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xe
+       .uleb128 0x15
+       .byte   0x1
+       .uleb128 0x27
+       .uleb128 0xc
+       .uleb128 0x1
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0xf
+       .uleb128 0x5
+       .byte   0x0
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x10
+       .uleb128 0x17
+       .byte   0x1
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x1
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x11
+       .uleb128 0xd
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x12
+       .uleb128 0xd
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0xb
+       .uleb128 0xb
+       .uleb128 0xd
+       .uleb128 0xb
+       .uleb128 0xc
+       .uleb128 0xb
+       .uleb128 0x38
+       .uleb128 0xa
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x13
+       .uleb128 0x26
+       .byte   0x0
+       .uleb128 0x49
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x14
+       .uleb128 0x2e
+       .byte   0x0
+       .uleb128 0x3f
+       .uleb128 0xc
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x11
+       .uleb128 0x1
+       .uleb128 0x12
+       .uleb128 0x1
+       .uleb128 0x40
+       .uleb128 0x6
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x15
+       .uleb128 0x1
+       .byte   0x1
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x1
+       .uleb128 0x13
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x16
+       .uleb128 0x21
+       .byte   0x0
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x17
+       .uleb128 0x15
+       .byte   0x0
+       .uleb128 0x27
+       .uleb128 0xc
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x18
+       .uleb128 0x34
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0x5
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x3f
+       .uleb128 0xc
+       .uleb128 0x3c
+       .uleb128 0xc
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x19
+       .uleb128 0x34
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x3f
+       .uleb128 0xc
+       .uleb128 0x3c
+       .uleb128 0xc
+       .byte   0x0
+       .byte   0x0
+       .uleb128 0x1a
+       .uleb128 0x34
+       .byte   0x0
+       .uleb128 0x3
+       .uleb128 0xe
+       .uleb128 0x3a
+       .uleb128 0xb
+       .uleb128 0x3b
+       .uleb128 0xb
+       .uleb128 0x49
+       .uleb128 0x13
+       .uleb128 0x3f
+       .uleb128 0xc
+       .uleb128 0x2
+       .uleb128 0xa
+       .byte   0x0
+       .byte   0x0
+       .byte   0x0
+       .section        .debug_pubnames,"",@progbits
+       .4byte  0x5d
+       .2byte  0x2
+       .4byte  .Ldebug_info0
+       .4byte  0x3fc
+       .4byte  0x363
+       .string "makeoffset"
+       .4byte  0x3b3
+       .string "BIT_REF_4"
+       .4byte  0x3c5
+       .string "BIT_REF_2"
+       .4byte  0x3d7
+       .string "BIT_REF_1"
+       .4byte  0x3e9
+       .string "BIT_LB_TCB_enatex"
+       .4byte  0x0
+       .section        .debug_aranges,"",@progbits
+       .4byte  0x1c
+       .2byte  0x2
+       .4byte  .Ldebug_info0
+       .byte   0x4
+       .byte   0x0
+       .2byte  0x0
+       .2byte  0x0
+       .4byte  .Ltext0
+       .4byte  .Letext0-.Ltext0
+       .4byte  0x0
+       .4byte  0x0
+       .section        .debug_str,"MS",@progbits,1
+.LASF12:
+       .string "SIZE"
+.LASF57:
+       .string "GNU C 4.3.5"
+.LASF16:
+       .string "CTXB"
+.LASF27:
+       .string "wercd"
+.LASF6:
+       .string "short int"
+.LASF3:
+       .string "size_t"
+.LASF53:
+       .string "BIT_REF_4"
+.LASF14:
+       .string "VP_INT"
+.LASF40:
+       .string "task_queue"
+.LASF28:
+       .string "tmevtb"
+.LASF47:
+       .string "texptn"
+.LASF41:
+       .string "tinib"
+.LASF33:
+       .string "task"
+.LASF38:
+       .string "TINIB"
+.LASF32:
+       .string "exinf"
+.LASF50:
+       .string "_kernel_dev_vector"
+.LASF60:
+       .string "waiting_information"
+.LASF24:
+       .string "index"
+.LASF17:
+       .string "task_context_block"
+.LASF31:
+       .string "tskatr"
+.LASF39:
+       .string "task_control_block"
+.LASF22:
+       .string "CBACK"
+.LASF9:
+       .string "long long int"
+.LASF49:
+       .string "tskctxb"
+.LASF46:
+       .string "enatex"
+.LASF0:
+       .string "long int"
+.LASF11:
+       .string "UINT"
+.LASF61:
+       .string "makeoffset"
+.LASF45:
+       .string "wupcnt"
+.LASF48:
+       .string "winfo"
+.LASF18:
+       .string "queue"
+.LASF29:
+       .string "WINFO"
+.LASF21:
+       .string "QUEUE"
+.LASF4:
+       .string "unsigned char"
+.LASF2:
+       .string "signed char"
+.LASF10:
+       .string "long long unsigned int"
+.LASF13:
+       .string "SYSTIM"
+.LASF8:
+       .string "unsigned int"
+.LASF7:
+       .string "short unsigned int"
+.LASF5:
+       .string "char"
+.LASF43:
+       .string "priority"
+.LASF15:
+       .string "TEXPTN"
+.LASF36:
+       .string "texatr"
+.LASF51:
+       .string "_kernel_exc_vector"
+.LASF35:
+       .string "stksz"
+.LASF37:
+       .string "texrtn"
+.LASF1:
+       .string "long unsigned int"
+.LASF34:
+       .string "ipriority"
+.LASF44:
+       .string "actcnt"
+.LASF59:
+       .string "/home/takamasa/toppersjsp4bf.git/sandbox/sandbox"
+.LASF52:
+       .string "_kernel_next_time"
+.LASF30:
+       .string "task_initialization_block"
+.LASF26:
+       .string "TMEVTB"
+.LASF23:
+       .string "time_event_block"
+.LASF55:
+       .string "BIT_REF_1"
+.LASF54:
+       .string "BIT_REF_2"
+.LASF20:
+       .string "prev"
+.LASF42:
+       .string "tstat"
+.LASF58:
+       .string "kernel/config/blackfin/makeoffset.c"
+.LASF56:
+       .string "BIT_LB_TCB_enatex"
+.LASF19:
+       .string "next"
+.LASF25:
+       .string "callback"
+       .ident  "GCC: (ADI-2011R1-RC4) 4.3.5"
diff --git a/sandbox/offset.h b/sandbox/offset.h
new file mode 100644 (file)
index 0000000..e2bd940
--- /dev/null
@@ -0,0 +1,8 @@
+/* This file is generated by genoffset. */
+
+#define TCB_texptn     16
+#define TCB_sp 24
+#define TCB_pc 28
+#define TCB_enatex     14
+#define TCB_enatex_bit 2
+#define TCB_enatex_mask        0x4