jumpto.s
来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· S 代码 · 共 63 行
S
63 行
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995, 1996, 1997 Microsoft Corporation
Module Name:
jumpto.s
Abstract:
This module implements the jump to custom program service
Author:
Jun Liu 22-Aug-1996
Revision History:
--*/
#include "kxmips.h"
#include <alt_def.h>
.data;
.globl JumpStore
.ent JumpStore
JumpStore:
.word 0
.word 0
.end JumpStore
LEAF_ENTRY(JumpTo)
.set noreorder
la t1,JumpStore
sw sp,0(t1) // Save the old stack
sw ra,4(t1) // Save the return address
//move sp,a1 // Setup new stack
jal FlushDCache
nop
jal InvalidateICache
nop
jal a0 // Jamp to the custom program
nop
la t1,JumpStore
lw ra,4(t1) // Restore the return address
jr ra // Return to the monitor
lw sp,0(t1) // Restore the old stack
.end JumpTo
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?