psk.s 3.44 KB
#include <regdef.h>
#include <asm.h>
#include <PR/R4300.h>

#include <PR/bcp.h>
#include <PR/bbsim.h>

#include "../boot.h"

.text
.align 2
.set    noreorder 
.ent __start
.globl __start
__start:
        # indicate progress
	TRACE_VAL(0xaaaa)

        # simulator off
	sh	zero, PHYS_TO_K1(PI_IDE3_SIM_HALT)
	lw	t0, PHYS_TO_K1(PI_IDE_FC_BASE_REG)
power_down_loop:
	beq	zero, zero, power_down_loop
	nop
	
#if 0
        # a bunch of bytes to get a size larger than a single page
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x01020304, 0x05060708, 0x090a0b0c, 0x0d0e0f00
        .word   0x11121314, 0x15161718, 0x191a1b1c, 0x1d1e1f10
        .word   0x51525354, 0x55565758, 0x595a5b5c, 0x5d5e5f50
        .word   0x41424344, 0x45464748, 0x494a4b4c, 0x4d4e4f40
#endif

.end __start