diff options
author | Wolfgang Denk <wd@denx.de> | 2008-01-23 14:37:52 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-23 14:37:52 +0100 |
commit | f58934551e052db5a1f33f53dcc9cbf6fcb72910 (patch) | |
tree | ea1fcbb14277933495e67a3b4a98cb31d31f1bbd /board/qemu-mips/lowlevel_init.S | |
parent | 351080e2e8f633dfecd957c14bd06e55100d6a7f (diff) | |
parent | 922ff465cc7b87e589a1299b7a87f52ea7bd2bf7 (diff) |
Merge branch 'master' of git://www.denx.de/git/u-boot-mips
Diffstat (limited to 'board/qemu-mips/lowlevel_init.S')
-rw-r--r-- | board/qemu-mips/lowlevel_init.S | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/board/qemu-mips/lowlevel_init.S b/board/qemu-mips/lowlevel_init.S new file mode 100644 index 0000000000..28166bceba --- /dev/null +++ b/board/qemu-mips/lowlevel_init.S @@ -0,0 +1,41 @@ +/* Memory sub-system initialization code */ + +#include <config.h> +#include <version.h> +#include <asm/regdef.h> +#include <asm/mipsregs.h> + + .text + .set noreorder + .set mips32 + + .globl lowlevel_init +lowlevel_init: + + /* + * Step 2) Establish Status Register + * (set BEV, clear ERL, clear EXL, clear IE) + */ + li t1, 0x00400000 + mtc0 t1, CP0_STATUS + + /* + * Step 3) Establish CP0 Config0 + * (set K0=3) + */ + li t1, 0x00000003 + mtc0 t1, CP0_CONFIG + + /* + * Step 7) Establish Cause + * (set IV bit) + */ + li t1, 0x00800000 + mtc0 t1, CP0_CAUSE + + /* Establish Wired (and Random) */ + mtc0 zero, CP0_WIRED + nop + + j ra + nop |