URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/or1ksim/testsuite/test-code-or1k/int-test
- from Rev 457 to Rev 458
- ↔ Reverse comparison
Rev 457 → Rev 458
/int-test.ld
File deleted
/Makefile.in
217,8 → 217,7
top_builddir = @top_builddir@ |
top_srcdir = @top_srcdir@ |
int_test_SOURCES = int-test.S |
int_test_LDFLAGS = -T$(srcdir)/int-test.ld |
EXTRA_DIST = int-test.ld |
int_test_LDFLAGS = -T$(srcdir)/../default.ld |
all: all-am |
|
.SUFFIXES: |
/int-test.S
52,13 → 52,8
|
#define RAM_START 0x00000000 |
|
#define MC_CSR (0x00) |
#define MC_POC (0x04) |
#define MC_BA_MASK (0x08) |
#define MC_CSC(i) (0x10 + (i) * 8) |
#define MC_TMS(i) (0x14 + (i) * 8) |
|
.section .reset, "ax" |
.section .except,"ax" |
|
.org 0x100 |
|
94,81 → 89,13
l.addi r30,r0,0x0 |
l.addi r31,r0,0x0 |
|
l.movhi r3,hi(start) |
l.ori r3,r3,lo(start) |
l.movhi r3,hi(_start) |
l.ori r3,r3,lo(_start) |
l.jr r3 |
l.nop |
start: |
l.jal _init_mc |
l.nop |
|
/* Setup exception wrapper */ |
l.movhi r3,hi(_src_beg) |
l.ori r3,r3,lo(_src_beg) |
l.movhi r4,hi(_dst_beg) |
l.ori r4,r4,lo(_dst_beg) |
l.movhi r5,hi(_dst_end) |
l.ori r5,r5,lo(_dst_end) |
l.sub r5,r5,r4 |
l.sfeqi r5,0 |
l.bf 2f |
l.nop |
1: |
l.lwz r6,0(r3) |
l.sw 0(r4),r6 |
l.addi r3,r3,4 |
l.addi r4,r4,4 |
l.addi r5,r5,-4 |
l.sfgtsi r5,0 |
l.bf 1b |
l.nop |
2: |
l.movhi r2,hi(_main) |
l.ori r2,r2,lo(_main) |
l.jr r2 |
l.nop |
|
_init_mc: |
|
l.movhi r3,hi(MC_BASE_ADDR) |
l.ori r3,r3,lo(MC_BASE_ADDR) |
|
l.addi r4,r3,MC_CSC(0) |
l.movhi r5,hi(FLASH_BASE_ADDR) |
l.srai r5,r5,6 |
l.ori r5,r5,0x0025 |
l.sw 0(r4),r5 |
|
l.addi r4,r3,MC_TMS(0) |
l.movhi r5,hi(FLASH_TMS_VAL) |
l.ori r5,r5,lo(FLASH_TMS_VAL) |
l.sw 0(r4),r5 |
|
l.addi r4,r3,MC_BA_MASK |
l.addi r5,r0,MC_MASK_VAL |
l.sw 0(r4),r5 |
|
l.addi r4,r3,MC_CSR |
l.movhi r5,hi(MC_CSR_VAL) |
l.ori r5,r5,lo(MC_CSR_VAL) |
l.sw 0(r4),r5 |
|
l.addi r4,r3,MC_TMS(1) |
l.movhi r5,hi(SDRAM_TMS_VAL) |
l.ori r5,r5,lo(SDRAM_TMS_VAL) |
l.sw 0(r4),r5 |
|
l.addi r4,r3,MC_CSC(1) |
l.movhi r5,hi(SDRAM_BASE_ADDR) |
l.srai r5,r5,6 |
l.ori r5,r5,0x0411 |
l.sw 0(r4),r5 |
|
l.jr r9 |
l.nop |
|
.section .text |
|
.org 0x500 |
_tick_handler: |
# |
# Tick timer exception handler |
# |
232,6 → 159,16
l.nop |
|
|
.section .text |
|
_start: |
|
l.movhi r3,hi(_main) |
l.ori r3,r3,lo(_main) |
l.jr r3 |
l.nop |
|
|
_main: |
l.nop |
l.addi r3,r0,SPR_SR_SM |
/Makefile.am
29,6 → 29,4
|
int_test_SOURCES = int-test.S |
|
int_test_LDFLAGS = -T$(srcdir)/int-test.ld |
|
EXTRA_DIST = int-test.ld |
int_test_LDFLAGS = -T$(srcdir)/../default.ld |