Skip to content

Commit f3a4d8b

Browse files
committed
moving twain test to 0x8000
1 parent 215de12 commit f3a4d8b

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

twain/README

+3
Original file line numberDiff line numberDiff line change
@@ -379,3 +379,6 @@ and the machine code generated. We also got to play with the caches
379379
and mmu in a simplified fashion.
380380

381381
(yes this is too wordy and I need to proof/rewrite)
382+
based on new discoveries, changed the start address to 0x8000 for the
383+
whole thing so that messes with cache lines and results have some
384+
differences to the numbers above (for reasons described above).

twain/memmap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
MEMORY
33
{
4-
ram : ORIGIN = 0x00000000, LENGTH = 0x100000
4+
ram : ORIGIN = 0x8000, LENGTH = 0x30000-0x8000
55
}
66

77
SECTIONS

twain/vectors.s

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11

22
.globl _start
33
_start:
4-
b reset
5-
b hang
6-
b hang
7-
b hang
8-
b hang
9-
b hang
10-
b hang
11-
b hang
12-
b hang
13-
b hang
14-
b hang
15-
b hang
16-
b hang
17-
b hang
18-
b hang
19-
20-
reset:
4+
215

226
;@ add/remove nops here
237
nop
248
nop
259
nop
26-
27-
10+
;@ add/remove nops here
2811

2912
mov sp,#0x00200000
3013
bl notmain

0 commit comments

Comments
 (0)