bootloader no peripheral initialization

git-svn-id: http://moon:8086/svn/mips@72 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-11 08:07:33 +00:00
parent bba98f5677
commit f9eb889616
3 changed files with 2 additions and 25 deletions
-8
View File
@@ -7,14 +7,6 @@ MEMORY
}
stack_ptr = 0x7FFFEFF0;
baudrate = 0x0D;
sys_led_port = 0xA0000000;
sys_uart_data = 0xA0010000;
sys_uart_stat = 0xA0010004;
sys_uart_baud = 0xA0010008;
sys_timer_usec = 0xA000008;
sys_timer_sec = 0xA000000C;
SECTIONS
{
+2 -12
View File
@@ -17,20 +17,10 @@ _exc_handler:
.set noreorder
# Set Error LED and ExcCode LEDs
# Get Cause
mfc0 $26, $13
li $27, 0xC0000000
srl $26, 2
andi $26, 0x000F
or $26, $27
la $27, sys_led_port
sw $26, 0($27)
# wait for all interrupts = 0
$w4x: mfc0 $26, $13
$w4x: mfc0 $26, $13
nop
srl $26, 8
srl $26, 8
andi $26, 0xFF
bnez $26, $w4x
nop
-5
View File
@@ -41,11 +41,6 @@ _init:
jalr $k0
nop
# set uart
la $26, sys_uart_baud
addiu $27, $0, baudrate
sw $27, 0($26)
la $26, main
jalr $26