- fixed exception vector

git-svn-id: http://moon:8086/svn/mips@24 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2015-05-23 13:56:43 +00:00
parent 5e994a6ef3
commit ebb066542f
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -132,6 +132,14 @@ void Exec_at(void *pEntry)
".set noreorder\n"
);
__asm
(
// Enable User Mode and Interrupts on RFE
// Exception Vector = 0xBFC00080
"li $26, 0x1000000C\n"
"mtc0 $26, $12\n"
);
__asm
(
"mtc0 %[pEntry], $14\n"
+8
View File
@@ -153,6 +153,14 @@ void Exec_at(void *pEntry)
".set noreorder\n"
);
__asm
(
// Enable User Mode and Interrupts on RFE
// Exception Vector = 0xBFC00080
"li $26, 0x1000000C\n"
"mtc0 $26, $12\n"
);
__asm
(
"mtc0 %[pEntry], $14\n"