URL
https://opencores.org/ocsvn/mlite/mlite/trunk
Subversion Repositories mlite
[/] [mlite/] [trunk/] [tools/] [boot.asm] - Rev 20
Go to most recent revision | Compare with Previous | Blame | View Log
################################################################### TITLE: Boot Up Code# AUTHOR: Steve Rhoads (rhoadss@yahoo.com)# DATE CREATED: 1/12/02# FILENAME: boot.asm# PROJECT: MIPS CPU core# COPYRIGHT: Software placed into the public domain by the author.# Software 'as is' without warranty. Author liable for nothing.# DESCRIPTION:# Initializes the stack pointer and jumps to main2().##################################################################.text.align 2.globl entry.ent entryentry:.set noreorderori $sp,$0,0x8000 #initialize stack pointerori $4,$0,1mtc0 $4,$12 #STATUS=1; enable interruptsjal main2nop$L1:j $L1nopnopisr_storage: #address 0x20nopnopnopnop#address 0x30interrupt_service_routine:sw $4,-4($sp)sw $5,-8($sp)ori $5,$0,0xffffori $4,$0,46sb $4,0($5) #echo out '.'lw $5,-8($sp)#normally clear the interrupt source here#re-enable interruptsori $4,$0,0x1mtc0 $4,$12 #STATUS=1; enable interrupts#FIXME there is a small race condition here!mfc0 $4,$14 #C0_EPC=14j $4lw $4,-4($sp).set reorder.end entry
Go to most recent revision | Compare with Previous | Blame | View Log
