changeset 467:3285960cc1b9

romvecs-patch: experimental insert code written
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 25 Mar 2018 01:18:50 +0000
parents 1524d182a2b2
children 79bc5876eb98
files .hgignore romvecs-patch/Makefile romvecs-patch/romvecs-insert.S
diffstat 3 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sun Mar 25 00:58:51 2018 +0000
+++ b/.hgignore	Sun Mar 25 01:18:50 2018 +0000
@@ -1,9 +1,13 @@
 syntax: regexp
 
 ^build-
+
 ^helpers/build-date$
 ^helpers/cfg-hdr-gen$
 ^helpers/makeline$
 ^helpers/mk-flash-script$
 ^helpers/srec4ram$
 ^helpers/str2ind-ver$
+
+^romvecs-patch/romvecs-insert.lst$
+^romvecs-patch/romvecs-insert.o$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/romvecs-patch/Makefile	Sun Mar 25 01:18:50 2018 +0000
@@ -0,0 +1,10 @@
+all:	romvecs-insert.lst
+
+romvecs-insert.o:	romvecs-insert.S
+	arm-elf-gcc -c $<
+
+romvecs-insert.lst:	romvecs-insert.o
+	arm-elf-objdump -d $< > $@
+
+clean:
+	rm -f romvecs-insert.o romvecs-insert.lst
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/romvecs-patch/romvecs-insert.S	Sun Mar 25 01:18:50 2018 +0000
@@ -0,0 +1,20 @@
+	.text
+	.code	32
+	.globl	_entry
+
+_entry:	adr	r0, vectors
+	ldmia	r0, {r1-r7}
+	mov	r0, #0x800000
+	stmia	r0, {r1-r7}
+	ldr	pc, jumpaddr
+
+vectors:
+	.word	0x4000
+	.word	0x4004
+	.word	0x4008
+	.word	0x400C
+	.word	0x4010
+	.word	0x4014
+	.word	0x4018
+jumpaddr:
+	.word	0x4058