- fixed _exc_store_err()
git-svn-id: http://moon:8086/svn/mips@160 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -42,10 +42,14 @@ void _exc_arith(void)
|
|||||||
|
|
||||||
void _exc_store_err(void)
|
void _exc_store_err(void)
|
||||||
{
|
{
|
||||||
volatile int *pSrc = (int*)SYS_TIMER_SEC;
|
__asm
|
||||||
volatile int *pDst = (int*)0x40000001;
|
(
|
||||||
|
".set noreorder\n"
|
||||||
|
" li $t0, 0x40000000\n"
|
||||||
|
" sw $0, 1($t0)\n"
|
||||||
|
".set reorder\n"
|
||||||
|
|
||||||
*pDst = *pSrc;
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,10 +46,14 @@ void _exc_arith(void)
|
|||||||
|
|
||||||
void _exc_store_err(void)
|
void _exc_store_err(void)
|
||||||
{
|
{
|
||||||
volatile int *pSrc = (int*)SYS_TIMER_SEC;
|
__asm
|
||||||
volatile int *pDst = (int*)0x80000001;
|
(
|
||||||
|
".set noreorder\n"
|
||||||
|
" li $t0, 0x40000000\n"
|
||||||
|
" sw $0, 1($t0)\n"
|
||||||
|
".set reorder\n"
|
||||||
|
|
||||||
*pDst = *pSrc;
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user