From 215de128be6fe939d70e4ce311d7641afa7fdb0d Mon Sep 17 00:00:00 2001 From: David Welch Date: Fri, 8 Jun 2012 22:23:50 -0400 Subject: [PATCH] modified bench02 to run from 0x8000 --- armjtag/memmap | 2 +- bench02/Makefile | 6 +----- bench02/memmap | 2 +- bench02/novectors.s | 11 +++-------- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/armjtag/memmap b/armjtag/memmap index 9e0b82b..42d3af4 100644 --- a/armjtag/memmap +++ b/armjtag/memmap @@ -1,7 +1,7 @@ MEMORY { - ram : ORIGIN = 0x00008000, LENGTH = 0x1000 + ram : ORIGIN = 0x8000, LENGTH = 0x1000 } SECTIONS diff --git a/bench02/Makefile b/bench02/Makefile index 9e9548a..98f7987 100644 --- a/bench02/Makefile +++ b/bench02/Makefile @@ -3,7 +3,7 @@ ARMGNU ?= arm-none-eabi COPS = -mthumb-interwork -Wall -O2 -nostdlib -nostartfiles -ffreestanding -all : bench02.hex bench02.bin +all : bench02.bin clean : rm -f *.o @@ -11,7 +11,6 @@ clean : rm -f *.hex rm -f *.elf rm -f *.list - rm -f *.img novectors.o : novectors.s $(ARMGNU)-as novectors.s -o novectors.o @@ -29,7 +28,4 @@ bench02.elf : memmap novectors.o bench02.o uart.o bench02.bin : bench02.elf $(ARMGNU)-objcopy bench02.elf -O binary bench02.bin -bench02.hex : bench02.elf - $(ARMGNU)-objcopy bench02.elf -O ihex bench02.hex - diff --git a/bench02/memmap b/bench02/memmap index 8d9566d..42d3af4 100644 --- a/bench02/memmap +++ b/bench02/memmap @@ -1,7 +1,7 @@ MEMORY { - ram : ORIGIN = 0x00000000, LENGTH = 0x1000 + ram : ORIGIN = 0x8000, LENGTH = 0x1000 } SECTIONS diff --git a/bench02/novectors.s b/bench02/novectors.s index f66bf30..0b0a866 100644 --- a/bench02/novectors.s +++ b/bench02/novectors.s @@ -3,14 +3,9 @@ .globl _start _start: - b reset -reset: - ldr sp,stack_start - ldr r0,thumb_start_add - bx r0 - -stack_start: .word 0x10000 -thumb_start_add: .word thumb_start + mov sp,#0x8000 + bl notmain + b . .globl start_l1cache start_l1cache: