bug fixed for optimization

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@789 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
zchongnari@gmail.com 2010-07-13 07:23:57 +00:00
parent acd6097444
commit 69466590ff
3 changed files with 2470 additions and 1288 deletions

File diff suppressed because one or more lines are too long

View File

@ -126,8 +126,8 @@
</Simulator> </Simulator>
<Target> <Target>
<UseTarget>1</UseTarget> <UseTarget>1</UseTarget>
<LoadApplicationAtStartup>0</LoadApplicationAtStartup> <LoadApplicationAtStartup>1</LoadApplicationAtStartup>
<RunToMain>0</RunToMain> <RunToMain>1</RunToMain>
<RestoreBreakpoints>0</RestoreBreakpoints> <RestoreBreakpoints>0</RestoreBreakpoints>
<RestoreWatchpoints>1</RestoreWatchpoints> <RestoreWatchpoints>1</RestoreWatchpoints>
<RestoreMemoryDisplay>1</RestoreMemoryDisplay> <RestoreMemoryDisplay>1</RestoreMemoryDisplay>
@ -159,10 +159,10 @@
<RunIndependent>0</RunIndependent> <RunIndependent>0</RunIndependent>
<UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging> <UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
<Capability>1</Capability> <Capability>1</Capability>
<DriverSelection>4100</DriverSelection> <DriverSelection>4098</DriverSelection>
</Flash1> </Flash1>
<Flash2>Segger\JLTAgdi.dll</Flash2> <Flash2>Segger\JLTAgdi.dll</Flash2>
<Flash3></Flash3> <Flash3>"" ()</Flash3>
<Flash4></Flash4> <Flash4></Flash4>
</Utilities> </Utilities>
<TargetArmAds> <TargetArmAds>
@ -330,7 +330,7 @@
</ArmAdsMisc> </ArmAdsMisc>
<Cads> <Cads>
<interw>1</interw> <interw>1</interw>
<Optim>1</Optim> <Optim>3</Optim>
<oTime>0</oTime> <oTime>0</oTime>
<SplitLS>0</SplitLS> <SplitLS>0</SplitLS>
<OneElfS>0</OneElfS> <OneElfS>0</OneElfS>
@ -483,32 +483,32 @@
<File> <File>
<FileName>interrupt.c</FileName> <FileName>interrupt.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\interrupt.c</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\interrupt.c</FilePath>
</File> </File>
<File> <File>
<FileName>stack.c</FileName> <FileName>stack.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\stack.c</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\stack.c</FilePath>
</File> </File>
<File> <File>
<FileName>trap.c</FileName> <FileName>trap.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\trap.c</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\trap.c</FilePath>
</File> </File>
<File> <File>
<FileName>cpu.c</FileName> <FileName>cpu.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\cpu.c</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\cpu.c</FilePath>
</File> </File>
<File> <File>
<FileName>start_rvds.S</FileName> <FileName>start_rvds.S</FileName>
<FileType>2</FileType> <FileType>2</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\start_rvds.S</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\start_rvds.S</FilePath>
</File> </File>
<File> <File>
<FileName>context_rvds.S</FileName> <FileName>context_rvds.S</FileName>
<FileType>2</FileType> <FileType>2</FileType>
<FilePath>E:\temp\rt-thread-sep4020\libcpu\arm\sep4020\context_rvds.S</FilePath> <FilePath>E:\temp\rt-thread\libcpu\arm\sep4020\context_rvds.S</FilePath>
</File> </File>
<File> <File>
<FileName>clk.c</FileName> <FileName>clk.c</FileName>

View File

@ -27,13 +27,13 @@ struct serial_int_tx
/* serial port registers */ /* serial port registers */
typedef struct uartport typedef struct uartport
{ {
rt_uint32_t dlbl_rxfifo_txfifo; volatile rt_uint32_t dlbl_rxfifo_txfifo;
rt_uint32_t dlbh_ier; volatile rt_uint32_t dlbh_ier;
rt_uint32_t iir_fcr; volatile rt_uint32_t iir_fcr;
rt_uint32_t lcr; volatile rt_uint32_t lcr;
rt_uint32_t mcr; volatile rt_uint32_t mcr;
rt_uint32_t lsr; volatile rt_uint32_t lsr;
rt_uint32_t msr; volatile rt_uint32_t msr;
}uartport; }uartport;
struct serial_device struct serial_device