OSDN Git Service

add cortex-m3
[hos/hos-v4a.git] / kernel / source / arch / proc / arm / arm_v7m / gcc / krst_ctx.S
1 /** 
2  *  Hyper Operating System V4 Advance
3  *
4  * Copyright (C) 1998-2011 by Project HOS
5  * http://sourceforge.jp/projects/hos/
6  */
7
8
9                                 .text
10                                 .align  2
11
12 /************************************************
13   実行コンテキストのリスタート
14   void _kernel_rst_ctx(
15                         VP_INT         par1,    r0 : 実行時パラメータ
16                         VP_INT         par2,    r1 : 実行時パラメータ
17                         FP             entry,   r2 : 実行アドレス
18                         VP             isp)             r3 : スタックポインタ
19  ************************************************/
20                                 .global _kernel_rst_ctx
21                                 .thumb
22                                 .thumb_func
23                                 .type   _kernel_rst_ctx, %function
24 _kernel_rst_ctx:
25                                 mov             sp, r3          /* スタックを初期値にリセット */
26                                 bx              r2                      /* エントリーアドレスから再開始 */
27                                 .size   _kernel_rst_ctx, .-_kernel_rst_ctx
28
29                                 .end
30
31
32 /* end of file */