- fixed _exc_store_err()

git-svn-id: http://moon:8086/svn/mips@160 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-04-08 06:34:34 +00:00
parent cf5d85d972
commit 6cfc668c01
2 changed files with 14 additions and 6 deletions
+7 -3
View File
@@ -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; );
} }
+7 -3
View File
@@ -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; );
} }