mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-28 05:37:04 +08:00
replace iram vector to vector copy.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1060 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
643fea758b
commit
019b654201
@ -16,14 +16,6 @@
|
|||||||
OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
|
OUTPUT_FORMAT("elf32-tradlittlemips", "elf32-tradlittlemips", "elf32-tradlittlemips")
|
||||||
OUTPUT_ARCH(mips)
|
OUTPUT_ARCH(mips)
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
/* 16M SDRAM */
|
|
||||||
DRAM : ORIGIN = 0x80200000, LENGTH = 0x01000000
|
|
||||||
/* 16K SRAM */
|
|
||||||
IRAM : ORIGIN = 0x80000000, LENGTH = 0x00004000
|
|
||||||
}
|
|
||||||
|
|
||||||
ENTRY(_start)
|
ENTRY(_start)
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
@ -32,10 +24,9 @@ SECTIONS
|
|||||||
.start :
|
.start :
|
||||||
{
|
{
|
||||||
*(.start);
|
*(.start);
|
||||||
} > DRAM
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
*(.text)
|
*(.text)
|
||||||
@ -55,10 +46,9 @@ SECTIONS
|
|||||||
KEEP(*(VSymTab))
|
KEEP(*(VSymTab))
|
||||||
__vsymtab_end = .;
|
__vsymtab_end = .;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} > DRAM
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
.data :
|
.data :
|
||||||
{
|
{
|
||||||
*(.data)
|
*(.data)
|
||||||
@ -72,30 +62,7 @@ SECTIONS
|
|||||||
|
|
||||||
*(.sdata)
|
*(.sdata)
|
||||||
*(.sdata.*)
|
*(.sdata.*)
|
||||||
} > DRAM
|
}
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_iramat = .;
|
|
||||||
|
|
||||||
.iram : AT(_iramat)
|
|
||||||
{
|
|
||||||
_iramstart = .;
|
|
||||||
*(.vectors.1);
|
|
||||||
. = 0x100;
|
|
||||||
*(.vectors.2);
|
|
||||||
. = 0x180;
|
|
||||||
*(.vectors.3);
|
|
||||||
. = 0x200;
|
|
||||||
*(.vectors.4);
|
|
||||||
*(.vectors);
|
|
||||||
|
|
||||||
*(.icode);
|
|
||||||
*(.irodata);
|
|
||||||
*(.idata);
|
|
||||||
KEEP(*(.vectors*))
|
|
||||||
_iramend = .;
|
|
||||||
} > IRAM
|
|
||||||
_iramcopy = LOADADDR(.iram);
|
|
||||||
|
|
||||||
.sbss :
|
.sbss :
|
||||||
{
|
{
|
||||||
@ -104,7 +71,7 @@ SECTIONS
|
|||||||
*(.sbss.*)
|
*(.sbss.*)
|
||||||
*(.dynsbss)
|
*(.dynsbss)
|
||||||
*(.scommon)
|
*(.scommon)
|
||||||
} > DRAM
|
}
|
||||||
|
|
||||||
.bss :
|
.bss :
|
||||||
{
|
{
|
||||||
@ -113,8 +80,7 @@ SECTIONS
|
|||||||
*(.dynbss)
|
*(.dynbss)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
__bss_end = .;
|
__bss_end = .;
|
||||||
} > DRAM
|
}
|
||||||
|
|
||||||
_end = .;
|
_end = .;
|
||||||
|
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
|
# download script for boot loader
|
||||||
ifaddr dmfe0 192.168.1.100
|
ifaddr dmfe0 192.168.1.100
|
||||||
load tftp://192.168.1.5/boot_3210 0x80200000
|
load tftp://192.168.1.5/boot_3210 0x80200000
|
||||||
|
|
||||||
|
# download script for RT-Thread
|
||||||
ifaddr dmfe0 192.168.1.100
|
ifaddr dmfe0 192.168.1.100
|
||||||
load tftp://192.168.1.5/rtthread.elf 0x80200000
|
load tftp://192.168.1.5/rtthread.elf
|
||||||
oload tftp://192.168.1.5/rtthread.bin 0x80200000
|
|
||||||
|
# burn script for RT-Thread
|
||||||
|
ifaddr dmfe0 192.168.1.100
|
||||||
|
devcp tftp://192.168.1.5/rtthread.elf /dev/mtd0
|
||||||
|
@ -36,19 +36,6 @@ _start:
|
|||||||
li sp, SYSTEM_STACK
|
li sp, SYSTEM_STACK
|
||||||
la gp, _gp
|
la gp, _gp
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* copy IRAM section */
|
|
||||||
la t0, _iramcopy
|
|
||||||
la t1, _iramstart
|
|
||||||
la t2, _iramend
|
|
||||||
_iram_loop:
|
|
||||||
lw t3, 0(t0)
|
|
||||||
sw t3, 0(t1)
|
|
||||||
addiu t1, 4
|
|
||||||
bne t1, t2, _iram_loop
|
|
||||||
addiu t0, 4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* clear bss */
|
/* clear bss */
|
||||||
la t0, __bss_start
|
la t0, __bss_start
|
||||||
la t1, __bss_end
|
la t1, __bss_end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user